Building Wow64 setup

Questions about Wine on Linux
Locked
Amathorian
Level 1
Level 1
Posts: 5
Joined: Wed Jun 27, 2012 5:34 pm

Building Wow64 setup

Post by Amathorian »

I extracted the newest wine source(1.5.7) twice. one is /home/josh/wine-1.5.7-32 and the other is /home/josh/wine-1.5.7-64 Following the instructions on wine wiki for creating a wow64 setup, I compiled the 64bit one first with ./configure --enable-win64 && make -j2 and it had no problems at all. However, when i went to the 32bit directory, i did ./configure --with-wine64=../wine-1.5.7-64 && make -j2 but the make errored out here:

"
make[1]: Leaving directory `/home/josh/wine-1.5.7-32/libs/wine'
rm -f tools && ln -s ../wine-1.5.7-64/tools tools
rm: cannot remove `tools': Is a directory
make: *** [tools] Error 1
"

How do I fix this?
Amathorian
Level 1
Level 1
Posts: 5
Joined: Wed Jun 27, 2012 5:34 pm

Post by Amathorian »

come on, noone has a solution? or suggestion?
i've tried to build a wow64 with wine 1.5.7, 1.5.6, 1.5.0 and 1.4.1 and none of them work, they all give me the same error, is it a misstype in the makefile or what?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Follow ALL the instructions in the wiki for building a shared WoW64 setup. Specifically, you need to do an out-of-tree build from the same source tree. http://wiki.winehq.org/Wine64
User avatar
KenSharp
Level 4
Level 4
Posts: 149
Joined: Mon Jul 13, 2009 8:52 pm

Post by KenSharp »

The Wiki is out of date:

To compile 32-bit on a 64-bit Precise system you need to use a chroot.

You then need the chroot to see your 64-bit compilation, probably by using the bind option in mount.

The build fails badly.

I haven't looked at other ways around this yet as I cannot see any.

64-bit on 64-bit = SUCCESS
32-bit on 32-bit = SUCCESS
32-bit on 64-bit = FAIL
WoW64 on 32-bit = FAIL
WoW64 on 64-bit = FAIL

This is with Ubuntu Precise only. I haven't tried Debian, for example.

What distros are people using to compile the WoW setup? A chroot with this distro is probably the solution. Maybe Debian works?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

KenSharp wrote: What distros are people using to compile the WoW setup? A chroot with this distro is probably the solution. Maybe Debian works?
The instructions in the wiki work fine for any distro with proper multiarch support, such as openSUSE and Fedora. The problems with compiling 32 bit Wine on 64 bit Ubuntu 12.04 are due to its poor implementation of multiarch. https://bugs.launchpad.net/ubuntu/+sour ... bug/944321

You might want to read the sticky at the top of the forum about the many woes of Ubuntu 12.04.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Also, the wiki page for packagers has alternative build instructions for distros where 32 bit Wine cannot be built on a 64 bit system. http://wiki.winehq.org/Wine64ForPackagers
ZombieRedShirt
Level 3
Level 3
Posts: 86
Joined: Fri Oct 07, 2011 6:25 am

use a virtual machine?

Post by ZombieRedShirt »

Hello,

I know it's a big hassle to do, but I'd suggest creating a virtual machine using ubuntu 11.10. It's what I've been doing for awhile, and it's certainly easier than using a chroot.

I'm using virtual box and ubuntu 11.10 64 bit to build wine, and it works pretty well.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

http://wiki.winehq.org/WineOn64bit has updated instructions for how to
build mixed 32/64 wine on Ubuntu 12.04, I think.
Amathorian
Level 1
Level 1
Posts: 5
Joined: Wed Jun 27, 2012 5:34 pm

Post by Amathorian »

Now I get this error when running the ../wine-1.5.8/configure --with-wine64=../wine64 inside the wine32 folder

checking for the directory containing the Wine tools... configure: error: could not find Wine tools in ../wine64
Amathorian
Level 1
Level 1
Posts: 5
Joined: Wed Jun 27, 2012 5:34 pm

Post by Amathorian »

Amathorian wrote:Now I get this error when running the ../wine-1.5.8/configure --with-wine64=../wine64 inside the wine32 folder

checking for the directory containing the Wine tools... configure: error: could not find Wine tools in ../wine64
NVM i derped and forgot to compile the win64 first, im half asleep sorry
User avatar
KenSharp
Level 4
Level 4
Posts: 149
Joined: Mon Jul 13, 2009 8:52 pm

Re: Building Wow64 setup

Post by KenSharp »

Well, this is how I did it: http://kennystechtalk.blogspot.com/2012 ... buntu.html

There may be better ways, but this worked for me.
Locked