Undefined reference while building project

Hello Guys! Well, I’m having a lot of undefined references at the end of building process of my game.
This is what it shows:

[ 70%] Built target network
[ 76%] Built target extensions
[ 82%] Built target spine
[ 88%] Built target cocosbuilder
Linking CXX executable bin/MyGame
lib/libcocos2d.a(CCGLView.cpp.o): In function cocos2d::GLView::GLView()': /root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:274: undefined reference toglfwSetErrorCallback’
lib/libcocos2d.a(CCGLView.cpp.o): In function cocos2d::GLView::initWithRect(std::string const&, cocos2d::Rect, float)': /root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:336: undefined reference toglfwWindowHint’
/root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:342: undefined reference to glfwCreateWindow' /root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:343: undefined reference toglfwMakeContextCurrent’
/root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:346: undefined reference to glfwSetCursorPosCallback' /root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:347: undefined reference toglfwSetScrollCallback’
/root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:350: undefined reference to glfwSetWindowPosCallback' /root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:351: undefined reference toglfwSetFramebufferSizeCallback’
lib/libcocos2d.a(CCGLView.cpp.o): In function cocos2d::GLView::initWithFullScreen(std::string const&)': /root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:380: undefined reference toglfwGetPrimaryMonitor’
/root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:384: undefined reference to glfwGetVideoMode' lib/libcocos2d.a(CCGLView.cpp.o): In functioncocos2d::GLView::initWithFullscreen(std::string const&, GLFWvidmode const&, GLFWmonitor*)’:
/root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:396: undefined reference to glfwWindowHint' /root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:397: undefined reference toglfwWindowHint’
/root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:398: undefined reference to glfwWindowHint' /root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:399: undefined reference toglfwWindowHint’
lib/libcocos2d.a(CCGLView.cpp.o): In function cocos2d::GLView::end()': /root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:413: undefined reference toglfwSetWindowShouldClose’
lib/libcocos2d.a(CCGLView.cpp.o): In function cocos2d::GLView::windowShouldClose()': /root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:429: undefined reference toglfwWindowShouldClose’
lib/libcocos2d.a(CCGLView.cpp.o): In function cocos2d::GLView::updateFrameSize()': /root/EerieNous/BigSister/cocos2d/cocos/2d/platform/desktop/CCGLView.cpp:488: undefined reference toglfwGetFramebufferSize’
collect2: error: ld returned 1 exit status
make[2]: ** [bin/MyGame] Erro 1
make[1]: ** [CMakeFiles/MyGame.dir/all] Erro 2
make: ** [all] Erro 2
Error running command, return code: 2

What can I do to solve this problem? Thank you all.

You need to install glfw3, have a look to this: http://stackoverflow.com/questions/17768008/how-to-build-install-glfw-3-and-use-it-in-a-linux-project