If you are using qmake, you can make your application boostable by adding a suitable configuration option.
For MeeGo Touch applications, install the libmeegotouch-dev package. If you are creating Debian packages, your application must build-depend on libmeegotouch-dev to build correctly. Add the following line to your .pro file (the meegotouch-boostable configuration option includes the meegotouch option so you do not need to specify it explicitly):
CONFIG += meegotouch-boostable
For Qt Declarative (QML) applications and plain Qt applications, the configuration option is provided by the applauncherd-dev package. Note that a build dependency is required for the correct building of Debian packages. The configuration options are:
CONFIG += qdeclarative-boostable
CONFIG += qt-boostable
If you want to use pkg-config directly (for instance, to receive the error messages), you can add explicit pkg-config calls to the appropriate flags.
For MeeGo Touch, the flags are:
QMAKE_CXXFLAGS += `pkg-config --cflags meegotouch-boostable` QMAKE_LFLAGS += `pkg-config --libs meegotouch-boostable`
For Qt Declarative, the flags are:
QMAKE_CXXFLAGS += `pkg-config --cflags qdeclarative-boostable` QMAKE_LFLAGS += `pkg-config --libs qdeclarative-boostable`
For plain Qt, the flags are:
QMAKE_CXXFLAGS += `pkg-config --cflags qt-boostable` QMAKE_LFLAGS += `pkg-config --libs qt-boostable`
You can also manually set the options in your .pro file as follows:
QMAKE_CXXFLAGS += -fPIC -fvisibility=hidden -fvisibility-inlines-hidden QMAKE_LFLAGS += -pie -rdynamic
Note: You must update the flags manually if there are any changes in the required flags.