Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Qt 5.0.2 static linked - library size and linking time

$
0
0
Hello, i recently build Qt 5.0.2 with static linked libraries. So far, so good… 1st issue: The file size of many build libraries is very huge. I.e. Qt5Quick.lib takes 587 MB of disk space (all Libs in /lib folder together take about 5 GB). Is that “normal”? or is there some way to “strip” the libraries? 2nd issue: The linking of my applikations takes a lot of time, compared to dynamic linked builds. I guess, it depends on the library sizes. Is that right? Then the linking time should be reduced, if the 1st issue is solved. My environment: Source package: qt-everywhere-opensource-src-5.0.2.zip Platform: win32-msvc2008 configure options: -developer-build -nomake docs examples tests demos webkit -debug-and-release -opensource -confirm-license -opengl desktop -mp -static -platform win32-msvc2008 -ltcg -qt-zlib -qt-libpng -qt-libjpeg Changes in qtbase/mkspecs/win32-msvc2008/qmake.conf for static build: old: QMAKE_CFLAGS_RELEASE = -O2 -MD old: QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi old: QMAKE_CFLAGS_DEBUG = -Zi -MDd new: QMAKE_CFLAGS_RELEASE = -O2 -MT new: QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi new: QMAKE_CFLAGS_DEBUG = -Zi -MTd

Viewing all articles
Browse latest Browse all 2113

Trending Articles