Hi all, I've one question: Is there known a way to compile wine static?
On Fri, Aug 8, 2008 at 5:03 AM, Andrwe <wineforum-user at winehq.org> wrote:> Hi all, > > I've one question: > Is there known a way to compile wine static? > > > > > >What do you mean?
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?
Andrwe wrote:> Thanks vitamin, > > but is there a plan for making ist static?No.
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 <sombriks at 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
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.
Andrwe <wineforum-user at 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
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.