QT toolchain relocation fix
v2 cover QT toolchain relocation fix
v2:
* the exported QT_CONF_PATH was missing qt.conf at the end. I had it right in my test directory but forgot to fix it in tree;
Thanks,
Laurentiu
The following changes since commit 78b91ab23d9856525fc7ac1bb8da2975382813bf:
pigz: bump to 2.3.1 (2013-10-26 16:08:41 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib lpalcu/b5339_qt_toolchain_issue
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lpalcu/b5339_qt_toolchain_issue
Laurentiu Palcu (2):
nativesdk-qt4-tools: create qt.conf file
meta-toolchain-qt: put QT_CONF_PATH in environment script
meta/recipes-qt/meta/meta-toolchain-qt.inc | 1 + meta/recipes-qt/qt4/nativesdk-qt4-tools.inc | 6 ++++++ 2 files changed, 7 insertions(+)
Signature · 1 line
1.7.9.5
PATCH v2 1/2 nativesdk-qt4-tools: create qt.conf file
When installing the SDK to another location than the default one, qmake will look for libraries, headers, etc. in the default location. That's because the paths are hard-coded in the binary itself. Luckily, QT allows to override this using a qt.conf file installed in the same directory with the application executable. However, we already have a patch that allows for the installation of qt.conf in another place and read the location from QT_CONF_PATH environment variable.
Hence, install qt.conf in ${sysconfdir}. This will allow other apps, that use QLibraryInfo class, to find it.
[YOCTO #5339]
--- meta/recipes-qt/qt4/nativesdk-qt4-tools.inc | 6 ++++++ 1 file changed, 6 insertions(+)
meta/recipes-qt/qt4/nativesdk-qt4-tools.inc +6 -0
@@ -118,4 +118,10 @@ do_install() { for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do \ ln -s ${i}4 ${i}; \ done) + + install -d ${D}${sysconfdir} + cat >${D}${sysconfdir}/qt.conf <<EOF +[Paths] +Prefix = ${prefix} +EOF }
Signature · 1 line
1.7.9.5
PATCH v2 2/2 meta-toolchain-qt: put QT_CONF_PATH in environment script
In reply to Laurentiu PalcuThis will allow apps using QLibraryInfo class to find qt.conf.
[YOCTO #5339]
--- meta/recipes-qt/meta/meta-toolchain-qt.inc | 1 + 1 file changed, 1 insertion(+)
meta/recipes-qt/meta/meta-toolchain-qt.inc +1 -0
@@ -24,6 +24,7 @@ toolchain_create_sdk_env_script_append() { echo 'export OE_QMAKE_QDBUSXML2CPP=${QT_TOOLS_PREFIX}/qdbusxml2cpp4' >> $script echo 'export OE_QMAKE_QT_CONFIG=${SDKTARGETSYSROOT}/${datadir}/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script echo 'export QMAKESPEC=${SDKTARGETSYSROOT}/${datadir}/${QT_DIR_NAME}/mkspecs/linux-g++' >> $script + echo 'export QT_CONF_PATH=${SDKPATHNATIVE}/${sysconfdir}/qt.conf' >> $script # make a symbolic link to mkspecs for compatibility with Nokia's SDK # and QTCreator
Signature · 1 line
1.7.9.5