Qt:编译器堆空间不足 [英] Qt: Compiler is out of heap space

查看:24
本文介绍了Qt:编译器堆空间不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 resources.qrc 添加更多音乐时收到此错误.mp3 文件甚至都没有那么大,你开玩笑吧,这就是 MSVC 编译器所能处理的全部.

I received this error when I added more music my resources.qrc. The mp3 files are not even that big, you have got to kidding me that this is all the MSVC compiler can handle.

这有什么问题吗?为编译器增加堆空间是不可能的吗?我想我可以在本地存储音乐并搜索它,但是如何将这些资源部署到手机上呢?

Is there anyway around this? Is it impossible to increase the heap space for a compiler? I guess I can store the music and search for it locally, but then how do I deploy these resources to the phone?

推荐答案

在 Qt 5.4.0 中有一个解决方法:在你的 .pro 中使用 CONFIG += resources_big> 文件.

There's a workaround for this in Qt 5.4.0 : Use CONFIG += resources_big in your .pro file.

另请参阅 5.4 中的rcc"部分.0 qtbase 更新日志.

这篇关于Qt:编译器堆空间不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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