I'm working on an app to make use of a separate library to handle comm with an accelerometer. I've got a main.cpp in My Apps, but I can't seem to figure out how to include my new library code which exists in My Libs into the My Apps app. What am I missing? I've used lots of prefixes for the file mma8451.h include line, plus no prefix, and I've tried to add it to the mos.yml file. No luck on any of the ideas/experiments so far, so I clearly am missing a simple part of this somehow. Any help would be appreciated. I would like to clean this up, test it, and then as long as it works, offer it up for use by everyone else. Note that this is all new code, so my app is untested and in the long run, I am going to make the app and library part of my product, so having them local to me even if I contribute the library to github makes sense for my implementation. Thanks.
#include "fw/src/mgos.h" #include "fw/src/mgos_i2c.h" #include "fw/src/mgos_config.h" #include "libs/mma8451.h" MMA8451 *mma8451;
src/main.cpp:4:26: fatal error: libs/mma8451.h: No such file or directory #include "libs/mma8451.h"