Hi, I have been trying to compile OpenXVario under Ubuntu Linux using Adruino 1.5.4 and SVN revision 193.
Initialy I had a whole bunch of "file not found errors" all these were caused by Upper/ Lower case problems as noted below.
With these changes the code now compiles with no errors.
oxs_arduino.h line 4 #include "arduino.h" should be #include "Arduino.h"
oxs_ms5611.cpp line 2 #include "OXS_MS5611.h" change to #include "oxs_ms5611.h"
oxs_out_frsky.h line 7 #include "OXS_MS5611.h" change to #include "oxs_ms5611.h"
oxs_out_frsky.h line 8 include "OXS_curr.h" change to include "oxs_curr.h"
oxs_out_frsky.cpp line 5 #include "OXS_OUT_FRSKY.h"change to #include "oxs_out_frsky.h"
oxs_out_frsky.cpp line 2 #include <../../../../libraries/SoftwareSerial/SoftwareSerial.h>
change to #include <SoftwareSerial.h>
OpenXSensor compile errors under Linux
Moderator: rainer
OpenXSensor compile errors under Linux
Last edited by nicholgd on Tue Oct 29, 2013 11:40 pm, edited 1 time in total.
Geoff N
Re: OpenXSensor compile errors in under Linux
Now that is interesting. It is something that has caused many a headache here with the constant file not found errors. So much so that I gave up with the whole thing.
Thanks for that.
Thanks for that.
Re: OpenXSensor compile errors under Linux
Just got round to trying this out. Found that it came back with a file not found error.
This is the correction required ----> oxs_out_frsky.h line 9 #include "OXS_arduino.h" change to #include "oxs_arduino.h"
This is the correction required ----> oxs_out_frsky.h line 9 #include "OXS_arduino.h" change to #include "oxs_arduino.h"
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: OpenXSensor compile errors under Linux
I've just done a commit with the case of the includes (hopefully) fixed.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: OpenXSensor compile errors under Linux
Trying to compile branches/openxsensor/openxsensor.ino, Revision: 199, on Ubuntu 12.04.4 LTS, with Arduino installed from Debian/Ubuntu packages (therefore 1.0), I get a couple of errors:
1) compiling oxs_out_frsky.cpp, it is attempting to include
#include "oxs_out_FRSKY.h"
instead of
#include "oxs_out_frsky.h"
that is easily fixed, of course.
2) compiling openxsensor.cpp, I get
openxsensor.cpp: In function ‘void setup()’:
openxsensor.cpp:77:27: error: ‘INPUT_PULLUP’ was not declared in this scope
the above can be circumvented commenting out the proper line in oxs_config.h, nonetheless I was not able to figure out a real fix for it.
Maybe is it due to use of the Arduino 1.0 environment ?
1) compiling oxs_out_frsky.cpp, it is attempting to include
#include "oxs_out_FRSKY.h"
instead of
#include "oxs_out_frsky.h"
that is easily fixed, of course.
2) compiling openxsensor.cpp, I get
openxsensor.cpp: In function ‘void setup()’:
openxsensor.cpp:77:27: error: ‘INPUT_PULLUP’ was not declared in this scope
the above can be circumvented commenting out the proper line in oxs_config.h, nonetheless I was not able to figure out a real fix for it.
Maybe is it due to use of the Arduino 1.0 environment ?
Re: OpenXSensor compile errors under Linux
For what concerns point #2 in my message: installing the Arduino 1.5.6-r2 BETA the code compiles successfully.
I submit an issue on gcode.
I submit an issue on gcode.