cybergnom
cybergnom

Reputation: 111

How to build minimal static Qt 5.2 32 bit library on 64 bit Linux Mint?

My system is Linux Mint 16 x86_64. I need to build minimal static Qt 5.2 library from sources without some modules (declarative, multimedia, etc) and without some features. Which configure options I need? Now I have build and link errors (cannot find qxcb, problems with qtdeclarative/lib/libQt5Qml.a', needed by `../../lib/libQt5Positioning.a') My configure options is:

./configure -static -release -opensource -confirm-license -platform linux-g++-32 -skip multimedia -skip declarative -no-compile-examples -nomake examples -no-openssl -prefix /usr/local/qt-release-static-32

Upvotes: 2

Views: 2323

Answers (2)

wttu
wttu

Reputation: 21

configure Qt with -qt-xcb will build libqxcb.a in qtbase/plugins/platforms/ which can solve cannot find qxcb link error. But Qt still requires libxcb >= 1.5 and libxcb will still be linked dynamically.

You can see qtbase/src/plugins/platforms/xcb/README and qtbase/src/3rdparty/xcb/README for detail.

Upvotes: 2

László Papp
László Papp

Reputation: 53215

You could use the following option for configure:

-no-feature-<feature> Do not compile in <feature>.

-feature-<feature> .. Compile in <feature>. The available features
                      are described in src/corelib/global/qfeatures.txt

-D <string> ........ Add an explicit define to the preprocessor.

Upvotes: 0

Related Questions