AnsweredAssumed Answered

Qt Master stream generated qmake has the wrong internal paths, QT_SYSROOT

Question asked by Ossian Riday on Oct 13, 2014
Latest reply on Oct 21, 2014 by gusarambula

I'm experiencing an issue with qmake generated form the Qt master stream. When generating the "meta-toolchain-qt5" form the master qt repository, all the paths in the generated qmake are pointing to the wrong location. A "./qmake -query" generates the following path list:

 

QT_SYSROOT:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux

QT_INSTALL_PREFIX:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr

QT_INSTALL_PREFIX/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr

QT_INSTALL_ARCHDATA:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib/qt5

QT_INSTALL_ARCHDATA/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib/qt5

QT_INSTALL_DATA:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/share/qt5

QT_INSTALL_DATA/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/share/qt5

QT_INSTALL_DOCS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/share/doc/qt5

QT_INSTALL_DOCS/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/share/doc/qt5

QT_INSTALL_HEADERS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/include/qt5

QT_INSTALL_HEADERS/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/include/qt5

QT_INSTALL_LIBS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib

QT_INSTALL_LIBS/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib

QT_INSTALL_LIBEXECS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib/qt5/libexec

QT_INSTALL_LIBEXECS/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib/qt5/libexec

QT_INSTALL_BINS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/bin/qt5

QT_INSTALL_BINS/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/bin/qt5

QT_INSTALL_TESTS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/tests

QT_INSTALL_TESTS/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/tests

QT_INSTALL_PLUGINS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib/qt5/plugins

QT_INSTALL_PLUGINS/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib/qt5/plugins

QT_INSTALL_IMPORTS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib/qt5/imports

QT_INSTALL_IMPORTS/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib/qt5/imports

QT_INSTALL_QML:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib/qt5/qml

QT_INSTALL_QML/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib/qt5/qml

QT_INSTALL_TRANSLATIONS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/share/qt5/translations

QT_INSTALL_TRANSLATIONS/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/share/qt5/translations

QT_INSTALL_CONFIGURATION:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/etc/qt5

QT_INSTALL_CONFIGURATION/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/etc/qt5

QT_INSTALL_EXAMPLES:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/examples

QT_INSTALL_EXAMPLES/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/examples

QT_INSTALL_DEMOS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/examples

QT_INSTALL_DEMOS/raw:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/examples

QT_HOST_PREFIX:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr

QT_HOST_DATA:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib/qt5

QT_HOST_BINS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/bin/qt5

QT_HOST_LIBS:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr/lib

QT_EXTERNAL_HOST_BINS:

QMAKE_SPEC:linux-oe-g++

QMAKE_XSPEC:linux-oe-g++

QMAKE_VERSION:3.0

QT_VERSION:5.3.2

 

It looks like all the QT_INSTALL paths are being prefixed with the QT_SYSROOT path. For example QT_INSTALL_PREFIX is:

QT_INSTALL_PREFIX:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr

but should actually be:

QT_INSTALL_PREFIX:/home/user/fsl_yocto_master/build/tmp/sysroots/x86_64-linux/usr

 

It looks like QT_SYSROOT is being inserted in front of all the paths?

 

Looking at and installing the daisy Qt branch the QT_SYSROOT path of qmake is blank, and all the qmake paths are correct.

 

Is anyone else experiencing this issue?

I have looked at the Qt recipe for the master branch, but it was not apparent to me where this correction would be made. Does anyone know how I can configure the build when generating the "meta-tootlchan-qt5" so that the qmake path generated are correct?

 

Any help would be greatly appreciated.

 

Thanks,

Ossian

Outcomes