掌機 - Miyoo A30 - 解決QT6 qpa/qplatformnativeinterface.h No such file or directory問題



問題如下:

citra/src/citra_qt/bootmanager.cpp:42:10: fatal error: qpa/qplatformnativeinterface.h: No such file or directory
   42 | #include <qpa/qplatformnativeinterface.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/citra_qt/CMakeFiles/citra-qt.dir/build.make:757: src/citra_qt/CMakeFiles/citra-qt.dir/bootmanager.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:2171: src/citra_qt/CMakeFiles/citra-qt.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

解法如下:

$ sudo apt-get install apt-file
$ sudo apt-file update
$ sudo apt list --upgradable
$ sudo apt-file search qplatformnativeinterface.h

$ sudo apt-get install qt6-base-private-dev