Could not find qmake configuration file linux-oe-g++



  • Hi All,

    I'm trying to crosscompile a Qt application using Yocto based build environment. It seems that build environemnt has been set up correctly.

    However every time I launch qmake I'm getting the following error:

    >qmake my_project.pro
    Could not find qmake configuration file linux-oe-g++.
    Error processing project file: my_project.pro
    

    My qmake is located under following directory:

    /home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/bin/qt5/qmake
    

    Also I checked properties set for qmake but they all seem to be in order. I only had to create qt.conf file and update "QT_INSTALL_PREFIX" property because it was set incorrectly:

    >qmake -query
    QMAKESPEC:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/lib/qt5/mkspecs/linux-oe-g++/
    QT_INSTALL_HEADERS:
    QT_SYSROOT:
    QT_INSTALL_PREFIX:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr
    QT_INSTALL_ARCHDATA:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr
    QT_INSTALL_DATA:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr
    QT_INSTALL_DOCS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/doc
    QT_INSTALL_HEADERS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/include
    QT_INSTALL_LIBS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/lib
    QT_INSTALL_LIBEXECS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/libexec
    QT_INSTALL_BINS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/bin
    QT_INSTALL_TESTS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/tests
    QT_INSTALL_PLUGINS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/plugins
    QT_INSTALL_IMPORTS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/imports
    QT_INSTALL_QML:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/qml
    QT_INSTALL_TRANSLATIONS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/translations
    QT_INSTALL_CONFIGURATION:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr
    QT_INSTALL_EXAMPLES:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/examples
    QT_INSTALL_DEMOS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/examples
    QT_HOST_PREFIX:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr
    QT_HOST_DATA:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr
    QT_HOST_BINS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/bin
    QT_HOST_LIBS:/home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/lib
    QT_EXTERNAL_HOST_BINS:
    QMAKE_SPEC:linux-oe-g++
    QMAKE_XSPEC:linux-oe-g++
    QMAKE_VERSION:3.0
    QT_VERSION:5.6.2
    

    The content of qt.conf file is as follows:

    >cat /home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/bin/qt5/qt.conf
    [Paths]
    Prefix = /home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr
    

    I can see that there is linux-oe-g++ folder under mkspecs directory:

    /home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/lib/qt5/mkspecs/linux-oe-g++
    

    I tried to set QMAKESPEC environment variable but it didn't help.

    Also I tried to set up a build kit in qt creator to trigger build from there but during kit creation I'm getting error:

    Mkspec not found for qt version
    

    I would greatly appreciate any suggestions on how I can resolve this issue or on what else I can check.

    Thanks in advance :)


  • Moderators

    @diredko Do you use absolute path to call your qmake?
    Like this:

    /home/ubuntuuser/BUILD/build/tmp/sysroots/i686-linux/usr/bin/qt5/qmake my_project.pro
    


  • @jsulm yes, I tried launching it this way but it didn't resolve the issue - the error is same. Thanks for suggestion though :)



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.