用vnc远程连接ubuntu,发现ubuntu的cocos2dx程序无法打开,不用vnc远程连接就可以打开!

按照http://docs.cocos.com/cocos2d-x/manual/zh/installation/Linux.html的配置说明在Ubuntu 16.04 64位中编译了cocos2dx,编译成功,直接打开已编译好的测试程序能显示正常的测试示例界面:

但是如果用vnc远程这台ubuntu,则无法打开之前已编译好的测试程序。
提示错误如下:
./cpp-tests
Error launch application: Can’t create window
More info:
GLFWError #65542 Happen, GLX: GLX version 1.3 is required
GLFWError #65537 Happen, The GLFW library is not initialized
GLFWError #65537 Happen, The GLFW library is not initialized
GLFWError #65537 Happen, The GLFW library is not initialized
GLFWError #65537 Happen, The GLFW library is not initialized
GLFWError #65537 Happen, The GLFW library is not initialized
GLFWError #65537 Happen, The GLFW library is not initialized
GLFWError #65537 Happen, The GLFW library is not initialized
GLFWError #65537 Happen, The GLFW library is not initialized

Segmentation fault (core dumped)

如图所示:

远程连接 不支持GPU渲染的