为 Code::Blocks 编译 wxWidgets 时遇到问题
我试图在 Windows 7 x64 上编译 wxWidgets 2.8.11 以与 Code::Blocks 一起使用,但我一直遇到相同的错误。
我已经按照说明安装了 MinGW,并将正确的内容添加到路径中(c:\mingw\bin 和 c:\mingw\mingw32\bin)。
我按照此处给出的说明进行操作: http:// /wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.6_to_develop_Code::Blocks_%28MSW%29
清理后,我尝试编译,并得到:
-DWXMAKINGDLL -Wno-ctor-dtor-privacy -MTgcc_mswudll\monodll_dummy.o -MFgcc_
ll\monodll_dummy.o.d -MD -MP ../../src/common/dummy.cpp, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [gcc_mswudll\monodll_dummy.o] Error 2
我尝试摆脱 gcc_mswudll 文件夹,它没有帮助。
这真是令人沮丧。
I am attempting to compile wxWidgets 2.8.11 on Windows 7 x64 for use with Code::Blocks, and I keep running into the same error.
I have MinGW installed as stated, and the proper things added to the path (c:\mingw\bin and c:\mingw\mingw32\bin).
I followed the instructions given here: http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.6_to_develop_Code::Blocks_%28MSW%29
After cleaning, I attempt to compile, and get:
-DWXMAKINGDLL -Wno-ctor-dtor-privacy -MTgcc_mswudll\monodll_dummy.o -MFgcc_
ll\monodll_dummy.o.d -MD -MP ../../src/common/dummy.cpp, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [gcc_mswudll\monodll_dummy.o] Error 2
I tried getting rid of the gcc_mswudll folder, and it didn't help.
This is really frustrating.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我相信我解决了我自己的问题。
我检查了 MinGW /bin,并修复了奇怪的文件重命名(从 mingw32-make 和 mingw-get-0.dll 中删除了 ~)。
由于某种原因,它现在部分编译,但在分配 25887232 字节后内存不足(我有 6 GB 内存,所以我认为这是一个配置问题)。
Okay, I believe I solved my own problem.
I checked in the MinGW /bin, and fixed the wierd file renaming (removed the ~ from mingw32-make and mingw-get-0.dll).
For some reason, it now compiles partially, but then runs out of memory after allocating 25887232 bytes (I have 6 GB of memory, so I think it is a configuration issue).