wine static

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
User avatar
Andrwe
Level 1
Level 1
Posts: 5
Joined: Fri Aug 08, 2008 4:58 am

wine static

Post by Andrwe » Fri Aug 08, 2008 5:03 am

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.

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

wine static

Post by austin987 » Fri Aug 08, 2008 7:37 am

On Fri, Aug 8, 2008 at 5:03 AM, Andrwe <wineforum-user@winehq.org> wrote:
Hi all,

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





What do you mean?

User avatar
Andrwe
Level 1
Level 1
Posts: 5
Joined: Fri Aug 08, 2008 4:58 am

Post by Andrwe » Fri Aug 08, 2008 7:49 am

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?

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

Re: wine static

Post by vitamin » Fri Aug 08, 2008 8:27 am

Andrwe wrote:Hi all,

I've one question:
Is there known a way to compile wine static?
No it's not possible.

User avatar
Andrwe
Level 1
Level 1
Posts: 5
Joined: Fri Aug 08, 2008 4:58 am

Post by Andrwe » Fri Aug 08, 2008 8:41 am

Thanks vitamin,

but is there a plan for making ist static?

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

Post by vitamin » Fri Aug 08, 2008 10:41 am

Andrwe wrote:Thanks vitamin,

but is there a plan for making ist static?
No.

Leonardo

wine static

Post by Leonardo » 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>
Andrwe wrote:
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

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

Re: wine static

Post by vitamin » Fri Aug 08, 2008 11:35 am

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.

Leonardo

wine static

Post by Leonardo » 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>
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.





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

James Mckenzie

wine static

Post by James Mckenzie » Fri Aug 08, 2008 12:06 pm

Leonardo <sombriks@gmail.com> on Aug 8, 2008 9:14 AM (PNT) wrote about [Wine] wine static
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.
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

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

Re: wine static

Post by vitamin » Fri Aug 08, 2008 1:09 pm

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.

User avatar
Andrwe
Level 1
Level 1
Posts: 5
Joined: Fri Aug 08, 2008 4:58 am

Post by Andrwe » Fri Aug 08, 2008 1:30 pm

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

James Mckenzie

wine static

Post by James Mckenzie » 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
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.
Though thank you very much for the explanations.
You are very welcome.

James McKenzie

User avatar
Andrwe
Level 1
Level 1
Posts: 5
Joined: Fri Aug 08, 2008 4:58 am

Post by Andrwe » Fri Aug 08, 2008 3:03 pm

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

Locked