I don't know how to compile Wine!
I don't know how to compile Wine!
I'm a Linux noob. I'm using Ubuntu 8.04 and understand that, in order to get FEAR to run, I need to remove Wine 1.0, download the source and a patch and then recompile Wine.
I have no idea how to do this. The How To section on the AppsDB makes assumptions that you know what to do already.
Where can I find an explanation of the process? I've had no luck searching probably because I don't know the correct terms!
Many thanks.
I have no idea how to do this. The How To section on the AppsDB makes assumptions that you know what to do already.
Where can I find an explanation of the process? I've had no luck searching probably because I don't know the correct terms!
Many thanks.
I don't know how to compile Wine!
On Thu, Jun 26, 2008 at 1:46 PM, RedMartin <[email protected]> wrote:
While not specifically about that, should have most of the info you need.
http://wiki.winehq.org/RegressionTestingI'm a Linux noob. I'm using Ubuntu 8.04 and understand that, in order to get FEAR to run, I need to remove Wine 1.0, download the source and a patch and then recompile Wine.
I have no idea how to do this. The How To section on the AppsDB makes assumptions that you know what to do already.
Where can I find an explanation of the process? I've had no luck searching probably because I don't know the correct terms!
Many thanks.
While not specifically about that, should have most of the info you need.
The regression testing howto isn't really applicable, to be honest. It's some very advanced stuff involving checking wine out of the development repository, which you totally don't need to do. Try this:
Download the source of whatever version you're interested in (you want a .tar.bz2 file, that's an archive format like .zip)
http://sourceforge.net/project/showfile ... e_id=77449
Extract the downloaded file (try right-clicking in your file manager and going to something like "extract"). This should create a folder of the same name as the archive (i.e. if you downloaded the source archive wine-1.1.0.tar.bz2, extracting it should create the folder "wine-1.1.0" containing the sources for wine.
Download your patch (should be a .patch file) and save it into the root of this folder as well.
Open a command line (terminal). Navigate to the wine directory. For example, if you extracted your archive into /home/brian/development/wine-1.1.0, then you would open a terminal and issue the following command: (cd means "change directory").
cd /home/brian/development/wine-1.1.0
Apply your patch using the following command:
patch -p1 < whateverfile.patch
Look carefully at the output. If it tells you that "hunks failed", stop. Your patch didn't apply, because the source has changed too much from the version the patch was made for. Are you sure you downloaded the version of wine the patch was made for? Post here for more help if this happens.
If the patch applied successfully, it's time to compile wine. Open up your package manager (i.e. synaptic) and remove the "wine" package, which you will be replacing. Then install the build-essential package. This includes the gcc compilers and some libraries which you will need to build wine. Additionally, install the packages "nasm", "yasm" and "bison".
Go back to your terminal and type the command
./configure
Watch the output carefully. If it tells you that you need something else that I've forgotten, search for it on Synaptic or post here and we'll tell you what package to download. If the command finished successfully, you'll see it end with "run make depend && make to compile wine". In that case, run the following command:
(if you have a single core machine, run:)
make depend && make
(if you have dual core machine, instead run:)
make depend && make -j 3
(quad core machine, instead run:)
make depend && make -j 6
Then sit back and grab a cup of coffee, wine will take anywhere from 15 minutes to 45 minutes to compile, depending on your machine.
If the make command produces errors, come back here. Otherwise, if it finishes successfully, issue the command "sudo make install" to install wine, and type your password when prompted.
You can now use the "wine" command to run your newly patched wine.
Check to make sure you're running the expected version using wine --version.
Download the source of whatever version you're interested in (you want a .tar.bz2 file, that's an archive format like .zip)
http://sourceforge.net/project/showfile ... e_id=77449
Extract the downloaded file (try right-clicking in your file manager and going to something like "extract"). This should create a folder of the same name as the archive (i.e. if you downloaded the source archive wine-1.1.0.tar.bz2, extracting it should create the folder "wine-1.1.0" containing the sources for wine.
Download your patch (should be a .patch file) and save it into the root of this folder as well.
Open a command line (terminal). Navigate to the wine directory. For example, if you extracted your archive into /home/brian/development/wine-1.1.0, then you would open a terminal and issue the following command: (cd means "change directory").
cd /home/brian/development/wine-1.1.0
Apply your patch using the following command:
patch -p1 < whateverfile.patch
Look carefully at the output. If it tells you that "hunks failed", stop. Your patch didn't apply, because the source has changed too much from the version the patch was made for. Are you sure you downloaded the version of wine the patch was made for? Post here for more help if this happens.
If the patch applied successfully, it's time to compile wine. Open up your package manager (i.e. synaptic) and remove the "wine" package, which you will be replacing. Then install the build-essential package. This includes the gcc compilers and some libraries which you will need to build wine. Additionally, install the packages "nasm", "yasm" and "bison".
Go back to your terminal and type the command
./configure
Watch the output carefully. If it tells you that you need something else that I've forgotten, search for it on Synaptic or post here and we'll tell you what package to download. If the command finished successfully, you'll see it end with "run make depend && make to compile wine". In that case, run the following command:
(if you have a single core machine, run:)
make depend && make
(if you have dual core machine, instead run:)
make depend && make -j 3
(quad core machine, instead run:)
make depend && make -j 6
Then sit back and grab a cup of coffee, wine will take anywhere from 15 minutes to 45 minutes to compile, depending on your machine.
If the make command produces errors, come back here. Otherwise, if it finishes successfully, issue the command "sudo make install" to install wine, and type your password when prompted.
You can now use the "wine" command to run your newly patched wine.

My pleasure.RedMartin wrote:Wow! What an answer. Thank you.
I've got nothing planned for this weekend so I'll give it a go and report back here with my results.
Thanks again.

Despite one hunk failing it's apparently not an issue according to wine apps db.
So I set about compiling Wine and get this:
So I set about compiling Wine and get this:
The issue is that I can't find xlib or xfree86 in Synaptic!configure: error: X development files not found. Wine will be built
without X support, which probably isn't what you want. You will need to install
development packages of Xlib/Xfree86 at the very least.
Use the --without-x option if you really want this.
to compile wine u need some packages, on opensuse im using zypper or yast2 -i for it. the package u just need may be called xorg-x11-devel (on opensuse).
if the configure script bothers for missing files, i recommend to download them. sure u need not all of them, for example u may not need isdn support or digital camera support.
but to be sure all will be fine u can download them all, because there are not really much files needed.
btw the devel files arnt needed to run wine, they are needed to compile it, this will happen to you offten when you need to compile software. but this wont slow your system down, it just blows it up a bit.
if u have a 64bit linux, it can happen to you, that you will come in much trouble, because wine is 32 bit and that means u need alot 32bit files.
after downloading the needed files, do ./configure again, until it stops asking for missing files. then go on with "make depend".
if the configure script bothers for missing files, i recommend to download them. sure u need not all of them, for example u may not need isdn support or digital camera support.
but to be sure all will be fine u can download them all, because there are not really much files needed.
btw the devel files arnt needed to run wine, they are needed to compile it, this will happen to you offten when you need to compile software. but this wont slow your system down, it just blows it up a bit.
if u have a 64bit linux, it can happen to you, that you will come in much trouble, because wine is 32 bit and that means u need alot 32bit files.
after downloading the needed files, do ./configure again, until it stops asking for missing files. then go on with "make depend".
All done and FEAR is running very well.
I must say that I do prefer the package version of Wine in the way it sets up the Application menu to give easy access to Drive C and Winecfg.
One final question. What is the correct format for creating a launcher so that I can run FEAR with one click? I've tried:
wine /home/martin/.wine/drive_c/Pro*/Sierra/FEAR/FEAR.exe
but it fails. If I navigate cd /home/martin/.wine/drive_c/Pro*/Sierra/FEAR and then wine FEAR.exe I can run it via a Terminal. I just can't seem to figure out how to make that into one command.
Many thanks for all the help.
I must say that I do prefer the package version of Wine in the way it sets up the Application menu to give easy access to Drive C and Winecfg.
One final question. What is the correct format for creating a launcher so that I can run FEAR with one click? I've tried:
wine /home/martin/.wine/drive_c/Pro*/Sierra/FEAR/FEAR.exe
but it fails. If I navigate cd /home/martin/.wine/drive_c/Pro*/Sierra/FEAR and then wine FEAR.exe I can run it via a Terminal. I just can't seem to figure out how to make that into one command.
Many thanks for all the help.
RedMartin wrote:All done and FEAR is running very well.
One final question. What is the correct format for creating a launcher so that I can run FEAR with one click? I've tried:
wine /home/martin/.wine/drive_c/Pro*/Sierra/FEAR/FEAR.exe
but it fails. If I navigate cd /home/martin/.wine/drive_c/Pro*/Sierra/FEAR and then wine FEAR.exe I can run it via a Terminal. I just can't seem to figure out how to make that into one command.
Code: Select all
env WINEPREFIX="/home/martin/.wine" wine "C:\Pro*\Sierra\FEAR.EXE"
Wrong way to do this.Roccivic wrote:RedMartin wrote:All done and FEAR is running very well.
One final question. What is the correct format for creating a launcher so that I can run FEAR with one click? I've tried:
wine /home/martin/.wine/drive_c/Pro*/Sierra/FEAR/FEAR.exe
but it fails. If I navigate cd /home/martin/.wine/drive_c/Pro*/Sierra/FEAR and then wine FEAR.exe I can run it via a Terminal. I just can't seem to figure out how to make that into one command.PeaceCode: Select all
env WINEPREFIX="/home/martin/.wine" wine "C:\Pro*\Sierra\FEAR.EXE"
See http://wiki.winehq.org/FAQ#head-3b297df ... b8edc21619