Hi -- I'm trying to get wine going on my ubuntu dapper installation on an amd 64 box. I have followed the wiki instructions in http://wiki.winehq.org/WineOn64bit for ubuntu and rechecked my work. Two things go wrong:
1. /configure can't find opengl, and produces these messages:
configure: WARNING: Wine will be build without OpenGL or Direct3D support configure: WARNING: because something is wrong with the OpenGL setup: configure: WARNING: No OpenGL library found on this system.
2. make depend works, but make all fails with this:
LD_LIBRARY_PATH="../../libs/wine:$LD_LIBRARY_PATH" ../../tools/wrc/wrc --nostdinc -I. -I. -I../../include -I../../include -I/usr/include/freetype2 -D__WINESRC__ -D_GDI32_ -foversion.res version.rc ../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./gdi32.spec dispdib.spec.o gdi.exe.spec.o wing.spec.o bidi16.o dispdib.o env.o gdi16.o metafile16.o wing.o bidi.o bitblt.o bitmap.o brush.o clipping.o dc.o dib.o driver.o enhmetafile.o enhmfdrv/bitblt.o enhmfdrv/dc.o enhmfdrv/graphics.o enhmfdrv/init.o enhmfdrv/mapping.o enhmfdrv/objects.o font.o freetype.o gdi_main.o gdiobj.o icm.o mapping.o metafile.o mfdrv/bitblt.o mfdrv/dc.o mfdrv/graphics.o mfdrv/init.o mfdrv/mapping.o mfdrv/objects.o mfdrv/text.o painting.o palette.o path.o pen.o printdrv.o region.o version.res -o gdi32.dll.so -ladvapi32 -lkernel32 -lntdll /usr/lib/libsicuuc.a /usr/lib/libsicudata.a -lstdc++ -lgcc_s ../../libs/port/libwine_port.a -L/lib32 -L/usr/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32 ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/libsicuuc.a(ubidi.ao)) to format elf32-i386 (gdi32.ArPHdq.o) is not supported winebuild: ld -m elf_i386 -r failed with status 256 winegcc: ../../tools/winebuild/winebuild failed. make[2]: *** [gdi32.dll.so] Error 2 make[2]: Leaving directory `/tmp/wine-0.9.22/dlls/gdi' make[1]: *** [gdi] Error 2 make[1]: Leaving directory `/tmp/wine-0.9.22/dlls' make: *** [dlls] Error 2
I'm not sure what to do now. Any feedback/suggestions would be appreciated.
On 9/29/06, Gerald Britton gerald.britton@gmail.com wrote:
Hi -- I'm trying to get wine going on my ubuntu dapper installation on an amd 64 box. I have followed the wiki instructions in http://wiki.winehq.org/WineOn64bit for ubuntu and rechecked my work. Two things go wrong:
- /configure can't find opengl, and produces these messages:
configure: WARNING: Wine will be build without OpenGL or Direct3D support configure: WARNING: because something is wrong with the OpenGL setup: configure: WARNING: No OpenGL library found on this system.
It's been a while since I compiled wine on my Ubuntu Dapper (32-bit) box, but I had to install (too) many packages, among others nvidia-glx-dev and maybe even some mesa ones, to get wine to detect OpenGL. Are you sure you've got everything? Try building and running some OpenGL samples.
Start by looking at config.log to see why wine didn't detect it.
- make depend works, but make all fails with this:
LD_LIBRARY_PATH="../../libs/wine:$LD_LIBRARY_PATH" ../../tools/wrc/wrc --nostdinc -I. -I. -I../../include -I../../include -I/usr/include/freetype2 -D__WINESRC__ -D_GDI32_ -foversion.res version.rc ../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./gdi32.spec dispdib.spec.o gdi.exe.spec.o wing.spec.o bidi16.o dispdib.o env.o gdi16.o metafile16.o wing.o bidi.o bitblt.o bitmap.o brush.o clipping.o dc.o dib.o driver.o enhmetafile.o enhmfdrv/bitblt.o enhmfdrv/dc.o enhmfdrv/graphics.o enhmfdrv/init.o enhmfdrv/mapping.o enhmfdrv/objects.o font.o freetype.o gdi_main.o gdiobj.o icm.o mapping.o metafile.o mfdrv/bitblt.o mfdrv/dc.o mfdrv/graphics.o mfdrv/init.o mfdrv/mapping.o mfdrv/objects.o mfdrv/text.o painting.o palette.o path.o pen.o printdrv.o region.o version.res -o gdi32.dll.so -ladvapi32 -lkernel32 -lntdll /usr/lib/libsicuuc.a /usr/lib/libsicudata.a -lstdc++ -lgcc_s ../../libs/port/libwine_port.a -L/lib32 -L/usr/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32 ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/libsicuuc.a(ubidi.ao)) to format elf32-i386 (gdi32.ArPHdq.o) is not supported winebuild: ld -m elf_i386 -r failed with status 256 winegcc: ../../tools/winebuild/winebuild failed. make[2]: *** [gdi32.dll.so] Error 2 make[2]: Leaving directory `/tmp/wine-0.9.22/dlls/gdi' make[1]: *** [gdi] Error 2 make[1]: Leaving directory `/tmp/wine-0.9.22/dlls' make: *** [dlls] Error 2
I'm not sure what to do now. Any feedback/suggestions would be appreciated.
Looking at config.log, I see these messages:
configure:9418: checking for glXCreateContext in -lGL configure:9453: gcc -m32 -o conftest -g -O2 conftest.c -lGL -L/usr/X11R6/lib -lXext -lX11 -lm >&5 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../libGL.so when searching for -lGL /usr/bin/ld: skipping incompatible /usr/bin/../lib/libGL.so when searching for -lGL /usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL /usr/bin/ld: cannot find -lGL
How does .configure determine that libGL is incompatible?
Also the second problem is much worse as it stops the make altogether:
Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/libsicuuc.a(ubidi.ao)) to format elf32-i386 (gdi32.ArPHdq.o) is not supported
On 10/2/06, Damjan Jovanovic damjan.jov@gmail.com wrote:
On 9/29/06, Gerald Britton gerald.britton@gmail.com wrote:
Hi -- I'm trying to get wine going on my ubuntu dapper installation on an amd 64 box. I have followed the wiki instructions in http://wiki.winehq.org/WineOn64bit for ubuntu and rechecked my work. Two things go wrong:
- /configure can't find opengl, and produces these messages:
configure: WARNING: Wine will be build without OpenGL or Direct3D support configure: WARNING: because something is wrong with the OpenGL setup: configure: WARNING: No OpenGL library found on this system.
It's been a while since I compiled wine on my Ubuntu Dapper (32-bit) box, but I had to install (too) many packages, among others nvidia-glx-dev and maybe even some mesa ones, to get wine to detect OpenGL. Are you sure you've got everything? Try building and running some OpenGL samples.
Start by looking at config.log to see why wine didn't detect it.
- make depend works, but make all fails with this:
LD_LIBRARY_PATH="../../libs/wine:$LD_LIBRARY_PATH" ../../tools/wrc/wrc --nostdinc -I. -I. -I../../include -I../../include -I/usr/include/freetype2 -D__WINESRC__ -D_GDI32_ -foversion.res version.rc ../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./gdi32.spec dispdib.spec.o gdi.exe.spec.o wing.spec.o bidi16.o dispdib.o env.o gdi16.o metafile16.o wing.o bidi.o bitblt.o bitmap.o brush.o clipping.o dc.o dib.o driver.o enhmetafile.o enhmfdrv/bitblt.o enhmfdrv/dc.o enhmfdrv/graphics.o enhmfdrv/init.o enhmfdrv/mapping.o enhmfdrv/objects.o font.o freetype.o gdi_main.o gdiobj.o icm.o mapping.o metafile.o mfdrv/bitblt.o mfdrv/dc.o mfdrv/graphics.o mfdrv/init.o mfdrv/mapping.o mfdrv/objects.o mfdrv/text.o painting.o palette.o path.o pen.o printdrv.o region.o version.res -o gdi32.dll.so -ladvapi32 -lkernel32 -lntdll /usr/lib/libsicuuc.a /usr/lib/libsicudata.a -lstdc++ -lgcc_s ../../libs/port/libwine_port.a -L/lib32 -L/usr/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32 ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/libsicuuc.a(ubidi.ao)) to format elf32-i386 (gdi32.ArPHdq.o) is not supported winebuild: ld -m elf_i386 -r failed with status 256 winegcc: ../../tools/winebuild/winebuild failed. make[2]: *** [gdi32.dll.so] Error 2 make[2]: Leaving directory `/tmp/wine-0.9.22/dlls/gdi' make[1]: *** [gdi] Error 2 make[1]: Leaving directory `/tmp/wine-0.9.22/dlls' make: *** [dlls] Error 2
I'm not sure what to do now. Any feedback/suggestions would be appreciated.
Gerald Britton wrote:
Looking at config.log, I see these messages:
configure:9418: checking for glXCreateContext in -lGL configure:9453: gcc -m32 -o conftest -g -O2 conftest.c -lGL -L/usr/X11R6/lib -lXext -lX11 -lm >&5 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../libGL.so when searching for -lGL /usr/bin/ld: skipping incompatible /usr/bin/../lib/libGL.so when searching for -lGL /usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL /usr/bin/ld: cannot find -lGL
How does .configure determine that libGL is incompatible?
When it's a 64-bit library, whereas wine is 32-bit.
Ah. Well on the wiki there's a note about symlinks for those libs. I have these:
$ ls -l /usr/lib32/libG* lrwxrwxrwx 1 root root 21 2006-09-18 22:22 /usr/lib32/libGLcore.so.1 -> libGLcore.so.1.0.8762 -rw-r--r-- 1 root root 8113728 2006-09-18 03:28 /usr/lib32/libGLcore.so.1.0.8762 -rw-r--r-- 1 root root 662 2006-09-18 03:28 /usr/lib32/libGL.la lrwxrwxrwx 1 root root 17 2006-09-18 22:22 /usr/lib32/libGL.so.1 -> libGL.so.1.0.8762 -rw-r--r-- 1 root root 540136 2006-09-18 03:28 /usr/lib32/libGL.so.1.0.8762 lrwxrwxrwx 1 root root 20 2006-08-28 23:21 /usr/lib32/libGLU.so.1 -> libGLU.so.1.3.060401 -rw-r--r-- 1 root root 479244 2006-05-05 11:05 /usr/lib32/libGLU.so.1.3.060401
Is there a command to verify if the libs are 32- or 64-bit?
On 10/2/06, Robert Shearman rob@codeweavers.com wrote:
Gerald Britton wrote:
Looking at config.log, I see these messages:
configure:9418: checking for glXCreateContext in -lGL configure:9453: gcc -m32 -o conftest -g -O2 conftest.c -lGL -L/usr/X11R6/lib -lXext -lX11 -lm >&5 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../libGL.so when searching for -lGL /usr/bin/ld: skipping incompatible /usr/bin/../lib/libGL.so when searching for -lGL /usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL /usr/bin/ld: cannot find -lGL
How does .configure determine that libGL is incompatible?
When it's a 64-bit library, whereas wine is 32-bit.
-- Rob Shearman
On Monday, October 02, 2006 10:28, Gerald Britton wrote:
Is there a command to verify if the libs are 32- or 64-bit?
Try file:
neil@x2-42 ~ $ file /lib/libz.so.1.2.3 /lib/libz.so.1.2.3: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped neil@x2-42 ~ $ file /emul/linux/x86/lib/libz.so.1.2.3 /emul/linux/x86/lib/libz.so.1.2.3: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
- Neil
Just tried to compile wine .23 on dapper 6.06 on AMD 64-bit. Make all terminated with these messages. What does this error mean and how can I get past it?
gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_KERNEL32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -o wowthunk.o wowthunk.c ../../tools/winebuild/winebuild -D_REENTRANT -fPIC --as-cmd "as --32" -o relay16asm.o --relay16 LD_LIBRARY_PATH="../../libs/wine:$LD_LIBRARY_PATH" ../../tools/wmc/wmc -i -U -H /dev/null -o nls/winerr_deu.mc.rc nls/winerr_deu.mc LD_LIBRARY_PATH="../../libs/wine:$LD_LIBRARY_PATH" ../../tools/wmc/wmc -i -U -H /dev/null -o nls/winerr_enu.mc.rc nls/winerr_enu.mc ../../tools/winebuild/winebuild -D_REENTRANT -fPIC --as-cmd "as --32" --dll -o krnl386.exe.spec.o --dll-name kernel --main-module kernel32.dll --res version16.res --export ./krnl386.exe.spec LD_LIBRARY_PATH="../../libs/wine:$LD_LIBRARY_PATH" ../../tools/wrc/wrc --nostdinc -I. -I. -I../../include -I../../include -D__WINESRC__ -D_KERNEL32_ -fokernel.res kernel.rc ../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./kernel32.spec comm.drv.spec.o krnl386.exe.spec.o stress.spec.o system.drv.spec.o toolhelp.spec.o win87em.spec.o windebug.spec.o atom16.o error16.o kernel16.o registry16.o toolhelp16.o win87em.o actctx.o atom.o change.o comm.o computername.o console.o cpu.o debugger.o dosmem.o editline.o environ.o except.o fiber.o file.o file16.o format_msg.o global16.o heap.o instr.o kernel_main.o lcformat.o local16.o locale.o lzexpand.o module.o ne_module.o ne_segment.o oldconfig.o path.o powermgnt.o process.o profile.o pthread.o relay16.o resource.o resource16.o selector.o snoop16.o stress.o string.o sync.o syslevel.o system.o tape.o task.o thread.o thunk.o time.o toolhelp.o utthunk.o version.o virtual.o volume.o vxd.o windebug.o wowthunk.o relay16asm.o kernel.res -Wl,--image-base,0x7b800000 -o kernel32.dll.so -lntdll ../../libs/port/libwine_port.a -L/lib32 -L/usr/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32 /usr/sbin/prelink.bin: kernel32.dll.so: Unknown stabs code 0x2e
make[2]: Leaving directory `/tmp/wine-0.9.23/dlls/kernel32' make[1]: Leaving directory `/tmp/wine-0.9.23/dlls' make: *** [dlls] Error 2