Shared WoW64

Questions about Wine on Linux
Locked
FrostedFlakes
Level 1
Level 1
Posts: 7
Joined: Wed Jun 14, 2023 7:03 pm

Shared WoW64

Post by FrostedFlakes »

Hi I have a question about building WoW64 when compiling wine from source. It stated on https://wiki.winehq.org/Building_Wine#Shared_WoW64 to use script

cd ~/wine-dirs/wine64-build/
../wine-source/configure --enable-win64
make

cd ~/wine-dirs/wine32-build/
PKG_CONFIG_PATH=/path/to/pkgconfig ../wine-source/configure --with-wine64=../wine64-build
make

Sorry for the noob questions but I can't figure out how to configure these scripts to build the separate directories? As stated when I went to compile I cd to directory with ./configure --enable-win64 but cant understand and need help using both scripts Thanks!
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Shared WoW64

Post by jkfloris »

You need to compile two separate Wine variants. The 64-bit and the 32-bit version.
The example assumes that the source code is in ~/wine-dirs/wine-source
and you create the folders ~/wine-dirs/wine64-build and ~/wine-dirs/wine32-build yourself.

Go to the empty wine64-build directory and you run from that directory configure and make from the wine-source directory. This creates the 64-bit Wine version in the wine64-build folder.
The same for the wine32-build folder to compile the 32-bit Wine version.
FrostedFlakes
Level 1
Level 1
Posts: 7
Joined: Wed Jun 14, 2023 7:03 pm

Re: Shared WoW64

Post by FrostedFlakes »

Thanks for the reply!

I understand what your saying (cd directory to first made folder) then it says ../source I don't know if the dots are supposed to be there (then path to source) configure --enable-win64
make

the next is the same with PKG_CONFIG_PATH=/path/to/pkgconfig which is usr/lib again .. source --with-wine64=../wine64-build path to first made folder

I understand sorry if this hard to read I compiled once should I redo it with the script from the first try?
sorry if this is confusing I was also wondering if there is anyway to just run wine in 32bit for a 64bit operating system? I don't understand how that script runs what it needs in a blank folder I have the source configure when I do make install is that were it will lead to the empty folder? or do both then make install? I'm still a bit confused if you can make sense of it. I would have the 3 folders then run both scripts? Thanks again for the response!!
Last edited by FrostedFlakes on Thu Jun 15, 2023 9:36 pm, edited 4 times in total.
FrostedFlakes
Level 1
Level 1
Posts: 7
Joined: Wed Jun 14, 2023 7:03 pm

Re: Shared WoW64

Post by FrostedFlakes »

Sorry for the above post as I have taken care of it but when I got to install the wine32-build it says looking for wine tools is there something I'm missing or instate a configure option? Thanks!!
Last edited by FrostedFlakes on Fri Jun 16, 2023 6:13 am, edited 1 time in total.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Shared WoW64

Post by jkfloris »

The instructions on the Wiki are not scripts but separate commands.
The command is: "../wine-source/configure --enable-win64" including the two dots.
So there are three commands:

Code: Select all

# 1. Go to the wine64-build directory
cd ~/wine-dirs/wine64-build/

# 2. Run the configure script
../wine-source/configure --enable-win64

# 3. Build Wine
make
If you want to clean up the wine-source directory, you can run:

Code: Select all

# 1. Go to the wine-source directory
cd ~/wine-dirs/wine-source/

# 2. Clean the directory
make clean
Is there a reason to build Wine yourself? WineHQ also has pre-built packages for (systems based on) Debian, Ubuntu and Fedora.
FrostedFlakes
Level 1
Level 1
Posts: 7
Joined: Wed Jun 14, 2023 7:03 pm

Re: Shared WoW64

Post by FrostedFlakes »

Yes I am compiling wine for an arm64 build with wow64 I have figured out how to run these commands and compiled the wine64-build opon moving on to the wine32-build I got a configure:error could not find directory for Wine tools so I added --with-wine-tools=source directory and compiled with no luck when I start the wine it says it looks like wine32 is missing, you should install it as root execute "apt-get install wine32:i386 any ideas on what wine tools are for why it wasn't compiled with 64?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Shared WoW64

Post by jkfloris »

Unfortunately, I have no experience with compiling on ARM64 systems.
Maybe the wiki can help you.
https://wiki.winehq.org/ARM64
https://wiki.winehq.org/ARM
FrostedFlakes
Level 1
Level 1
Posts: 7
Joined: Wed Jun 14, 2023 7:03 pm

Re: Shared WoW64

Post by FrostedFlakes »

Right thanks for the info! I'm still not sure how to do this with a wow64 because this turns out to be two separate builds? Also I'm not sure what there is for wine tools as it's looking for the directory? If anybody has any info about this that be very much appreciated thanks!!
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Shared WoW64

Post by jkfloris »

What comes to mind is that the message wine32 is missing, you should install it as root execute "apt-get install wine32:i386" is from the Debian/Ubuntu version of Wine. Are you sure you are running the self-compiled version?
FrostedFlakes
Level 1
Level 1
Posts: 7
Joined: Wed Jun 14, 2023 7:03 pm

Re: Shared WoW64

Post by FrostedFlakes »

I have compiled both builds using both commands as stated from the website just no luck with running the experimental wow64 yet.
Locked