Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm not familiar with compiling software from source.

I would like to test a patched version of Wine following this procedure.

I already have Wine installed and do not wish to modify it. I just want to have a secondary installation with a patched Wine.

How do I go about doing this?

share|improve this question
1  
This is a different issue. That other question was for normal binary pre-compiled versions of wine. This is about compiling and using a patched version of wine. –  To Do Feb 25 '13 at 13:17
add comment

1 Answer

up vote 4 down vote accepted

If you have Wine installed through package management, the wine binary is located in /usr/bin. Then just compile the patched Wine version.

You can apply the patches and compile Wine. After the following two commands you can test Wine from the build directory:

./configure  
make 

To install Wine (optional if you plan on running Wine from the build directory). If you run this command, thewine binary usually installs to /usr/local/bin. If you want to define the install location, you can use the configure parameter, for example: ./configure --prefix=/opt/wine157 which installs Wine to /opt/wine157

sudo make install

Example (on 64 bit system):

wget http://mirrors.ibiblio.org/wine/source/1.5/wine-1.5.7.tar.bz2
tar -xvf wine-1.5.7.tar.bz2
cd wine-1.5.7
wget ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.5.7/0001-Add-support-of-native-Windows-drivers-for-USB-tokens.txt
wget ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.5.7/0002-Re-generate-some-files.txt
patch -p1 < 0001*.txt
patch -p1 < 0002*.txt
./configure --enable-win64
make

To show the Wine version from the build directory:

./wine64 --version

Installation:

sudo make install

Uninstall:

sudo make uninstall

See:

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.