QPA header files
-
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-toolsDo I need something else? Which package is this header in?
-
It is part of Qt private API in GUI module. So you need to include the private parts:
QT += gui-privateThen re-run
qmakeand rebuild your project. -
It is part of Qt private API in GUI module. So you need to include the private parts:
QT += gui-privateThen re-run
qmakeand rebuild your project.@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-privateThen re-run
qmakeand 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.
-
@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-privateThen re-run
qmakeand 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.
-
@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?".
-
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.
@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