OpenXSensor compile errors under Linux

Development & General Chat for the superb openxvario project.

Moderator: rainer

Post Reply
User avatar
nicholgd
Posts: 70
Joined: Tue Sep 03, 2013 4:29 pm
Country: -
Location: Herefordshire

OpenXSensor compile errors under Linux

Post by nicholgd »

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>
Last edited by nicholgd on Tue Oct 29, 2013 11:40 pm, edited 1 time in total.
Geoff N

User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: OpenXSensor compile errors in under Linux

Post by Flaps 30 »

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. :)
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: OpenXSensor compile errors under Linux

Post by Flaps 30 »

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"
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: OpenXSensor compile errors under Linux

Post by MikeB »

I've just done a commit with the case of the includes (hopefully) fixed.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
SR71
Posts: 109
Joined: Tue Feb 28, 2012 10:21 pm
Country: Italy
Location: Rome

Re: OpenXSensor compile errors under Linux

Post by SR71 »

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 ?

User avatar
SR71
Posts: 109
Joined: Tue Feb 28, 2012 10:21 pm
Country: Italy
Location: Rome

Re: OpenXSensor compile errors under Linux

Post by SR71 »

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.

Post Reply

Return to “OpenXVario - an open source vario supported by the open source firmwares!!”