Page 1 of 7 123 ... LastLast
Results 1 to 10 of 70

Thread: HOWTO: Compile wine in amd64

  1. #1
    Join Date
    Nov 2005
    Location
    Melbourne, Australia
    Beans
    28
    Distro
    Edgy Eft Testing

    HOWTO: Compile wine in amd64

    This howto will tell you how to compile wine in an Ubuntu AMD64 Dapper Drake system. It worked for me. Let me know if it doesn't for you. It might work in Breezy too, but I'm not sure.

    First add the universe repository to your /etc/apt/sources.list file, if you have not already.

    Code:
    sudo gedit /etc/apt/sources.list
    use kate instead of gedit if you use kde. Add the following line to the end of the script.

    Code:
    deb http://au.archive.ubuntu.com/ubuntu dapper universe
    Obviously change the country if necessary.

    Then type into a terminal:

    Code:
    sudo apt-get build-dep wine
    sudo apt-get install build-essential gcc-3.4 libc6-i386 libc6-dev-i386 ia32-libs
    now make sure that your libraries will be found (thanks to jontxo for this tip)
    If there are any problems with the location of any library the best thing to do to solve it is to edit, or to create if it doesn't already exist, the file /etc/ld.so.conf.

    Code:
    sudo gedit /etc/ld.so.conf
    Use kate if you use Kubuntu. There you can tell ubuntu the directories where it can search for libraries. This is my file:

    /usr/X11R6/lib32
    /usr/lib32
    /lib32/

    after editing this file you only have to use the comand sudo ldconfig.

    now get the wine source package:

    Code:
    mkdir ~/tmp
    cd ~/tmp
    wget -c http://wine.budgetdedicated.com/apt/pool/main/w/wine/wine_0.9.21~winehq0~ubuntu~6.06.orig.tar.gz
    tar xvzf wine_0.9.21~winehq0~ubuntu~6.06.orig.tar.gz
    Now you have to install the 32-bit dependencies of wine.

    Code:
    wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/i/icu/libicu34-dev_3.4.1a-1ubuntu1_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/i/icu/libicu34_3.4.1a-1ubuntu1_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/f/freetype1/libttf2_1.4pre.20030402-1.1ubuntu1_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/f/freetype1/libttf-dev_1.4pre.20030402-1.1ubuntu1_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/libx/libx11/libx11-dev_6.2.1+cvs.20050722-8_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/libx/libxext/libxext6_1.0.0-0ubuntu4_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/libx/libxext/libxext-dev_1.0.0-0ubuntu4_i386.deb
    for i in *.deb; do dpkg -x "$i" `basename "$i" .deb`; done
    rm -Rf *.deb
    sudo -i
    cd /home/<username>/tmp                 # replace <username> with your username, obviously ;)
    cp -r libicu34_*/usr/lib/*.so.34.1 /usr/lib32
    for i in /usr/lib32/libicu*.so.34.1; do ln -fs "$i" /usr/lib32/`basename "$i" .1`; done
    for i in /usr/lib32/libicu*.so.34.1; do ln -fs "$i" /usr/lib32/`basename "$i" .34.1`; done
    cp -r libicu34-*/usr/lib/*.a /usr/lib32
    cp -r libicu34-*/usr/lib/icu /usr/lib32
    cp -r libttf2_*/usr/lib/*.so.2.4.0 /usr/lib32
    ln -fs /usr/lib32/libttf.so.2.4.0 libttf.so.2
    ln -fs /usr/lib32/libttf.so.2.4.0 libttf.so
    cp -r libttf-dev_*/usr/lib/*.[al]* /usr/lib32
    cp -r libx11-dev*/usr/lib/libX11.a /usr/lib32; cp -r libx11-dev*/usr/lib/pkgconfig/* /usr/lib32/pkgconfig
    ln -fs /usr/lib32/libX11.so.6.2.0 /usr/lib32/libX11.so
    cp -r libxext6_*/usr/lib/libXext.so.6.4.0 /usr/lib32
    ln -fs /usr/lib32/libXext.so.6.4.0 /usr/lib32/libXext.so.6
    ln -fs /usr/lib32/libXext.so.6.4.0 /usr/lib32/libXext.so
    cp -r libxext-dev*/usr/lib/*.a /usr/lib32
    cp -r libxext-dev*/usr/lib/pkgconfig/* /usr/lib32/pkgconfig/
    ldconfig
    exit
    Now we actually have to compile wine. It took about half an hour on my AMD Athlon64 3000+, so it will take a while.

    Code:
    cd wine_0.9.21~winehq0~ubuntu~6.06.orig
    CC="gcc-3.4 -m32" ./configure
    make depend && make
    sudo make install
    Now you have the latest wine installed in your amd64 system. Use the guide at http://ubuntuforums.org/showthread.p...hlight=winecvs from step four to configure wine properly.

    Hope this guide helps somebody.

    * I added libc6-i386 to the install list, thanks to jontxo
    * I forgot to write install in the apt-get install line, fixed
    * updated the version of libxext6 and libxext-dev available (from 1.0.0-0ubuntu3 to 1.0.0-0ubuntu4) and changed cd wine_0.9.12~winehq1.orig.tar.gz to cd wine-0.9.12~winehq1.orig (thanks zakusage)
    Last edited by psychosushi; September 30th, 2006 at 10:30 AM. Reason: updating the wine version

  2. #2
    Join Date
    Apr 2006
    Beans
    23

    Re: HOWTO: Compile wine in amd64

    Hi psychosushi
    I've tried your howto and it althougt i have done all the steps i cannot compile. I can do the configure comand : CC="gcc-3.4 -m32" ./configure
    and the make depend command, but when i try the make command i get the following error

    /usr/bin/ld: warning: libdl.so.2, needed by ../port/libwine_port.so, not found (try using -rpath or -rpath-link)
    ../port/libwine_port.so: referencia a `dlclose@GLIBC_2.0' not defined
    ../port/libwine_port.so: referencia a `dlerror@GLIBC_2.0' not defined
    ../port/libwine_port.so: referencia a `dlopen@GLIBC_2.1' not defined
    ../port/libwine_port.so: referencia a `dlsym@GLIBC_2.0' not defined
    collect2: ld returned output state 1
    make[1]: *** [wineserver] Error 1
    make[1]:leaves directory
    `/media/hda2/Programas_Linux/winex/winex/server'make: *** [server/wineserver] Error 2

  3. #3
    Join Date
    Aug 2005
    Beans
    704
    Distro
    Edgy Eft Testing

    Re: HOWTO: Compile wine in amd64

    Does this allow for running 32-bit windows programs?

  4. #4
    Join Date
    Nov 2005
    Location
    Melbourne, Australia
    Beans
    28
    Distro
    Edgy Eft Testing

    Re: HOWTO: Compile wine in amd64

    Quote Originally Posted by jontxo
    Hi psychosushi
    when i try the make command i get the following error

    /usr/bin/ld: warning: libdl.so.2, needed by ../port/libwine_port.so, not found (try using -rpath or -rpath-link)
    ../port/libwine_port.so: referencia a `dlclose@GLIBC_2.0' not defined
    ../port/libwine_port.so: referencia a `dlerror@GLIBC_2.0' not defined
    ../port/libwine_port.so: referencia a `dlopen@GLIBC_2.1' not defined
    ../port/libwine_port.so: referencia a `dlsym@GLIBC_2.0' not defined
    collect2: ld returned output state 1
    make[1]: *** [wineserver] Error 1
    make[1]:leaves directory
    `/media/hda2/Programas_Linux/winex/winex/server'make: *** [server/wineserver] Error 2
    my mistake, you need install the libc6-i386 package as well. I forgot to write it down

  5. #5
    Join Date
    Nov 2005
    Location
    Melbourne, Australia
    Beans
    28
    Distro
    Edgy Eft Testing

    Re: HOWTO: Compile wine in amd64

    Quote Originally Posted by Jason_25
    Does this allow for running 32-bit windows programs?
    yes

  6. #6
    Join Date
    Jan 2006
    Beans
    15

  7. #7
    Join Date
    Aug 2005
    Beans
    704
    Distro
    Edgy Eft Testing

    Re: HOWTO: Compile wine in amd64

    Quote Originally Posted by jontxo
    /usr/bin/ld: warning: libdl.so.2, needed by ../port/libwine_port.so, not found (try using -rpath or -rpath-link)
    ../port/libwine_port.so: referencia a `dlclose@GLIBC_2.0' not defined
    ../port/libwine_port.so: referencia a `dlerror@GLIBC_2.0' not defined
    ../port/libwine_port.so: referencia a `dlopen@GLIBC_2.1' not defined
    ../port/libwine_port.so: referencia a `dlsym@GLIBC_2.0' not defined
    collect2: ld returned output state 1
    make[1]: *** [wineserver] Error 1
    make[1]:leaves directory
    `/media/hda2/Programas_Linux/winex/winex/server'make: *** [server/wineserver] Error 2
    I am getting these errors compiling too. That is with libc6-i386 package installed. Also, libdl.so.2 is in /usr/lib and /usr/lib32.

  8. #8
    Join Date
    Nov 2005
    Location
    Melbourne, Australia
    Beans
    28
    Distro
    Edgy Eft Testing

    Re: HOWTO: Compile wine in amd64

    Quote Originally Posted by Jason_25
    I am getting these errors compiling too. That is with libc6-i386 package installed. Also, libdl.so.2 is in /usr/lib and /usr/lib32.
    are you trying to install wine or winex? in the passage you quoted it was winex, but this is not a guide for winex

  9. #9
    Join Date
    Nov 2005
    Location
    Melbourne, Australia
    Beans
    28
    Distro
    Edgy Eft Testing

    Re: HOWTO: Compile wine in amd64

    Quote Originally Posted by Jason_25
    I am getting these errors compiling too. That is with libc6-i386 package installed. Also, libdl.so.2 is in /usr/lib and /usr/lib32.
    for me libdl.so.2 is in /lib32 so it probably is for you as well, so try instead of CC="gcc-3.4 -m32" ./configure type CC="gcc-3.4 -m32" LDFLAGS=-L/lib32/ ./configure

  10. #10
    Join Date
    Apr 2006
    Beans
    23

    Re: HOWTO: Compile wine in amd64

    i've managed to compile wine but after the CC="gcc-3.4 -m32" ./configure command i get the following message:

    *** Warning: Freetype or Fontforge is missing.
    *** Fonts will not be built. Dialog text may be invisible or unaligned.

    Configure finished. Do 'make depend && make' to compile Wine.

    After that i can run make depend && make and the program compiles but when i try to use it with gta san andreas it complains about directx 9 in a message box. The output of the terminal is:
    fixme:system:SystemParametersInfoW Unimplemented action: 8193 (SPI_SETFOREGROUNDLOCKTIMEOUT)
    epoll_ctl: Operation not permitted

Page 1 of 7 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •