compiling wine for amd64 on ubuntu dapper 6.06

Damjan Jovanovic damjan.jov at
Mon Oct 2 07:29:32 CDT 2006

On 9/29/06, Gerald Britton <gerald.britton at> 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
> 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.

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.

> 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
>  -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( 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]: *** [] 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.

More information about the wine-devel mailing list