QtWidgets/Q不使用.pr文件的应用程序



在构建MAME时,我收到以下错误:

make
GCC 4.9.2 detected
Compiling src/osd/modules/debugger/debugqt.cpp...
../../../../../src/osd/modules/debugger/debugqt.cpp:20:30: fatal error: QtWidgets/QApplication: No such file or directory
 #include <QtWidgets/QApplication>
                                  ^
compilation terminated.
qtdbg_sdl.make:361: recipe for target '../../../../linux_gcc/obj/x64/Release/qtdbg_sdl/src/osd/modules/debugger/debugqt.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/qtdbg_sdl/src/osd/modules/debugger/debugqt.o] Error 1
Makefile:16: recipe for target 'qtdbg_sdl' failed
make[1]: *** [qtdbg_sdl] Error 2
makefile:1003: recipe for target 'linux_x64' failed
make: *** [linux_x64] Error 2

如果没有.pro文件,我该如何修复此错误,因为我在任何地方都找不到。

这是qt应用程序的构建过程:

~$ qmake -project /*this makes .pro file*/
~$ qmake -makefile /*this creates makefile*/
~$ make

您总是需要首先运行qmake,以便创建正确的makefile

~$ echo "happy qt coding"

相关内容

  • 没有找到相关文章

最新更新