Qt Creator build fails with mtdev development package not found



  • Because I am stuck debugging an application, I want to compile Qt libraries, version 5.5.1, in debug mode. For this I planned to use Qt Creator.
    I downloaded the sources of qt-5-5.1 from the repository and copied them in a local folder, and then opened the qtbase.pro file in Qt Creator.

    After this, the full hierarchy of folders and files appeared fine in Qt Creator. Then I proceeded to build the project. After a long series of lines of text, the compile output showed the following error.

    make[2]: Leaving directory '/home/david/git/qt-5.5.1/build/src/platformheaders'
    cd platformsupport/ && /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/david/git/qt-5.5.1/qtbase/src/platformsupport/platformsupport.pro -spec linux-g++-64 CONFIG+=debug CONFIG+=force_debug_info CONFIG+=separate_debug_info -o Makefile
    Project MESSAGE: perl -w /home/david/git/qt-5.5.1/qtbase/bin/syncqt.pl -module QtPlatformSupport -version 5.5.1 -outdir /home/david/git/qt-5.5.1/build /home/david/git/qt-5.5.1/qtbase
    <srcbase> = /home/david/git/qt-5.5.1/qtbase 
    <outbase> = /home/david/git/qt-5.5.1/build 
    Project ERROR: mtdev development package not found
    Makefile:410: recipe for target 'sub-platformsupport-qmake_all' failed
    

    Indeed I had not the mtdev-tools package installed on my computer. So I installed this package. This did not solve the issue, even after I cleaned the project and rebuild it from scratch.

    Has anybody an idea how to solve this problem?

    The operating system is Linux, and the distribution is mint. I use Qt Creator 4.7.0.

    Thanks in advance.


  • Qt Champions 2018

    Hi @DDEH,

    1. why do you want to use version 5.5.1? The current version is 5.11.
    2. depending on how you installed your Qt version, you may be able to add the sources to your existing installation without compiling yourself
    3. If you want to compile from source, you need to follow the steps described here: http://doc.qt.io/qt-5/build-sources.html

    Regards

    PS: Why do you think you need to debug Qt when you have a problem in your app?



  • @aha_1980 said in Qt Creator build fails with mtdev development package not found:

    Hi @DDEH,

    1. why do you want to use version 5.5.1? The current version is 5.11.

    Yes, I am aware of this.

    1. depending on how you installed your Qt version, you may be able to add the sources to your existing installation without compiling yourself

    I have tried and failed with this solution.

    1. If you want to compile from source, you need to follow the steps described here: http://doc.qt.io/qt-5/build-sources.html

    Thanks, I am trying this now.

    Regards

    PS: Why do you think you need to debug Qt when you have a problem in your app?

    Because the error occurs deeply nested within Qt method calls and code review has failed to identify a mistake in the code. Also the error does not happen to other developers with the same source base.



    1. If you want to compile from source, you need to follow the steps described here: http://doc.qt.io/qt-5/build-sources.html

    Thanks, I am trying this now.

    The compilation completed successfully, after I had configured with -qt-xcb (otherwise there would be an issue with library xcb-sync).

    Thanks @aha_1980 for the advices !


Log in to reply