Sublibrary not found when compiling

I have a project like this:

  • a custom library called “MyLib”
    -this has a library dependency defined in the like this ‘dependencies.SparkJson=0.0.2’
    -It has another dependency, but this library needed to be customized a little. therefore it is not in the It is in a subfolder “lib/CustomizedLibrary”

When I compile and run the code from the usage examples I provided in the MyLib library, everything works.
But when I add the library to another particle project and compile it, it says

In file included from /src/OtherProject.cpp:8:0:
lib/MyLib/src/mylib.h:15:18: fatal error: CustomizedLibrary.h: No such file or directory
#include “CustomizedLibrary.h”
compilation terminated.

When I type “particle library view MyLib”, it gives me the path of the library that the compiler uses (I guess).


All the files are there… I don’t get why it doesn’t work.

What can I do to make this work?


@peekay123, do you have any ideas on this that might help?


Place the customizedLibrary related files in the src of MyLib and upload a new version.