cocos2d x - Undefined reference to functions in CCGLViewImpl for Ubuntu in codeblocks -
i trying build cocos2-dx based project in code blocks. use ubuntu 14. got following errors
game_dir/samplegame/cocos2d/cocos/platform/desktop/ccglviewimpl-desktop.cpp:287: undefined reference
glfwseterrorcallback' game_dir/samplegame/cocos2d/cocos/platform/desktop/ccglviewimpl-desktop.cpp:348: undefined reference to
glfwwindowhint' game_dir/samplegame/cocos2d/cocos/platform/desktop/ccglviewimpl-desktop.cpp:360: undefined referenceglfwcreatewindow' game_dir/samplegame/cocos2d/cocos/platform/desktop/ccglviewimpl-desktop.cpp:361: undefined reference to
glfwmakecontextcurrent' game_dir/samplegame/cocos2d/cocos/platform/desktop/ccglviewimpl-desktop.cpp:364: undefined referenceglfwsetcursorposcallback' game_dir/samplegame/cocos2d/cocos/platform/desktop/ccglviewimpl-desktop.cpp:365: undefined reference to
glfwsetscrollcallback' game_dir/samplegame/cocos2d/cocos/platform/desktop/ccglviewimpl-desktop.cpp:368: undefined referenceglfwsetwindowposcallback' game_dir/samplegame/cocos2d/cocos/platform/desktop/ccglviewimpl-desktop.cpp:369: undefined reference to
glfwsetframebuffersizecallback' game_dir/samplegame/cocos2d/cocos/platform/desktop/ccglviewimpl-desktop.cpp:371: undefined reference `glfwsetwindowiconifycallback'
i got answer own question.
i changed target platform unix, set all. added classes in cmake.txt. clean , build. worked.
Comments
Post a Comment