WineHQ
Wine Forums

Board index » WineHQ » Wine Help » Linux




 Page 1 of 1 [ 7 posts ] 



 
Author Message
 Post Posted: Sun Nov 04, 2018 9:21 pm 
Offline
Level 2
Level 2

Joined: Wed Sep 20, 2017 9:18 pm
Posts: 21
Location: China
Hello, everyone.
I want to compile the source of Wine statically, but when I use the command
Quote:
./configure --static
, I get the error message
Quote:
configure: error: unrecognized option: `--static'

How can I go to statically compile Wine? I don't have idea for that. Please help me! Thanks.


Top 
 Post Posted: Mon Nov 05, 2018 11:10 am 
Offline
Level 6
Level 6
User avatar

Joined: Tue Nov 22, 2016 5:39 pm
Posts: 651
What exactly are you trying to achieve by "compiling Wine static"?


Top 
 Post Posted: Mon Nov 05, 2018 8:51 pm 
Offline
Level 2
Level 2

Joined: Wed Sep 20, 2017 9:18 pm
Posts: 21
Location: China
DarkShadow44 wrote:
What exactly are you trying to achieve by "compiling Wine static"?

I want to run Wine executable in the Linux on non X86 CPUs such as MIPS by the QEMU. Since the currently compiled Wine is related to the original X86 platform dependent library, it is intended to statically compile the Wine source. It is therefore intended to generate a Wine program that runs directly on a non-X86 platform. This is my idea. What do you think?

@DarkShadow44, thanks.


Top 
 Post Posted: Tue Nov 06, 2018 6:01 am 
Offline
Level 6
Level 6
User avatar

Joined: Tue Nov 22, 2016 5:39 pm
Posts: 651
I very much doubt it would work like this. You would need to emulate a whole kernel too, you need some sort of distro in which your wine can run, don't you? You can't just throw wine into an emulator without kernel.

Or you go the Project Hangover route. But just know, either way, it's very hard.


Top 
 Post Posted: Tue Nov 06, 2018 8:31 pm 
Offline
Level 2
Level 2

Joined: Wed Sep 20, 2017 9:18 pm
Posts: 21
Location: China
DarkShadow44 wrote:
I very much doubt it would work like this. You would need to emulate a whole kernel too, you need some sort of distro in which your wine can run, don't you? You can't just throw wine into an emulator without kernel.

Or you go the Project Hangover route. But just know, either way, it's very hard.

Yes, the QEMU can use user space mode to run X86 executable file on non X86 CPUs. You can see the section 5.3 and get the message from the QEMU web document.
I had seen the project of Project Hangover from the GitHub. But the project is running a few simple Win64 applications on arm64 Linux and Android, that is not my need. Meanwhile, I don't have no ability to modify the source code of Wine and Qemu, like the Project Hangover do.

Now, I have two choices from the email message of the QEMU developers:
(1)If the Wine executable file was made by static compilation, the normal Qemu can run it directly and it can run successfully.
(2)If the Wine executable file was made by dynamic compilation, I must set up a Qemu based chroot on my host Linux distro and use chroot to get the related DLLS, data files and other things it requires.

So, I ask the function to compile Wine statically on the forum. I try the second function on my PC withe the MIPS architecture. The process is hard. This is what I have gained so far.

@DarkShadow44, thanks again.


Top 
 Post Posted: Wed Nov 07, 2018 7:08 am 
Offline
Level 12
Level 12
User avatar

Joined: Sat Oct 16, 2010 7:40 pm
Posts: 2419
Location: Cambridge
@freedomBird

It is almost impossible to build Wine statically. Since Windows programs rely on dynamically loading separate libraries.
This is discussed every few years on the ML and these forums...
E.g. a quick Google search brings up: wine static (forum thread title ftw!)

Your only real hope is Project Hangover (as has been stated already).
But Andre and Stefand have explicitly stated that they are limiting the problem space to Arm64.

Both of these developers are very experienced systems programmers.
Just doing this for Arm64, requires a tonne of work e.g. patching qemu to improve performance and compatibility.
It's a miracle (/ hard work) that they have any working Arm64 demos at all! 8)

Bob


Top 
 Post Posted: Wed Nov 07, 2018 9:09 pm 
Offline
Level 2
Level 2

Joined: Wed Sep 20, 2017 9:18 pm
Posts: 21
Location: China
@Bob Wya

Thanks for your reply.
Now, I know that I can't build Wine statically. If I want to use Wine executable file on non X86 CPUs by Qemu, I must find the other way.


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 7 posts ] 




Board index » WineHQ » Wine Help » Linux


Who is online

Users browsing this forum: No registered users and 17 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: