使用 OpenGL 编译 Octave 4 ..X11 配置脚本链接错误

使用 OpenGL 编译 Octave 4 ..X11 配置脚本链接错误

我想编译支持 OpenGL/GUI 的 Octave 4,但不知道要在 RHEL/CentOS 系统上安装哪些软件包。我只收到警告:

configure: WARNING: OpenGL libs (GL and GLU) not found -- disabling GUI
configure: WARNING: 
configure: WARNING: I didn't find the necessary libraries to compile native
configure: WARNING: graphics.  It isn't necessary to have native graphics,
configure: WARNING: but you will need to have gnuplot installed or you won't
configure: WARNING: be able to use any of Octave's plotting commands
configure: WARNING:

有什么建议可以安装哪些 OpenGL 软件包吗?

编辑:config.log 显示:

configure:24012: gcc -o conftest -g -O2 -pthread -fopenmp   conftest.c -lGL  -lm   >&5
/usr/lib64/libX11.so.6: undefined reference to `xcb_wait_for_reply64'
/usr/lib64/libX11.so.6: undefined reference to `xcb_poll_for_reply64'
collect2: ld returned 1 exit status
configure:24019: $? = 1

上传的config.log:https://www.dropbox.com/s/m89kukk5kfyjkky/config.log?dl=0

答案1

要获得对 Octave-4.0.0 版本的 OpenGL 支持,您必须安装以下软件包

yum install mesa-libGL mesa-libGLU mesa-libGL-devel mesa-libGLU-devel

答案2

问题出在libxcb图书馆。我的系统有较旧的libxcb库,不支持xcb_wait_for_reply64xcb_poll_for_reply64函数调用。升级后libxcb问题就解决了。

相关内容