I’ve successfully set up an offline build environment using the ARM GNU Toolchain and Eclipse and am able to build software that is in the root of my APPDIR.
The reason I use APPDIR is to have the Particle system firmware and my application completely separated. In the future I want to have my own external libraries as well, but for now let’s focus on using APPDIR.
The issue I ran into is that I have to relative paths in my
#include s, see my GitHub repo with a simple example I created.
In the main source file I have to use relative path to include
add.h. Same goes for the other files.
In the root folder is also a Makefile from @rickkas7 's Eclipse debug example. To my understanding this makefile is needed here to build my applicatin which is located in the
APPDIR. However in Particle’s firmware I see
build.mk files in e.g. the
wiring/src folder and
include.mk in the
Now, I don’t have a lot of experience with makefiles so at this point I don’t know what to do. The application works but only using these relative paths. I don’t mind using include paths from the root folder, but just not relative. I prefer to just use
#include "add.h" if possible. Do I need to place makefiles in each of these folders?
I searched this forum and google but could not find anything for this particular case (external source code incl. libs using APPDIR). Really hope anybody can help!
Also planning to writing a guide about this when I got it all figured out to help other people!