Installation of wine via sources

Questions about Wine on Linux
Post Reply
alrito
Level 1
Level 1
Posts: 8
Joined: Tue May 17, 2022 12:57 pm

Installation of wine via sources

Post by alrito » Thu Jun 30, 2022 6:18 am

Hello to all of you,

How to install wine from source (with the *.tar.xz compressed file) ?

At first, you have to configure it but I'm confused and I followed the doc.

In my attempts, either there is no sound or when I run an application nothing but winecfg and explorer works.

Help me

jkfloris
Level 12
Level 12
Posts: 2139
Joined: Thu Aug 14, 2014 10:10 am

Re: Installation of wine via sources

Post by jkfloris » Thu Jun 30, 2022 12:01 pm

Probably the hardest part is making the 32-bit part of Wine.
Fortunately, most Linux distributions are multiarch, allowing both the 64-bit and 32-bit development libraries to be installed side-by-side. On https://wiki.winehq.org/Building_Wine you can find which libraries you need. Install both the 64 and 32-bit libraries. For example on Debian/Ubuntu you need libasound2-dev:amd64 and libasound2-dev:i386

When you think you have all the libraries you need installed, create a folder for the 64-bit and the 32-bit part of Wine.

Code: Select all

$ ls -1
32                  # <-- The folder where the 32-bit Wine will be built.
64                  # <-- The folder where the 64-bit Wine will be built.
wine-7.11           # <-- The extracted source file.
wine-7.11.tar.xz    # <-- The Wine source
First build the 64-bit part

Code: Select all

cd 64
../wine-7.11/configure --enable-win64 --prefix=${HOME}/wine-homemade
# If no important dependencies are missing then you can build Wine with:
make
Next the 32-bit part

Code: Select all

cd 32
../wine-7.11/configure --with-wine64=../64 --prefix=${HOME}/wine-homemade
# If also all necessary 32-bit libraries are found, then you can compile the 32-bit part.
make
If everything went well, you can install Wine with:

Code: Select all

cd 32
make install
cd ../64
make install
# After this, you can start your self-made Wine with:
${HOME}/wine-homemade/bin/wine winecfg

alrito
Level 1
Level 1
Posts: 8
Joined: Tue May 17, 2022 12:57 pm

Re: Installation of wine via sources

Post by alrito » Fri Jul 01, 2022 3:53 am

Hello jkfloris,

I am now in 32 bits and there it crashes. I have this:


configure: error: X 32-bit development files not found. Wine will be built
without X support, which probably isn't what you want. You will need
to install 32-bit development packages of Xlib at the very least.
Use the --without-x option if you really want this.


What are the libraries that I need to have X image.
However, Xlib I think is probably X11 and it is installed.

jkfloris
Level 12
Level 12
Posts: 2139
Joined: Thu Aug 14, 2014 10:10 am

Re: Installation of wine via sources

Post by jkfloris » Fri Jul 01, 2022 11:19 am

Probably the libx11-dev:i386 package is sufficient. If not, install the xorg-dev:i386 package.

alrito
Level 1
Level 1
Posts: 8
Joined: Tue May 17, 2022 12:57 pm

Re: [Resolved]Installation of wine via sources

Post by alrito » Sun Jul 03, 2022 12:10 pm

That's it, I managed to compile and install wine.

I was missing the 32 bits libraries so I had to install all of them and since then, it's working. Thanks

aug
Level 2
Level 2
Posts: 43
Joined: Sat Oct 30, 2021 4:21 am

Re: Installation of wine via sources

Post by aug » Fri Jul 08, 2022 2:35 pm

Why you this trying to install using source ?

If using Ubuntu try the command below to see if is possible download required files
sudo apt-get update
sudo apt-get --fix-broken install
or
sudo apt-get --fix-broken install -d
if you wish save downloaded files

Post Reply