Include msgpack in cocos2d-x 3 -
i want use msgpack cocos2d-x 3.
add include_directories(msgpack/include) in cocos2d/cocos/cmakelists.txt. not found msgpack.hpp.
how can include , compile msgpack cocos2d?
- have @ https://github.com/msgpack/msgpack-c. put content of
msgpack-c/include
in yourproject/classes , add line#include <msgpack.hpp>
cpp file. - don't add stuff in
cocos2d/cocos/cmakelists.txt
because build file cocos library. add msgpack inyourproject/cmakelists.txt
- cmake in cocos2dx linux.
Comments
Post a Comment