Qt:编译器堆空间不足

2022-01-19 00:00:00 qt qml c++

我在 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 更新日志.

相关文章