Sergey Shambir wrote:
I’ve created pull request which adds file
cocos2dx.pri, that contains everything necessary to setup project. It also automatically builds required libraries using makefiles.
You template gave me some new ideas for
cocos2dx.pri, thanks for that. And I’m curious, what the reason to link application with static libraries from cocos2d-x distribution? AFAIK distributions have strict policy for that: app should use system library for security reasons, so system CURL should be used instead of precompiled.
I’m new with qtcreator. I’ve tried your way. It compiles fine. But I have problem with resources. I’m building project outside of cocos2d_root. I’m adding resource to project in assets folder, say assets/test.png, then in my .pro
OTHER_FILES += \
I’ve tried two ways to use it
CCSprite* pSprite = CCSprite::create("test.png");
CCSprite* pSprite = CCSprite::create("assets/test.png");
But I have an error: cocos2d-x debug info [Get data from file(test.png) failed!]
(running and compiling for linux)
What is the proper way to add a resource to project and use it ?