This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WProgram.h Missing From Adafruit_TMP006 Library In CCS Cloud

Other Parts Discussed in Thread: TMP006, CC3200, ENERGIA

Am I missing something or is the Adafruit_TMP006 library missing WProgram.h in CCS Cloud? Am I able to add this manually?

Session_ID: 1480355516436_00000487

Output:
**** Build of configuration Debug for project lpcc3200_core **** @ccs/utils/bin/gmake -k all gmake: Nothing to be done for 'all'. **** Build of configuration Debug for project lpcc3200_SPI **** **** Build Finished **** @ccs/utils/bin/gmake -k all gmake: Nothing to be done for 'all'. **** Build Finished **** **** Build of configuration Debug for project lpcc3200_WiFi **** @ccs/utils/bin/gmake -k all **** Build of configuration Debug for project lpcc3200_Adafruit_TMP006 **** gmake: Nothing to be done for 'all'. **** Build Finished **** @ccs/utils/bin/gmake -k all Building file: @ti-rex-content/energia-0101E0017/hardware/cc3200/libraries/Adafruit_TMP006/Adafruit_TMP006.cpp Invoking: GNU Compiler "@ti-rex-content/energia-0101E0017/hardware/tools/lm4f/bin/arm-none-eabi-gcc" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -fno-exceptions -DF_CPU=80000000L -DENERGIA=17 -I"@ti-rex-content/energia-0101E0017/hardware/cc3200/variants/launchpad" -I"@ti-rex-content/energia-0101E0017/hardware/cc3200/cores/cc3200" -I"@ti-rex-content/energia-0101E0017/hardware/cc3200/libraries/Adafruit_TMP006" -I"@ti-rex-content/energia-0101E0017/hardware/cc3200/libraries/Adafruit_TMP006/utility" -I"@ti-rex-content/energia-0101E0017/hardware/tools/lm4f/arm-none-eabi/include" -Os -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"Adafruit_TMP006.d" -MT"Adafruit_TMP006.d" -fno-rtti -fmax-errors=10 -o"Adafruit_TMP006.o" "@ti-rex-content/energia-0101E0017/hardware/cc3200/libraries/Adafruit_TMP006/Adafruit_TMP006.cpp" subdir_rules.mk:7: recipe for target 'Adafruit_TMP006.o' failed In file included from @ti-rex-content/energia-0101E0017/hardware/cc3200/libraries/Adafruit_TMP006/Adafruit_TMP006.cpp:17:0: @ti-rex-content/energia-0101E0017/hardware/cc3200/libraries/Adafruit_TMP006/Adafruit_TMP006.h:29:23: fatal error: WProgram.h: No such file or directory compilation terminated. gmake: *** [Adafruit_TMP006.o] Error 1 gmake: Target 'all' not remade because of errors. **** Build Finished **** **** Build of configuration Debug for project lpcc3200_Wire **** @ccs/utils/bin/gmake -k all gmake: Nothing to be done for 'all'. **** Build Finished **** **** Build of configuration Debug for project lpcc3200_MQTTClient **** @ccs/utils/bin/gmake -k all **** Clean-only build of configuration Debug for project GC_IOT_CC3200_GetStarted **** @ccs/utils/bin/gmake -k clean gmake: Nothing to be done for 'all'. **** Build Finished **** rm -rf "GC_IOT_CC3200_GetStarted.bin" "GC_IOT_CC3200_GetStarted.out" rm -rf "GC_IOT_CC3200_GetStarted.o" rm -rf "GC_IOT_CC3200_GetStarted.d" Finished clean **** Build Finished **** Buildfile generation error occurred.. Cannot build project. Referenced project 'lpcc3200_Adafruit_TMP006' contains build-errors. Build stopped..
  • Greg H67 said:
    Am I missing something or is the Adafruit_TMP006 library missing WProgram.h in CCS Cloud? Am I able to add this manually?

    I am able to reproduce this and there appear to be some bugs in the CCS Cloud build options for some Energia sketches.

    I imported and built the tmp006 sketch on CCS cloud and desktop. The desktop version was successful, but Cloud was not. When comparing the two builds one thing I see missing in the Cloud build is a compiler define option: -DARDUINO=101 

    The Adafruit_TMP006.h file has this:

    #if (ARDUINO >= 100)
    #include "Arduino.h"
    #else
    #include "WProgram.h"
    #endif

    So this define determines which header file to include. WProgram.h is no longer included with the Energia software package so the build option needs to define ARDUINO to be greater than 100 so Arduino.h can be picked up instead.

    In addition I believe the Cloud project may also be missing some compiler include paths. I will file a bug report for these issues. 

    Unfortunately I could not find an easy workaround to get this to build on CCS Cloud. If you need to use this particular project, I would suggest using the desktop version of CCS for the moment, until we get this fixed on the Cloud. Thank you for bringing this to our attention.

  • The tracking # for this build issue on CCS Cloud is TICLD-1894.