wgl.o: In function `wglUseFontOutlines_common':
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:389: undefined reference to `gluNewTess'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:392: undefined reference to `gluTessCallback'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:393: undefined reference to `gluTessCallback'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:394: undefined reference to `gluTessCallback'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:498: undefined reference to `gluTessEndContour'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:510: undefined reference to `gluTessEndPolygon'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:452: undefined reference to `gluTessBeginPolygon'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:459: undefined reference to `gluTessBeginContour'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:462: undefined reference to `gluTessVertex'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:476: undefined reference to `gluTessVertex'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:505: undefined reference to `gluTessEndContour'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:520: undefined reference to `gluDeleteTess'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:489: undefined reference to `gluTessVertex'
/home/wg/wine-0.9.46/dlls/opengl32/wgl.c:492: undefined reference to `gluTessVertex'
collect2: ld 返回 1
winegcc: gcc failed.
make[2]: *** [opengl32.dll.so] 错误 2
make[2]: Leaving directory `/tmp/wine-0.9.46/dlls/opengl32'
make[1]: *** [opengl32] 错误 2
make[1]: Leaving directory `/tmp/wine-0.9.46/dlls'
make: *** [dlls] 错误 2
在网上找了很多资料,终于找到一篇外国的相关的资料,如下所示:
以下将引用原文内容:
Compile issue with current git under Fedora7
Arthur Coombes arthur at softlyspoken.org.uk
Sat Jul 21 08:17:20 CDT 2007
* Previous message: Comments on winefontcfg tool?
* Next message: wine's argv[0] and current directory
* Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
When building from git on a fully patched Fedora 7 install my compile
stops building opengl32.dll.so complaining of lots of undefined
reference's to glu strings. Adding -lglu32 to the compile command
manually allows the file to compile and I can complete the install. It
then seems to work fine (I only really run Steam/CS:S regularly).
I'm not too good with code but I'd guess a configure issue. I've
included files you might find relevant
Arthur Coombes
"Theology is never any help; it is searching in a dark cellar at
midnight for a black cat that isn't there."
Robert A. Heinlein.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.bz2
Type: application/x-bzip
Size: 29752 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/ ... config.log-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.status.bz2
Type: application/x-bzip
Size: 14890 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/ ... fig.status-0001.bin
* Previous message: Comments on winefontcfg tool?
* Next message: wine's argv[0] and current directory
* Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the wine-devel mailing list
后来发现正如前文所言,只要添加“-l glu32”就可以使opengl32编译通过。
具体做法是:(再说明一下,我的系统是Fedora 7 x86_64)
先把wine-0.9.46.tar.bz2解压到某个目录,然后进入该目录,再运行以下命令:
./configure
make depend
然后进入到wine-0.9.46/dlls/opengl32,打开Makefile文件,修改第9行为以下内容:
EXTRALIBS = -L/usr/lib64 -lSM -lICE -lXxf86vm -lXext -lX11 -lGL -l glu32
其实就是添加“-l glu32”,记得保存。
接着返回到wine-0.9.46目录下,执行以下命令:
make
make install