ubuntu - arduino 1.8.3 - fatal error: arduino.: No such file

Hi,

I've hit a wall with trying to debug why my arduino IDE is misbehaving.
I've been using previous versions of the IDE on ubuntu for a few years.

Today i've come to play with a new lib : MAX30105.
I download add to a previous version of the IDE libs folder and my sketchbook path lib folder. It moaned on compilation that it couldn't find MAX30105.h
So I thought i'd upgrade to the latest IDE, makes lots of sense...

Downloaded 1.8.3, unzipped. - removed any MAX30105 lib folders. So i was clean.
Installed the MAX30105 lib from the lib manager in 1.8.3 cool

I go to compile and I get this :

==
WARNING: Category '' in library GainspanS2W is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Atmel Lightweight Mesh framework is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Pinoccio is not valid. Setting to 'Uncategorized'
/home/matt/sketchbook/libraries/SparkFun_MAX3010x_Pulse_and_Proximity_Sensor_Library/src/spo2_algorithm.cpp:60:21: fatal error: arduino.h: No such file or directory
#include "arduino.h"
^
compilation terminated.
exit status 1

Any help would be appreciated, i've google lots, and tried lots.

Thanks

They screwed up the filename in the include. Please do this:

  • Open /home/matt/sketchbook/libraries/SparkFun_MAX3010x_Pulse_and_Proximity_Sensor_Library/src/spo2_algorithm.cpp in a text editor.
  • Change line 60 from:
#include "arduino.h"

to:

#include "Arduino.h"
  • Open /home/matt/sketchbook/libraries/SparkFun_MAX3010x_Pulse_and_Proximity_Sensor_Library/src/spo2_algorithm.h
    in a text editor.
    Change line 65 from:
#include "arduino.h"

to:

#include "Arduino.h"

The reason why this issue might not have been noticed before is that Windows is filename case-insensitive so the incorrect filename would not cause an error when using that operating system. Linux is filename case sensitive so it does cause the error.

I have submitted a pull request to fix this bug:

Thankyou!
All compiling well now, much appreciated.