How to compile QtDeclarative without QtXmlPatterns, QtSvg and QtSql

I want to reduce the application (again). QtDeclarative depends on QtXmlPatterns, QtSvg and QtSql, which I do not use at all, so Id would like to compile the library without them.

Has someone changed the source file for QtDeclarative (or a hint on how to do this)?

+3
source share
2 answers

You can configure Qt as follows:

./configure -no-xmlpatterns -no-svg

Parts in QtDeclarative that depend on these modules will be automatically disabled. For example, removing QtXmlPatterns will result in the absence of an XmlListModel, as it is based on XQuery.

This will not be a modification of Qt in the sense of LGPL, so there is no need to get around and distribute the Qt source code yourself.

, -no-sql , , , QtDeclarative. , , . , , #ifdef QT_NO_XMLPATTERNS src/declarative qdeclarativexmllistmodel.cpp src/declarative/util/util.pri.

+2

, , QT -= sql .. pro , . QtDeclarative QT, QML, , QtXmlPatterns.

QT, , . , LGPL , , QT, , .

+1

All Articles