QtWidgets/Q不使用.pr文件的应用程序
QtWidgets/QApplication without using a .pro file
在构建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"
相关文章:
- .cpp和.h文件中的模板专用化声明
- 为什么两个不同的未命名名称空间可以共存于一个cpp文件中
- 文本文件中的单词链表
- CMake-按正确顺序将项目与C运行时对象文件链接
- 使用新行和不使用新行读取文件
- 在C++程序中输入的文本文件将不起作用,除非文本被复制和粘贴
- 挂起和取消挂起一个文件DLL
- 如何确定我已使用非编码文件到达 EOF?
- 命名空间中具有.h和.cpp文件的类
- 如何使用ndk-build.cmd构建Android.so文件
- 从包含m行的文件中提取n行,必要时(惰性地)重复该文件
- 读取文件并输入到矢量中
- 在C++中查找文件
- c++库的公共头文件中应该包含什么
- 用c++从输入文件中读取另一行
- Cppcheck生成xml转储文件
- 读取文件的最后一行并输入到链接列表时出错
- 无法编译 rtmidi 测试 cmidiin.cpp 文件, 非法指令
- 如何将内容数组写入文本文件?
- QtWidgets/Q不使用.pr文件的应用程序