Sublibrary not found when compiling

I have a project like this:

  • a custom library called “MyLib”
    -this has a library dependency defined in the library.properties 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 library.properties. 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).

C:\Users%USER%\Documents\Particle\community\libraries\MyLib@1.0.3

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

What can I do to make this work?

Hello,

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

Kyle

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