我正在尝试通过连接到远程linux服务器在linux中运行opengl程序。我使用ssh连接,还提供了-X选项,以使用X窗口系统。
我能够连接到服务器并编译它。我成功地创建了可执行文件。现在,当我运行可执行文件时,我得到一个错误。上面写着
freeglut (./lineTest): ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 4 (X_DestroyWindow)
Resource id in failed request: 0x0
Serial number of failed request: 26
Current serial number in output stream: 29其中lineTest是可执行文件的名称。
当我编译代码时,我将它链接到glut和GLU库。
因为服务器是远程服务器,所以我不能做太多的驱动程序更改。
发布于 2011-09-16 02:28:02
错误消息的第一行是一个指示性信息:
freeglut (./lineTest): ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow…这意味着,客户端连接到的X11服务器不支持设置OpenGL所需的帧缓冲区格式。
第一步是使用glxinfo检查实际支持的内容。请像运行您的程序一样运行glxinfo,并将其输出发布到此处(很可能在行中的某处没有OpenGL支持)。还要在本地执行glxinfo,因为它是您的本地计算机,它将执行所有的OpenGL工作。
https://stackoverflow.com/questions/7435296
复制相似问题