Hello! I use NetBeans IDE & Cocos2dx (I use Ubuntu Linux 16.04 at home and Windows 7) for my own projects. All my projects are compiled and working properly in these two systems. Recently, in my main job I need to use Cocos2dx (here I use OS X El Capitan). I would like to use the same IDE on all systems. But when I compiled a basic example in NetBeans (I also tried CodeBlocks, CLion, QtCreator), an error occurs at 99 percent of compilations, and I don't know how to fix this in NetBeans. In XCode and s cocos console, everything is compiled and compiled properly, but I would like to use one IDE on all systems.

Error text:

Undefined symbols for architecture x86_64: "FontUtils::_calculateTextAlignment(cocos2d::Device::TextAlign)", referenced from: cocos2d::Device::getTextureDataForText(char const*, cocos2d::FontDefinition const&, cocos2d::Device::TextAlign, int&, int&, bool&) in libcocos2dInternal.a(CCDevice-mac.mm.o) "FontUtils::_calculateParagraphStyle(bool, int)", referenced from: cocos2d::Device::getTextureDataForText(char const*, cocos2d::FontDefinition const&, cocos2d::Device::TextAlign, int&, int&, bool&) in libcocos2dInternal.a(CCDevice-mac.mm.o) "FontUtils::_calculateTextDrawStartWidth(cocos2d::Device::TextAlign, CGSize, CGSize)", referenced from: cocos2d::Device::getTextureDataForText(char const*, cocos2d::FontDefinition const&, cocos2d::Device::TextAlign, int&, int&, bool&) in libcocos2dInternal.a(CCDevice-mac.mm.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [bin/MyGame] Error 1 make[1]: *** [CMakeFiles/MyGame.dir/all] Error 2 make: *** [all] Error 2 

    1 answer 1

    I would choose Qt Creator, it will be the best choice (for development under UNIX, in my opinion, you will not find an better IDE). Carefully look at what is installed, be sure to tick the compiler (I advise MinGW)