mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] dynamic/shared building also? approval


From: Volker Grabsch
Subject: Re: [Mingw-cross-env-list] dynamic/shared building also? approval
Date: Wed, 29 Jun 2011 15:14:25 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Jonathan Greig <address@hidden> schrieb:
> Hello,
> I found out about the mingw-cross-env recently and it looks very well
> thought out and easy to use. Last night I cross-compiled one of my apps that
> I had been using a custom qt cross environment for. I need other libs other
> than just Qt so it seems that mingw-cross-env is a good solution. I read in
> the docs that all the packages are set up for static building, but would
> like to have the option to dynamically link certain libs.

This is a recurring question and I still don't have a definite answer
for that. Some time ago I took the time to write down almost all issues
regarding static/dynamic linking:

    
http://lists.nongnu.org/archive/html/mingw-cross-env-list/2009-09/msg00025.html

> Since I use Qt alot, I would like to build dynamic Qt libs to start. I have
> already built the Qt4.7.3 libs statically from the qt.mk provided. I would
> like to still keep the statically built Qt, but now also want a dynamic Qt.

Mixing static and dynamically linked libs will cause a lot of trouble.
See the above link for more details.

If you really want to do that, you should have a specific plan for your
concrete project. Note that we can't do this for you. It is simply
impossible to maintain all possible static/shared combinations of the
various libs we have.

> I am thinking that if I copy qt.mk to qt-dynamic.mk and modify the -static
> to -shared along with any other options I want will work but there may be
> issues with it...How should I approach this? Or should I create a separate
> mingw-cross-env location with all packages built dynamically/shared?

I recommend to either link everything statically or to link everything
dynamically.

There has been the idea of providing a dynamic-linking variant of
mingw-cross-env, but so far nobody started to put serious work into
that. I also don't think this is worth the trouble, as there are
already other projects dealing with that:

    
http://download.opensuse.org/repositories/windows:/mingw:/win32/SLE_11/noarch/
    https://admin.fedoraproject.org/pkgdb/acls/list/**mingw**


Greets,
Volker

-- 
Volker Grabsch
---<<(())>>---



reply via email to

[Prev in Thread] Current Thread [Next in Thread]