I want to use msgpack with cocos2d-x 3.
I add include_directories(msgpack/include) in cocos2d/cocos/CMakeLists.txt. but not found msgpack.hpp.
How I can include and compile msgpack with cocos2d?
Asked
Active
Viewed 328 times
0
1 Answers
0
- Have a look at https://github.com/msgpack/msgpack-c. Just put content of
msgpack-c/include
in yourproject/Classes and add line#include <msgpack.hpp>
to you cpp file. - Don't add stuff in
cocos2d/cocos/CMakeLists.txt
because it is build file for cocos library. Add msgpack inyourproject/CMakeLists.txt
- cmake in cocos2dx actually only for linux.

ttohin
- 41
- 2