I have been following the instructions here to get started compiling firmware locally. I have got it to work fine for something basic like the blink code which does not require any external libraries, but now I’d like to include the weather shield library.
I’ve tried putting this in my application.cpp
src/application.cpp:41:52: fatal error: SparkFun_Photon_Weather_Shield_Library.h: No such file or directory
So I was wondering, what is the best way to include headers/code from other repositories when compiling firmware without having to copy the files into the user/src directory?
I cobbled that from "I probably failed at googling"...
So there is no way to leave these files elsewhere (so that they can easily be updated by doing a git pull in that repository) and still compile the firmware
You can set an APPDIR switch to designate an “external” folder as your project folder, and noone is holding you back from cloning the needed libraries into this app folder and including the required files from the firmware subfolder of that cloned local git repo.
Another more “esoteric” way could be to use hard links (or even just symlinks or NTFS junctions where possible) to mirror a library into multiple application directories.