I am new to Cocos2dx, and I would like to use it with the C*+ port of Artemis .
Unfortunately, I can’t seem to get Cocos2dx know about artemis.
Because the c*+ port is not up-to-date, I created a project to be able to change some of the classes, and build the library (the .a file).
Now, I would like to add this library to any cocos2dx project. But it just doesn’t work, and I am running out of ideas…
Here is my configuration :
I am on Windows.
I do everything in Eclipse.
I use Cygwin for the special build command.
Here is my error, when I include one of the header file from Artemis :
“xxxx.h” no such file or directory.
Here is what I tried :
Add the path to artemis (containing cpp and header files) to the “Paths and Symbols / Includes” of the C++ settings.
=> Eclipse proposes me the name of the header files (so it knows about them), but the build still fails.
Add the library (libartemis.a) to the “Paths and Symbols / Libraries”
Add the artemis folder to the “Paths and Symbols / Library Paths”
Tried to get the Artemis project inside Eclipse (I use Codeblocks for the compilation of artemis) and reference it inside the cocos2dx project
I tried all the combinations… I have no idea why it does not work.
To conclude : How can I add a custom library inside a cocos2dx project ?
Thanks to everyone reading me.