I’ve just started using netbeans and I am very happy with code completion and all the other things a mature IDE brings. I can successfully build an image and I then use particle-cli to flash OTA. Great.
My question is I would be like to be able to import some or all of the public libraries available through the cloud IDE but I am stuck at how to do this. I first tried to manually copy across Adafruit_ILI9341 and Adafruit_mfGFX into the libraries folder along side Serial2. I updated the makefile to add the two folders to the include list. However, it doesn’t seem to find the required files properly. A sample arm-gcc line:
arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -I../applications/TFTDisplay/ -I../inc -I../libraries/Serial2 -I../libraries/Adafruit_ILI9341 -I../libraries/Adafruit_mfGFX -I../../core-common-lib/CMSIS/Include -I../../core-common-lib/CMSIS/Device/ST/STM32F10x/Include -I../../core-common-lib/STM32F10x_StdPeriph_Driver/inc -I../../core-common-lib/STM32_USB-FS-Device_Driver/inc -I../../core-common-lib/CC3000_Host_Driver -I../../core-common-lib/SPARK_Firmware_Driver/inc -I../../core-common-lib/SPARK_Services/inc -I../../core-communication-lib/lib/tropicssl/include -I../../core-communication-lib/src -I. -ffunction-sections -Wall -fmessage-length=0 -Werror=deprecated-declarations -MD -MP -MF obj/applications/TFTDisplay/application.o.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -DDFU_BUILD_ENABLE -DSPARK=1 -DRELEASE_BUILD -std=gnu++11 -fno-rtti -fno-exceptions -c -o obj/applications/TFTDisplay/application.o ../applications/TFTDisplay/application.cpp
Where am I going wrong?
I guess there are two parts.
- Where to put libraries and how to include them in a project
- Pulling the community libraries in over git