3
votes

I built yocto image with meta-qt5.Image has been built successfully.But When I select qmake from Tools->Options->Build&Run->Qt Version in Qt creator I receive the following error:

Could not read qmake configuration file /home/yusuf/yocto/poky/bananaProHf/tmp/sysroots/x86_64-linux/home/yusuf/yocto/poky/bananaProHf/tmp/sysroots/x86_64-linux/usr/lib/qt5/mkspecs/linux-oe-g++/qmake.conf.

It seems that Qt searches the "qmake configuration file" in a wrong directory level. The correct target directory for this search should have been: "/home/yusuf/yocto/poky/bananaProHf/tmp/sysroots/x86_64-linux/usr/lib/qt5/mkspecs/linux-oe-g++/qmake.conf." Somehow it seems QT duplicates the "yusuf/yocto/poky/bananaProHf/tmp/sysroots/x86_64-linux" part in the search address. Any ideas about this weird behaviour? Thanks in advance for the help.

1

1 Answers

2
votes

You need to compile the SDK toolchain for Qt Creator instead of just using the qmake.conf in Yocto.

Use bitbake meta-toolchain-qt5 to compile the SDK, install it. You will find qmake in a directory similar to this one. /opt/poky/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake

For information on how to set up Qt Creator. There is a Wiki HERE