缺少“qrc_mimetypes.cpp”而尝试在VS7编译器在Windows 7(32位构建)上构建Qt [英] Missing "qrc_mimetypes.cpp" while attempting to build Qt on Windows 7 (32-bit build) with VS 2012 compiler

查看:209
本文介绍了缺少“qrc_mimetypes.cpp”而尝试在VS7编译器在Windows 7(32位构建)上构建Qt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用VS 2012 C ++编译器,在Windows 7 64位(但32位的Qt版本)构建Qt的步骤此处。不幸的是,我不能克服一个缺少的.rcc\debug_shared\qrc_mimetypes nmake 正在运行时,一段时间过后出现的.cpp 错误。



(注意: int-repository configure 似乎相当顺利(但参见下面引用的注释) code> nmake 会在一段时间内成功构建文件,然后再打上缺少qrc_mimetypes.cpp错误。)



尝试从头开始两次。关于我做了什么的一些更多细节,从我上面链接的社区Wiki下面的评论中复制:


.rcc\debug_shared\qrc_mimetype.cpp。在
昨晚接收到同样的错误后,今天我从头开始从
删除我的整个Qt文件夹和重新下载Qt,其次是
init-repository,当完成(报告我在SmartGit中打开Git项目
,注意到一些空的子模块,并通过
pull了一个pull $ smart
SmartGit(包括子模块),报告成功并填充
所有子模块。不幸的是,nmake在完全相同的地方失败了
- 缺少qrc_mimetypes.cpp。有任何建议吗?


任何建议都非常感谢。我还在相关的Qt论坛上发布了此问题的评论

解决方案

我已解决此问题。问题是由于Avast!防病毒沙盒错误。



我已将链接的Wiki 附加到



直接从该Wiki引用,并引用我在维基条目下的注释:



CRITICAL 请在Qt 中禁用任何防毒软体 AND SANDBOXING
nmake
过程(为了安全起见,整个
过程)。在内部,Qt执行许多可执行文件,
防病毒程序可以干扰(有时默默)。在
中,如果您有任何沙箱软件,请务必禁用
沙箱。



URAST警告! SANDBOX用户:Avast Sandbox有一个错误
,即使您禁用了Avast的自动沙箱,沙箱将
不关闭,它将自动沙盒所有资源文件
在Qt的构建过程中由Qt的 rcc 程序创建。
对于安装了Avast
自动存储箱功能的用户,即使自动关闭已关闭,用户也无法使用Qt构建。只有
的方法来完成这个问题是完全卸载AVAST!从建立Qt之前的
SYSTEM。您可以重新安装Avast!


$ b blockquote>

我发现了与我之前的评论相关的问题。 Avast有一个
的错误!防病毒的沙箱,使Avast!必须从
完全卸载从操作系统为了Qt到
build,因为Avast!自动沙盒功能将不会关闭即使
当它设置为禁用,而是输入无声沙箱
模式; Avast!正在获取Qt的 rcc 命令的输出并从系统中删除
这些文件(默认,没有警告),导致
Qt构建失败。关闭Avast的唯一方法!完全是到
卸载它。我修改了Wiki来讨论这个问题。


(不用说,在成为Avast!用户多年后,已经增长了顶部,他们不再被评为PC杂志或其他地方的前十名;我已切换到 Bitdefender 。)


I am attempting to build Qt on Windows 7 64-bit (but a 32-bit build of Qt) using the VS 2012 C++ compiler following the steps here. (I am also updating the latter Wiki as I go along.)

Unfortunately, I cannot overcome a missing .rcc\debug_shared\qrc_mimetypes.cpp error that appears after some time has passed while nmake is running.

(Note: the int-repository and configure seem to go fairly smoothly (but see quoted comments below), and nmake proceeds for a while successfully building files before it hits the "missing qrc_mimetypes.cpp" error.)

I have attempted twice starting from scratch. A few more details about what I've done, copied from my comment beneath the above-linked Community Wiki:

I cannot get past missing .rcc\debug_shared\qrc_mimetype.cpp. After receiving this same error last night, today I started from scratch by deleting my entire Qt folder and re-downloading Qt, followed by init-repository, and when that completed (reporting a handful of "permission denied" errors) I followed up by opening the Git project in SmartGit, noticed some empty submodules, and did a pull via SmartGit (including submodules), which reported success and populated all submodules. Unfortunately, nmake failed at exactly the same place - the missing qrc_mimetypes.cpp. Any suggestions?

Any suggestions would be highly appreciated. I have also posted a comment with this question on the relevant Qt forum.

解决方案

I have resolved this issue. The problem is due to an Avast! antivirus sandbox bug.

I have appended the linked Wiki to give a warning about the problem (and workaround).

Quoting directly from that Wiki, and also quoting from my comment beneath the Wiki entry:

CRITICAL Please disable any antivirus software AND SANDBOXING during the Qt nmake process (and, to be safe, throughout this entire process). Internally, Qt executes a number of executables that antivirus programs can interfere with (sometimes silently). In particular, if you have any sandboxing software, be SURE to disable sandboxing.

URGENT WARNING FOR AVAST! SANDBOX USERS: Avast Sandbox has a bug in which even when you disable Avast's auto-sandbox, the sandbox will NOT turn off and it will silently sandbox all resource files automatically created by Qt's rcc program during Qt's build process. The Qt build ALWAYS fails for any user who has installed the Avast autosandbox feature, EVEN WITH AUTO-SANDBOXING TURNED OFF. THE ONLY WAY TO OVERCOME THIS ISSUE IS TO COMPLETELY UNINSTALL AVAST! FROM YOUR SYSTEM before building Qt. You can reinstall Avast! after the Qt build is complete.

and my comment

I discovered the problem related to my previous comment. There is a bug with Avast! antivirus's sandbox, such that Avast! must be completely uninstalled from the operating system in order for Qt to build, because the Avast! auto-sandbox feature will not turn off even when it is set to "disabled", but instead enters "silent" sandbox mode; Avast! was taking the output of Qt's rcc command and removing these files (silently, without warning) from the system, causing the Qt build to fail. The only way to turn off Avast! completely is to uninstall it. I have modified the Wiki to discuss this.

(Needless to say, after being an Avast! user for years, in my opinion they have grown topheavy and they're no longer rated in the top ten on PC mag or other places; I've switched to Bitdefender.)

这篇关于缺少“qrc_mimetypes.cpp”而尝试在VS7编译器在Windows 7(32位构建)上构建Qt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆