【发布时间】:2017-09-04 17:36:23
【问题描述】:
我正在尝试使用 Mingw32 交叉编译 OpenGL 程序,但遇到了障碍。调用 mingw32-configure 后;编译被
中断configure: error: lacking proper OpenGL support
我检查了 config.log 文件,发现以下条目:
configure:21709: checking GL/gl.h usability
configure:21726: ccache i686-pc-mingw32-g++ -c -O2 -g -pipe -Wall -,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields conftest.cpp >&5
configure:21732: $? = 0
configure:21746: result: yes
configure:21750: checking GL/gl.h presence
configure:21765: ccache i686-pc-mingw32-g++ -E conftest.cpp
configure:21771: $? = 0
configure:21785: result: yes
configure:21813: checking for GL/gl.h
configure:21820: result: yes
configure:21834: checking for glEnable in -lGL
configure:21869: ccache i686-pc-mingw32-g++ -o conftest.exe -O2 -g -pipe - Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms- bitfields conftest.cpp -lGL >&5
/tmp/ccjGmlvX.o: In function 'main':../rpmbuild/SOURCES/poker3d-1.1.36/conftest.cpp:34: undefined reference to `_glEnable'
collect2: ld returned 1 exit status
configure:21875: $? = 1
configure: failed program was:
| /* confdefs.h. */
在本网站上与此问题相关的另一个线程提出建议后,我已将 llvm 软件光栅化器添加到我的系统中,并且还实施了来自 Mingw 站点的建议,将 libopengl32.a 复制到 libGL.a。到目前为止,我在每次编译尝试后得到的错误都没有改变。
给我一些关于如何解决这个问题的建议。
【问题讨论】:
标签: c++ opengl cross-compiling fedora mingw32