CodeBlocks / wxWidgets项目中找不到resource.rc文件和std.ico文件。 [英] resource.rc file and std.ico file not found in CodeBlocks /wxWidgets project.

查看:285
本文介绍了CodeBlocks / wxWidgets项目中找不到resource.rc文件和std.ico文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从CodeProject构建一个项目文章。



使用CodeBlocks 13.12,wxW 3.0.2,MinGW-64。



我以前从未见过这个错误,但似乎与某个特定的电脑有关。 (最近我安装了CodeBlocks和wxWidgets的两个pc)

我相信我有两个PC CodeBlocks设置,构建选项和全局变量设置相同。 (另一台PC构建此项目没有错误)



提到的resource.rc文件位于项目文件夹中。

I'm trying to build a project from CodeProject from this article.

Using CodeBlocks 13.12, wxW 3.0.2, MinGW-64.

I have never before seen this error, but seems to be related to one particular pc. (of two pcs in which I have recently installed CodeBlocks and wxWidgets)
I believe I have both PCs CodeBlocks Settings, Build Options, and Global Variables set identically. (The other PC builds this project with no errors)

The resource.rc file mentioned IS IN the project folder.

aaaa ICON "wx/msw/std.ico"

#include "wx/msw/wx.rc"





构建日志:



Build Log:

-------------- Build: Release in wxlConsole (compiler: GNU GCC Compiler)---------------

windres.exe -I(invalid)\include -I(invalid)\lib\gcc_lib\mswu -J rc -O coff -i C:\WXLCON~1\resource.rc -o obj\Release\resource.res
C:\WXLCON~1\resource.rc:3:24: wx/msw/wx.rc: No such file or directory
windres.exe: can't open icon file `wx/msw/std.ico': No such file or directory
windres.exe: preprocessing failed.
Process terminated with status 1 (0 minute(s), 10 second(s))
3 error(s), 0 warning(s) (0 minute(s), 10 second(s))

我认为这是一个IDE配置问题,因为我复制了项目文件夹&内容到第二台PC,它建立没有错误。两台PC都是Windows XPpro,1-SP2(build-ok),1-SP3,都是32位。



任何帮助表示赞赏。

I'm thinking this is an IDE configuration issue, as I copied the project folder & contents to the second PC and it builds without errors. Both PCs are Windows XPpro, 1-SP2(build-ok), 1-SP3, both 32-bit.

Any help appreciated.

推荐答案

我的提示是,这些文件来自wx-framework。所以你需要在第二台PC上安装它。或者这是一个路径问题。在第一台PC上找到它们并将它与第二台PC进行比较以获得缺失的东西。
My tip is, that these files are from the wx-framework. So you need to install it on the second PC. Or it is a path issue. Find them on the first PC and compare it with the second to get what is missing.


这篇关于CodeBlocks / wxWidgets项目中找不到resource.rc文件和std.ico文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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