Unable to build binaries after OS update (ubuntu) [Solved]

gives lot of linker errors undefined reference error
my issue is similar to this Can’t create native Linux binaries on Linux Mint (probably also Ubuntu) after update but still couldn’t fix it

Have you re-executed install-linux-deps.sh?

@slackmoehrle i am using 3.8 it has download_deps.py, i dont think deps are really the problem cause i executed download-deps.py again , still error is there , also i guess similar problem is seen in this issue https://github.com/cocos2d/cocos2d-x/issues/15697

look in build/install_linux-deps.sh

@slackmoehrle i executed build/install_linux-deps.sh still same problem :frowning:

are you having the same linker errors as the post you referenced?

@slackmoehrle here are the linker errors http://paste.ubuntu.com/17119966/, see line no 83 , it also says that only last part linking is left and it fails there

so tell me how you are compiling this.

@slackmoehrle i dont know i just did cocos run -p linux , earlier it used to work before update

@slackmoehrle now i updated to cocos2d-x 3.11.1 and it is giving me this linking error

[100%] Linking CXX executable bin/MyGame
cocos2d/cocos/libcocos2dInternal.a(CCAction.cpp.o): In function `cocos2d::Action::description() const':
/home/pr/cocos/projects/hello/cocos2d/cocos/2d/CCAction.cpp:58: undefined reference to `cocos2d::StringUtils::format(char const*, ...)'
cocos2d/cocos/libcocos2dInternal.a(CCLayer.cpp.o): In function `cocos2d::Layer::getDescription() const':
/home/pr/cocos/projects/hello/cocos2d/cocos/2d/CCLayer.cpp:420: undefined reference to `cocos2d::StringUtils::format(char const*, ...)'
cocos2d/cocos/libcocos2dInternal.a(CCLayer.cpp.o): In function `cocos2d::LayerColor::getDescription() const':
/home/pr/cocos/projects/hello/cocos2d/cocos/2d/CCLayer.cpp:611: undefined reference to `cocos2d::StringUtils::format(char const*, ...)'
cocos2d/cocos/libcocos2dInternal.a(CCLayer.cpp.o): In function `cocos2d::LayerGradient::getDescription() const':
/home/pr/cocos/projects/hello/cocos2d/cocos/2d/CCLayer.cpp:818: undefined reference to `cocos2d::StringUtils::format(char const*, ...)'
cocos2d/cocos/libcocos2dInternal.a(CCLayer.cpp.o): In function `cocos2d::LayerMultiplex::getDescription() const':
/home/pr/cocos/projects/hello/cocos2d/cocos/2d/CCLayer.cpp:1020: undefined reference to `cocos2d::StringUtils::format(char const*, ...)'
cocos2d/cocos/libcocos2dInternal.a(CCNode.cpp.o):/home/pr/cocos/projects/hello/cocos2d/cocos/2d/CCNode.cpp:227: more undefined references to `cocos2d::StringUtils::format(char const*, ...)' follow
collect2: error: ld returned 1 exit status
CMakeFiles/MyGame.dir/build.make:298: recipe for target 'bin/MyGame' failed
make[2]: *** [bin/MyGame] Error 1
CMakeFiles/Makefile2:74: recipe for target 'CMakeFiles/MyGame.dir/all' failed
make[1]: *** [CMakeFiles/MyGame.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

http://paste.ubuntu.com/17137721/ i need help can you please raise the priority of this issue ?

solved close this issue

what was your fix?

@slackmoehrle i cleaned all the object files and remade all things manually i.e without cocos command line console and it worked :smile: i dont know how

hmm, interesting.