Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile only specific library from Qt

Tags:

c++

qt

configure

I want to compile one of Qt's default libraries (QDeclarative) on OSX.

Which argument do I need to pass to ./configure to achieve this?

like image 356
Hedge Avatar asked Jul 18 '11 20:07

Hedge


2 Answers

http://doc.qt.nokia.com/4.7-snapshot/configure-options.html. it's more of a black list then a whitelist. For example, if you wanted to build it without webkit support, you would run:

./configure -no-webkit

Though it looks like most of the blacklist options are for windows only, you may be slightly out of luck :-/.

like image 96
Evan Teran Avatar answered Sep 29 '22 18:09

Evan Teran


This is not a standalone component as far as I know it is dependent on QtXML and some other parts of QT within QtCore. Just compile QT for Mac using the cross platform options in the link Evan Teran posted here.

If you only want to link against QtCore add QT -= gui to your .pro file in QtCreator or otherwise specify removal of the default included QtGui in your linking command line.

like image 34
AJG85 Avatar answered Sep 29 '22 19:09

AJG85