meta-toolchain-arago-qte: Add qt.conf file
PATCH 1/1 meta-toolchain-arago-qte: Add qt.conf file
* Qt Creator has issues finding Qt libraries and include files when these files aren't in the location it expects these files to be in.
* The qt.conf file is used to point Qt Creator to the proper location of these files.
Signed-off-by Franklin S. Cooper Jr <[email protected]>
--- .../recipes-core/meta/meta-toolchain-arago-qte.bb | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-)
meta-arago-extras/recipes-core/meta/meta-toolchain-arago-qte.bb +11 -1
@@ -5,7 +5,7 @@ TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-qte-sdk-${SDK_ARC require meta-toolchain-arago.bb -PR = "r4" +PR = "r5" QT_DIR_NAME = "qtopia"
@@ -28,6 +28,16 @@ toolchain_create_sdk_env_script_append() { echo 'export OE_QMAKE_QT_CONFIG=$SDK_PATH/$TARGET_SYS${datadir}/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script echo 'export QMAKESPEC=$SDK_PATH/$TARGET_SYS${datadir}/${QT_DIR_NAME}/mkspecs/linux-g++' >> $script + #Adds qt.conf file that points qmake to properly locate Qt library and header files. + #This enables Qt Creator to work properly + + qt_conf="${SDK_OUTPUT}/${SDKPATH}/bin/qt.conf" + touch $qt_conf + echo '[Paths]' >> $qt_conf + echo 'Prefix = $(SDK_PATH)' >> $qt_conf + echo 'Libraries = $(OE_QMAKE_LIBDIR_QT)' >> $qt_conf + echo 'Headers = $(OE_QMAKE_INCDIR_QT)' >> $qt_conf + # make a symbolic link to mkspecs for compatibility with Nokia's SDK # and QTCreator (cd ${SDK_OUTPUT}/${QT_TOOLS_PREFIX}/..; ln -s ${ARAGO_TARGET_SYS}${datadir}/${QT_DIR_NAME}/mkspecs mkspecs;)
Signature · 1 line
1.7.0.4