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] Static vs. shared Qt


From: Mark Brand
Subject: Re: [Mingw-cross-env-list] Static vs. shared Qt
Date: Mon, 12 Dec 2011 14:05:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0.1) Gecko/20111121 Firefox/8.0.1 SeaMonkey/2.5


If you want to try out building shared Qt, the following patch seems
to work well on the development branch:
[...]
Although this is a nice and simple way to get a running
shared Qt, this will produce quite big DLL files.

This is because all DLLs will contain all (statically
linked) helper libraries. I don't know how much of a
problem this is for Qt. But I guess the only "clean"
solution is to build everything as a shared library,
not just Qt.

Right. It's not a good general solution, but it does work around the QtScript/QtWebKit problem.

Having said that, for some "pure" Qt applications, it might actually be seen as an advantage to have all dependencies embedded in the Qt DLLs.


Which leads us back to a recurring issue of static vs
shared: Once I implemented our multi-target approach,
does it make sense to apply this to static/shared, i.e.
treating the "mainly-static" and "mainly-shared"
approaches as two separate targets?

I hadn't realized you were considering a static/shared choice in the multi-target approach. I think the patch in question (two messages ago) should still in work for "mostly shared" mingw-cross-env. The OPENSSL_LIBS, PSQL_LIBS, and SYBASE_LIBS lists could be reduced or maybe even eliminated for shared builds. Also, there's at least one patch to link static sub-dependencies explicitly. But this stuff should be harmless as-is.

Mark



reply via email to

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