error prj0019 running moc on "XXXX.h"
来源:互联网 发布:淘宝韩国代购真假 编辑:程序博客网 时间:2024/06/13 01:18
在使用Qt和VS2008的集成开发环境时出现了类似这样的错误,在网上找了一些解决方法,但是不太适用,最后看到的一篇解决方帮我解决了问题。
具体步骤如下:
查看出错文件的属性,修改’自定义生成步骤‘--》'常规'--》’命令行‘中moc.exe的路径,
原来的是:
"$(QTDIR)\bin\moc.exe" -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DTESTING_ENABLED -DTRACE_ON -D_DEBUG -D_X86 -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT ".\GeneratedFiles\." -I".\." -I"D:\Qt\4.4.3\include\." -I".\GeneratedFiles\$(ConfigurationName)\." -I"D:\Qt\4.4.3\include\QtCore\." -I"D:\Qt\4.4.3\include\QtGui\." ".\lowtest.h" -o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp;.\GeneratedFiles\$(ConfigurationName)\moc_lowtest.cpp"
非常复杂,我将他给成了下面的东西:
"$(QTDIR)\bin\moc.exe" -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DTESTING_ENABLED -DTRACE_ON -D_DEBUG -D_X86 -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT ".\$(InputName).h" -o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp"
就可以了。
- error prj0019 running moc on "XXXX.h"
- error prj0019 running moc on ""
- Moc'ing qt1.h... 系统找不到指定的路径。 Project : error PRJ0019: 工具从"Moc'ing qt1.h..."
- 1>Project : error PRJ0019: 某个工具从以下位置返回了错误代码: "Moc'ing thread.h
- Project : error PRJ0019: 某个工具从以下位置返回了错误代码: "MOC **.h"
- Qt Project Build error PRJ0019: 工具从"Moc'ing xxx.h..."
- error PRJ0019:A Tool returned an error code from"XX.moc"
- error PRJ0019
- MSBuild编译Qt工程提示Moc'ing xxxx.h... 系统找不到指定的路径的错误
- errors running builder'DeloymentBuilder' on project "XXXX"项目
- moc_xxxx.cpp 和 xxxx.moc
- Error:running builder "Deployment Builder" on project ...
- Project : error PRJ0019问题解决方法
- Error generating final archive: Debug certificate expired on XXXX
- 错误:Errors running builder 'Android Pre Compiler' on project 'XXXX'.已解决
- rsync error(1503)分析:@ERROR: auth failed on module xxxx rsync error: error starting client-server
- PRJ0019
- prj0019
- 位图和位块传输(3)之加载位图资源
- 一些MM问题
- #ifndef#define#endif的用法(整理) 原作者:icwk
- Irrlicht引擎源码剖析——第十七天
- 使用Apache FOP将XML导出成PDF
- error prj0019 running moc on "XXXX.h"
- 刷新动画效果
- #pragma pack(n)
- C++中string类的成员函数find_first_not_of()
- 使用 Rails Active Resource 简化 web 应用程序之间的互操作性
- 使用shell脚本统计源码文件中的注释行数.(// , /**/)
- C++中substr函数的用法
- iBatis入门
- Java中的超大数相乘计算