I am building the IDDHT22 example code, this works fine on the web IDE.
Copying all files to a folder on my desktop PC and creating an idDHT22 subfolder for the library files fails.
I also created a spark.include listing all the files
spark compile
Including:
/src/spark/temperature/idDHT22.cpp
/src/spark/temperature/idDHT22.h
/src/spark/temperature/temperature.ino
attempting to compile firmware
pushing file: /src/spark/temperature/idDHT22.cpp
pushing file: /src/spark/temperature/idDHT22.h
pushing file: /src/spark/temperature/temperature.ino
Errors
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from idDHT22.h:19,
from idDHT22.cpp:19:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from temperature.cpp:2:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
temperature.cpp:4:29: fatal error: idDHT22/idDHT22.h: No such file or directory
void read_sensor();
^
compilation terminated.
make: *** [temperature.o] Error 1
Moving the library files up a level and changing the #include to #include “idDHT22.h” then works.
Copying the file back to the webIDE now fails as it hold the library files in a sub-folder.
I would like the command line version to work as expected, that is pull in the idDHT22/* files and not complain when it trys to build them about internal issues which should just resolve.
Finally I did try to change the “application.h” and “math.h” entries to <application.h> and <math.h> in the idDHT22.h file but this made no difference either.
Any suggestions?
Many thanks
kevin