linux下运行cocos2dx3.3版本报错

按照引擎中的readme运行

Build and run a new project for Linux

if you never run cocos2d-x on Linux, you need to install all dependencies by the
script in cocos2d/build/install-deps-linux.sh

$ cd cocos2d-x/build
$ ./install-deps-linux.sh

Then

$ cd NEW_PROJECTS_DIR/MyGame
$ cocos run -p linux

Run

$ bin/MyGame

配置环境都没问题,就是在运行cocos run -p linux,报的错
lib/libluacocos2d.a(loslib.c.o):在函数‘os_tmpname’中:
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/external/lua/lua/loslib.c:60: 警告: the use of tmpnam' is dangerous, better use mkstemp’
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o):在函数‘cocos2d::GLViewImpl::GLViewImpl()’中:
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:287:对‘glfwSetErrorCallback’未定义的引用
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o):在函数‘cocos2d::GLViewImpl::initWithRect(std::string const&, cocos2d::Rect, float)’中:
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:348:对‘glfwWindowHint’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:349:对‘glfwWindowHint’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:350:对‘glfwWindowHint’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:351:对‘glfwWindowHint’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:352:对‘glfwWindowHint’未定义的引用
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o):/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:353: more undefined references to `glfwWindowHint’ follow
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o):在函数‘cocos2d::GLViewImpl::initWithRect(std::string const&, cocos2d::Rect, float)’中:
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:360:对‘glfwCreateWindow’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:361:对‘glfwMakeContextCurrent’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:364:对‘glfwSetCursorPosCallback’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:365:对‘glfwSetScrollCallback’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:368:对‘glfwSetWindowPosCallback’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:369:对‘glfwSetFramebufferSizeCallback’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:371:对‘glfwSetWindowIconifyCallback’未定义的引用
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o):在函数‘cocos2d::GLViewImpl::initWithFullScreen(std::string const&)’中:
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:399:对‘glfwGetPrimaryMonitor’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:403:对‘glfwGetVideoMode’未定义的引用
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o):在函数‘cocos2d::GLViewImpl::initWithFullscreen(std::string const&, GLFWvidmode const&, GLFWmonitor*)’中:
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:415:对‘glfwWindowHint’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:416:对‘glfwWindowHint’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:417:对‘glfwWindowHint’未定义的引用
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:418:对‘glfwWindowHint’未定义的引用
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o):在函数‘cocos2d::GLViewImpl::end()’中:
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:432:对‘glfwSetWindowShouldClose’未定义的引用
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o):在函数‘cocos2d::GLViewImpl::windowShouldClose()’中:
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:448:对‘glfwWindowShouldClose’未定义的引用
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o):在函数‘cocos2d::GLViewImpl::updateFrameSize()’中:
/home/hc/develop/cocos2d-x-3.3/project/luaDemo/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:506:对‘glfwGetFramebufferSize’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/HelloLua.dir/build.make:137: recipe for target ‘bin/HelloLua’ failed
make: *** Error 1
CMakeFiles/Makefile2:66: recipe for target ‘CMakeFiles/HelloLua.dir/all’ failed
make: *** Error 2
Makefile:76: recipe for target ‘all’ failed
make: *** Error 2
Error running command, return code: 2

请问这是什么问题,多谢