Adding cocos2d-x to a project

Hi guys, I came across live2D after spending about a week trying to get spriter to work with cocos2d. It seems spriter is dead as the support is pretty rotten and they’ve been promising updated docs and reference code since 2013.

Anyways, Live2D seems pretty legit, they offer a sample download, but they do not provide cocos2d with their download, the documentation says to add cocos2d.

There are xcode projects but when I open it, the project fails to build. I’ve never worked with cocos2d by adding it to a project before, typically I just create a project then add my external C++ code to the classes folder.

With all that being said, how do I add the cocos2dx code to an existing project?

The sample project file structure is:

SampleProject/
..Classes/
   ...
   ...
   ...
...proj.android/
   ...
   ...
   ...
...proj.ios/
   ...
   ...
   ...
...proj.win32
   ...
   ...
...Resources/

Well that structure is a typical cocos2d-x structure. What if you open up the Xcode project and see where it looks for it in Build Settings? Look at Library Search Paths and see. If that doesn’t work You can drop it in and just add it, change your paths in build settings and go.

You could also use the prebuilt libraries.