Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Creator build fails with mtdev development package not found
QtWS25 Last Chance

Qt Creator build fails with mtdev development package not found

Scheduled Pinned Locked Moved Solved Installation and Deployment
qt 5.5buildmtdev
4 Posts 2 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DDEH
    wrote on last edited by
    #1

    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.

    aha_1980A 1 Reply Last reply
    0
    • D DDEH

      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.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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?

      Qt has to stay free or it will die.

      D 1 Reply Last reply
      2
      • aha_1980A aha_1980

        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?

        D Offline
        D Offline
        DDEH
        wrote on last edited by
        #3

        @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.

        D 1 Reply Last reply
        0
        • D DDEH

          @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.

          D Offline
          D Offline
          DDEH
          wrote on last edited by
          #4
          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 !

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved