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?

  1. have @ https://github.com/msgpack/msgpack-c. put content of msgpack-c/include in yourproject/classes , add line #include <msgpack.hpp> cpp file.
  2. don't add stuff in cocos2d/cocos/cmakelists.txt because build file cocos library. add msgpack in yourproject/cmakelists.txt
  3. cmake in cocos2dx linux.

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -