Search code examples
c++qtconfigure

Compile only specific library from Qt


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?


Solution

  • 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.