WineHQ
Wine Forums

Board index » WineHQ » Wine Help




 Page 1 of 1 [ 14 posts ] 



 
Author Message
 Post subject: wine static
 Post Posted: Fri Aug 08, 2008 5:03 am 
Offline
Level 1
Level 1
User avatar

Joined: Fri Aug 08, 2008 4:58 am
Posts: 5
Hi all,

I've one question:
Is there known a way to compile wine static?

I'm using Gentoo, that is why I compile wine.
But to resolve an idea I need wine static compiled that meens with all libs insite.
There is no USE-Flag for something like this that is the reason why I'm asking about another method.


Top 
 Post subject: wine static
 Post Posted: Fri Aug 08, 2008 7:37 am 
Offline
Wine Developer
Wine Developer

Joined: Fri Feb 22, 2008 8:19 pm
Posts: 2383
On Fri, Aug 8, 2008 at 5:03 AM, Andrwe <wineforum-user@winehq.org> wrote:
Quote:
Hi all,

I've one question:
Is there known a way to compile wine static?







What do you mean?


Top 
 Post subject:
 Post Posted: Fri Aug 08, 2008 7:49 am 
Offline
Level 1
Level 1
User avatar

Joined: Fri Aug 08, 2008 4:58 am
Posts: 5
In gentoo you had to compile the most programs yourself.
That is why the libraries are installed on there own so that many programs can use them that is causing lesser place requirements.
The system is managing the placement of all libraries and the programs get them from the system.

I need now a posibility to compile wine with all libraries embedded so it will be ranged from the system.

Was it understandable?


Top 
 Post subject: Re: wine static
 Post Posted: Fri Aug 08, 2008 8:27 am 
Offline
Moderator
Moderator

Joined: Sat Feb 23, 2008 2:29 pm
Posts: 6605
Andrwe wrote:
Hi all,

I've one question:
Is there known a way to compile wine static?

No it's not possible.


Top 
 Post subject:
 Post Posted: Fri Aug 08, 2008 8:41 am 
Offline
Level 1
Level 1
User avatar

Joined: Fri Aug 08, 2008 4:58 am
Posts: 5
Thanks vitamin,

but is there a plan for making ist static?


Top 
 Post subject:
 Post Posted: Fri Aug 08, 2008 10:41 am 
Offline
Moderator
Moderator

Joined: Sat Feb 23, 2008 2:29 pm
Posts: 6605
Andrwe wrote:
Thanks vitamin,

but is there a plan for making ist static?

No.


Top 
 Post subject: wine static
 Post Posted: Fri Aug 08, 2008 11:14 am 
 
Andrwe, you could try to ask in the devel list, and also start to hack the
cconfigure.ac wine script.

since it's under autotools thing i'm sure that find examples about static
linking will not be difficult.

i suggest you to ask in wine-devel, but is possible that the ffinal binary
becomes amazingly large...

2008/8/8 vitamin <wineforum-user@winehq.org>

Quote:
Andrwe wrote:
Quote:
Thanks vitamin,

but is there a plan for making ist static?

No.






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-us ... chment.htm


Top 
 Post subject: Re: wine static
 Post Posted: Fri Aug 08, 2008 11:35 am 
Offline
Moderator
Moderator

Joined: Sat Feb 23, 2008 2:29 pm
Posts: 6605
Leonardo wrote:
Andrwe, you could try to ask in the devel list, and also start to hack the
cconfigure.ac wine script.

since it's under autotools thing i'm sure that find examples about static
linking will not be difficult.

i suggest you to ask in wine-devel, but is possible that the ffinal binary
becomes amazingly large...


You can't package all dlls into one binary. Besides Wine has number of separate programs that have to be separate. Like wineserver, winedevice, etc.

I wish you knew what you were talking about Leonardo, but you don't.


Top 
 Post subject: wine static
 Post Posted: Fri Aug 08, 2008 11:52 am 
 
if i am correct, Andrwe just wants to get static certain wine dependencies;

i'm sure that wineserver and wine could work just well in the way that
already wokrs, but whithout dependencies over cups, libc maybe, and other
things.

you could be more gentle and explain why wine never will be a single binary
again instead just say no. since you know much mor than me, be gentle and
share your knowledge.

2008/8/8 vitamin <wineforum-user@winehq.org>

Quote:
Leonardo wrote:
Quote:
Andrwe, you could try to ask in the devel list, and also start to hack
the
Quote:
cconfigure.ac wine script.

since it's under autotools thing i'm sure that find examples about static
linking will not be difficult.

i suggest you to ask in wine-devel, but is possible that the ffinal
binary
Quote:
becomes amazingly large...


You can't package all dlls into one binary. Besides Wine has number of
separate programs that have to be separate. Like wineserver, winedevice,
etc.

I wish you knew what you were talking about Leonardo, but you don't.






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-us ... chment.htm


Top 
 Post subject: wine static
 Post Posted: Fri Aug 08, 2008 12:06 pm 
 
Leonardo <sombriks@gmail.com> on Aug 8, 2008 9:14 AM (PNT) wrote about [Wine] wine static

Quote:
Andrwe, you could try to ask in the devel list, and also start to hack the
cconfigure.ac wine script.

This is not for the faint of heart to be doing. The results can be destructive.

Quote:
since it's under autotools thing i'm sure that find examples about static
linking will not be difficult.

i suggest you to ask in wine-devel, but is possible that the ffinal binary
becomes amazingly large...

I'll agree here. I work with the OpenOffice.org project and someone actually attempted
to build it statically. The 150MB program grew to over 1GB in one case. I don't know
what would happen with Wine.

The real question here is why statically link this program? It is developed, built
and testing on many different platforms and Linux/UNIX distributions. Most, if not
all of these support dynamic linking.

James McKenzie


Top 
 Post subject: Re: wine static
 Post Posted: Fri Aug 08, 2008 1:09 pm 
Offline
Moderator
Moderator

Joined: Sat Feb 23, 2008 2:29 pm
Posts: 6605
Leonardo wrote:
i'm sure that wineserver and wine could work just well in the way that
already wokrs, but whithout dependencies over cups, libc maybe, and other
things.

No unless you modify the code. Most of Wine dynamically load libraries. So you can't statically link something that's not even dynamically linked.

Then there are are some libraries that can't be statically linked - like closed source libGL.

And don't forget that Wine loads lots of it's dlls for pretty much every program. So you'll run out or memory after loading just few dlls.


Top 
 Post subject:
 Post Posted: Fri Aug 08, 2008 1:30 pm 
Offline
Level 1
Level 1
User avatar

Joined: Fri Aug 08, 2008 4:58 am
Posts: 5
Hmm, o.k.
I understand the points, so I have to find an other way to reach my goal.

To describe why I'm asking, I think about portable applications. There are many for Windows and because of wine I would use them to reach real portable apps which can be run on most systems. But for this "dream" I need wine as an portable program, so the systems don't need to install it.

Now I have an idea how it will be possible too.
Maybe I can manipulate the linker files a bit. I will see.

Though thank you very much for the explanations.

Until next time
Andrwe


Top 
 Post subject: wine static
 Post Posted: Fri Aug 08, 2008 2:10 pm 
 
Andrwe <wineforum-user@winehq.org on Aug 8, 2008 11:30 AM (PNT) wrote about [Wine] Re: wine static
Quote:
Hmm, o.k.
I understand the points, so I have to find an other way to reach my goal.

To describe why I'm asking, I think about portable applications. There are many for Windows and because of wine I would use them to reach real portable apps which can be run on most systems. But for this "dream" I need wine as an portable program, so the systems don't need to install it.

You might want to look at the Portable OpenOffice project to see if it can be adapted
to what you are trying to do. This project ported OpenOffice.org so that it could be
run from portable media, such as USB storage devices.

Quote:
Though thank you very much for the explanations.

You are very welcome.

James McKenzie


Top 
 Post subject:
 Post Posted: Fri Aug 08, 2008 3:03 pm 
Offline
Level 1
Level 1
User avatar

Joined: Fri Aug 08, 2008 4:58 am
Posts: 5
Yes I know this project and I like using it.
There are also many other portable apps like Firefox, Thunderbird and so on.
But for reaching an usb-stick with real portable apps I had to use the Windows portable apps because I don't know any possibility for an Linux "emulation" on Win-systems. But wine "emulates" Win on many systems so I will get it this way.

Andrwe


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




Board index » WineHQ » Wine Help


Who is online

Users browsing this forum: Bing [Bot] and 13 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: