Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPA header files
Qt 6.11 is out! See what's new in the release blog

QPA header files

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 9.5k Views 4 Watching
  • 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.
  • A Offline
    A Offline
    appas
    wrote on last edited by
    #1

    Hi,
    I am trying to compile a project ( https://github.com/cmdrkotori/mpc-qt-origin ), but I am getting this compilation error:

    mpvwidget.cpp:7:10: fatal error: qpa/qplatformnativeinterface.h: No such file or directory
        7 | #include <qpa/qplatformnativeinterface.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    

    I installed QT from apt with

    apt install qtcreator qt5-default libqt5x11extras5-dev qttools5-dev-tools
    

    Do I need something else? Which package is this header in?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      appas
      wrote on last edited by
      #7

      Ok, I found it using apt-file. On my system, it is provided by qtbase5-private-dev. After installing that package, I was able to compile the project.

      Thanks for the replies.

      Pablo J. RoginaP 1 Reply Last reply
      2
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #2

        It is part of Qt private API in GUI module. So you need to include the private parts:

        QT += gui-private
        

        Then re-run qmake and rebuild your project.

        (Z(:^

        A 1 Reply Last reply
        0
        • sierdzioS sierdzio

          It is part of Qt private API in GUI module. So you need to include the private parts:

          QT += gui-private
          

          Then re-run qmake and rebuild your project.

          A Offline
          A Offline
          appas
          wrote on last edited by
          #3

          @sierdzio said in QPA header files:

          It is part of Qt private API in GUI module. So you need to include the private parts:

          QT += gui-private
          

          Then re-run qmake and rebuild your project.

          I added gui-private to the QT += line of mpc-qt.pro and ran qmake, then make clean and make, but I still get the same error.

          mrjjM 1 Reply Last reply
          0
          • A appas

            @sierdzio said in QPA header files:

            It is part of Qt private API in GUI module. So you need to include the private parts:

            QT += gui-private
            

            Then re-run qmake and rebuild your project.

            I added gui-private to the QT += line of mpc-qt.pro and ran qmake, then make clean and make, but I still get the same error.

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @appas
            But do you have this file at all ?

            A 1 Reply Last reply
            0
            • mrjjM mrjj

              @appas
              But do you have this file at all ?

              A Offline
              A Offline
              appas
              wrote on last edited by
              #5

              @mrjj said in QPA header files:

              @appas
              But do you have this file at all ?

              No - even though I installed all the listed dependencies of the project. That's why I asked "Which package is this header in?".

              mrjjM 1 Reply Last reply
              0
              • A appas

                @mrjj said in QPA header files:

                @appas
                But do you have this file at all ?

                No - even though I installed all the listed dependencies of the project. That's why I asked "Which package is this header in?".

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @appas
                Hi
                Not sure when repacked to ubuntu repository.
                Its normally just included with the online installer.

                on windows mine is in
                "C:\Qt\5.14.2\msvc2017\include\QtGui\5.14.2\QtGui\qpa\qplatformnativeinterface.h"

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  appas
                  wrote on last edited by
                  #7

                  Ok, I found it using apt-file. On my system, it is provided by qtbase5-private-dev. After installing that package, I was able to compile the project.

                  Thanks for the replies.

                  Pablo J. RoginaP 1 Reply Last reply
                  2
                  • A appas

                    Ok, I found it using apt-file. On my system, it is provided by qtbase5-private-dev. After installing that package, I was able to compile the project.

                    Thanks for the replies.

                    Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on last edited by
                    #8

                    @appas said in QPA header files:

                    I was able to compile the project.

                    great, so if your issue is solved please don't forget to mark your post as such

                    Upvote the answer(s) that helped you solve the issue
                    Use "Topic Tools" button to mark your post as Solved
                    Add screenshots via postimage.org
                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                    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