I apologize, but it seems only half the mail was sent! Anyway, Here is what I wrote:
Hi!
I've installed Ubuntu 5.10 (Breezy Badger) on an amd64 machine. I
wanted to install wine and noticed that it is not packaged for amd64,
but I did see the comments on the bottom of this page
http://winehq.org/site/download-deb, which explain how to build wine
from source. I tried this, but ran into a lot of problems.
I got as far as running 'sudo apt-get --build source wine', and it spits out:
checking for C compiler default output file name... configure: error: C
compiler cannot create executables See `config.log' for more details.
make: *** [config.status] Error 77 Build command 'cd wine-0.9.1-winehq
&& dpkg-buildpackage -b -uc' failed. E: Child process failed
I solved this by installing the ia32-libs, ia32-libs-dev and ia32-libs-gtk packages.
However the compilation failed again with:
/usr/bin/ld: skipping incompatible /usr/lib/libXext.a when searching
for -lXext /usr/bin/ld: cannot find -lXext collect2: ld returned 1 exit
status winegcc: gcc failed. make[3]: *** [ddraw.dll.so] Error 2
make[3]: Leaving directory `/home/drimbar/wine-0.9.1-winehq/dlls/ddraw'
make[2]: *** [ddraw] Error 2 make[2]: Leaving directory
`/home/drimbar/wine-0.9.1-winehq/dlls' make[1]: *** [dlls] Error 2
make[1]: Leaving directory `/home/drimbar/wine-0.9.1-winehq' make: ***
[build-stamp] Error 2 Build command 'cd wine-0.9.1-winehq &&
dpkg-buildpackage -b -uc' failed. E: Child process failed
I realized that the ia32-libs did not include the required 32-bit X
libraries. I downloaded the libXext package and manually extracted
libXext.so.6.4.1 to /usr/lib32, and created a symlink at
/usr/lib32/libXext.so. I did the same for libXxf86dga, libXxf86vm,
libdrm and libX11.
I also encountered another quirk, and needed to install libxt-dev,
because the header file /usr/include/X11/Intrinsic.h was missing. The
Wine package should probably depend on libxt-dev.
Then, the compilation failed with:
../../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 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
-L../../dlls -L../../dlls/advapi32 -L../../dlls/kernel32
-L../../dlls/ntdll -ladvapi32 -lkernel32 -lntdll -L../../libs/wine
-lwine -L../../libs/unicode -lwine_unicode /usr/lib/libsicuuc.a
/usr/lib/libsicudata.a -lstdc++ -lgcc_s -L../../libs/port -lwine_port
ld: Relocatable linking with relocations from format elf64-x86-64
(/usr/lib/libsicuuc.a(ubidi.ao)) to format elf32-i386 (gdi32.Q3Qz7R.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 `/home/drimbar/wine-0.9.1-winehq/dlls/gdi'
make[1]: *** [gdi] Error 2
make[1]: Leaving directory `/home/drimbar/wine-0.9.1-winehq/dlls'
make: *** [dlls] Error 2 Compilation failed, aborting install.
Has anyone encountered this problem? Better yet, has anyone succesfully built Wine on Ubuntu amd64?
In any case, I think there should be some mention of this stuff on the
"Wine for Debian based distributions" page:
http://winehq.org/site/download-deb
Thanks.
Hi. You need to find out which X server you are using (Xorg or
XFree86), and the devel package for it. Best bet is to find your Ubuntu
CD(s) and look thru there for XFree* or Xorg*, install anything
mentioning devel that starts with either of those..
Dustin
James Trotter wrote:
> Hi!
>
> I've installed Ubuntu 5.10 (Breezy Badger) on an amd64 machine. I wanted
> to install wine and noticed that it is not packaged for amd64, but I did
> see the comments on the bottom of this page
> http://winehq.org/site/download-deb, which explain how to build wine
> from source. I tried this, but ran into alot of problems.
>
> I got as far as running 'sudo apt-get --build source wine', and it spits
> out:
>
> checking for C compiler default output file name... configure: error: C
> compiler cannot create executables See `config.log' for more details.
> make: *** [config.status] Error 77 Build command 'cd wine-0.9.1-winehq
> && dpkg-buildpackage -b -uc' failed. E: Child process failed
>
> I solved this by installing the ia32-libs, ia32-libs-dev and
> ia32-libs-gtk packages.
>
> However the compilation failed again with:
>
> /usr/bin/ld: skipping incompatible /usr/lib/libXext.a when searching for
> -lXext /usr/bin/ld: cannot find -lXext collect2: ld returned 1 exit
> status winegcc: gcc failed. make[3]: *** [ddraw.dll.so
> <http://ddraw.dll.so>] Error 2 make[3]: Leaving directory
> `/home/drimbar/wine- 0.9.1-winehq/dlls/ddraw' make[2]: *** [ddraw] Error
> 2 make[2]: Leaving directory `/home/drimbar/wine-0.9.1-winehq/dlls'
> make[1]: *** [dlls] Error 2 make[1]: Leaving directory
> `/home/drimbar/wine-0.9.1-winehq ' make: *** [build-stamp] Error 2 Build
> command 'cd wine-0.9.1-winehq && dpkg-buildpackage -b -uc' failed. E:
> Child process failed
>
>
> ------------------------------------------------------------------------
>
>