I’m trying to use the
APPLIBS option with the local toolchain.
Here is my basic structure:
src/ - main.cpp inc/ - neopixel/ - neopixel.h # These are - neopixel.cpp # symlinks
main.cpp I am using
#include "neopixel/neopixel.h" and here is the
make command I am using:
make all -s -C "$FIRMWARE_PARTICLE/firmware/main" APPDIR="src" APPLIBS="inc" TARGET_DIR="bin" PLATFORM="photon"
When I try to build I get an error like:
src/main.cpp:2:31: fatal error: neopixel/neopixel.h: No such file or directory compilation terminated. ../build/module.mk:267: recipe for target '../build/target/user/platform-6-m/src/main.o' failed make: *** [../build/target/user/platform-6-m/src/main.o] Error 1 ../../../build/recurse.mk:11: recipe for target 'user' failed make: *** [user] Error 2 ../build/recurse.mk:11: recipe for target 'modules/photon/user-part' failed make: *** [modules/photon/user-part] Error 2
Why is this happening? Is it because the files are symlinks? EDIT: I just checked by copying the files instead of making symlinks and it still happens.