wine to run win64 exe

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
yugandhar
Level 2
Level 2
Posts: 25
Joined: Mon Dec 01, 2008 11:08 am

wine to run win64 exe

Post by yugandhar »

Hi,

Am having windows 64 bit executable.I want to run the same using wine in linux x86_64 OS.Will the wine support the same?If so is there anu configuration required while building the wine.

Thanks,
Yug
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

wine to run win64 exe

Post by austin987 »

On Thu, Mar 12, 2009 at 11:32 AM, yugandhar <[email protected]> wrote:
Hi,

Am having windows 64 bit executable.I want to run the same using wine in linux x86_64 OS.Will the wine support the same?If so is there anu configuration required while building the wine.
Wine is just starting to support 64 bit. You'll have to build from
source, and many things don't work yet. But very simple apps do.

You can try it, but odds are you'll be out of luck for a while.

--
-Austin
yugandhar
Level 2
Level 2
Posts: 25
Joined: Mon Dec 01, 2008 11:08 am

Post by yugandhar »

Austin,

Thanks for your prompt response.

I tried to run MyApp.exe(64 bit one) using wine-1.1.16 and got the following error:

............................................................................................
Trying to load PE image for unsupported architecture (AMD-64)

wine: could not load L"Z:\\MyApp.exe": Bad EXE format for MyApp.exe:PE32+ executable for MS Windpws (console).
............................................................................................

Is there any specific param related to 64 bit to be passed while configuring the wine or can it be configured as usual?

Thanks,
Yug
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

wine to run win64 exe

Post by austin987 »

On Thu, Mar 12, 2009 at 12:05 PM, yugandhar <[email protected]> wrote:
Austin,

Thanks for your prompt response.

I tried to run MyApp.exe(64 bit one) using wine-1.1.16 and got the following error:

............................................................................................
Trying to load PE image for unsupported architecture (AMD-64)

wine: could not load L"Z:\\MyApp.exe": Bad EXE format for MyApp.exe:PE32+ executable for MS Windpws (console).
............................................................................................

 Is there any specific param related to 64 bit to be passed while configuring the wine or can it be configured as usual?
./configure --enable-win64


--
-Austin
yugandhar
Level 2
Level 2
Posts: 25
Joined: Mon Dec 01, 2008 11:08 am

Post by yugandhar »

After configuring with the option --enable-win64 and building the wine,
when I tried to install the vcredist_x64.exe using winetricks(which is required to run windows exe),am getting the following error:

............................................................................................
Trying to load PE image for unsupported architecture (I386)
Trying to load PE image for unsupported architecture (I386)

Note: command 'wine /home/user/vcrun2005sp1/vcredist_x64.exe' returned status 193. Aborting.
.................................................................................................

I request to help me what is missing to run the above:

Thanks,
Yug
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

yugandhar wrote:Trying to load PE image for unsupported architecture (I386)
win64 version of Wine can run only 64-bit binaries. If that installer is 32-bit, you need to use regular Wine version.
yugandhar
Level 2
Level 2
Posts: 25
Joined: Mon Dec 01, 2008 11:08 am

Post by yugandhar »

Am trying to install vcredist_x64.exe which is an installer for 64 bit.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

yugandhar wrote:Am trying to install vcredist_x64.exe which is an installer for 64 bit.
You sure?
yugandhar
Level 2
Level 2
Posts: 25
Joined: Mon Dec 01, 2008 11:08 am

Post by yugandhar »

I had download the Microsoft Visual C++ 2005 Redistributable Package (x64) from MS website but when I check the file format for the same, it is displaying as follows:

vcredist_x64.exe: PE32 executable for MS windows (GUI) Intel 80386 32-bit.

I dont understand why 64 bit exe is showing as above.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

yugandhar wrote:I dont understand why 64 bit exe is showing as above.
Ask microsoft....
Vincent Povirk

wine to run win64 exe

Post by Vincent Povirk »

It's probably simply a 32-bit installer for 64-bit software. The plan
for those, as I understand it, is to make the 32-bit and 64-bit
versions of Wine aware of each other. Wine would then transparently
select the 32-bit version to run the installer, but it would report
that it is running on a 64-bit system.

This hasn't been implemented yet. For now, these installers will
likely refuse to install because they see a 32-bit system.

If the installer claims it's on a 32-bit system, and you can figure
out how it decides this, you may be able to hack Wine to allow it to
install.

That said, it's still very likely you're out of luck for now.

Vincent Povirk
Locked