News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Missing std.ico, wx.rc files in a project migration from old XP to Win 7 inst

Started by Aaron, July 22, 2016, 05:24:57 AM

Previous topic - Next topic

Aaron

I'm setting up CB on a Win 7 pc (CB 16.01, wxWidgets 3.1.0). I have been using CB(13.12, wxWidgets 3.0.2) on Win XP for years with no problems.
I'm trying to build and run a working project transferred from the XP box to the Win7, but I can't get beyond this error.

I have compared my settings on these pcs side-by-side, but I must be overlooking something.
Both std.ico and wx.rc are located in the C:\wxWidgets-3.1.0\include\wx\msw  folder.

The build log:

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

windres.exe -IC:\wxWidgets-3.0.2\include -IC:\wxWidgets-3.0.2\lib\gcc_lib\mswu  -J rc -O coff -i C:\Users\Admin\Desktop\BRIEFC~1\CPP_PR~1\CODEBL~1\WXWIDG~1\wxPanel4\resource.rc -o obj\Release\resource.res
C:\Users\Admin\Desktop\BRIEFC~1\CPP_PR~1\CODEBL~1\WXWIDG~1\wxPanel4\resource.rc:3:24: fatal error: wx/msw/wx.rc: No such file or directory
#include "wx/msw/wx.rc"
                        ^
compilation terminated.
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), 0 second(s))
3 error(s), 0 warning(s) (0 minute(s), 0 second(s))
----- End build log -----

In the below resource.rc file the paths are the same.
aaaa ICON "wx/msw/std.ico"

#include "wx/msw/wx.rc"
// prefix is: C:\wxWidgets-3.1.0\include\



Would this be a global variable issue or edit the resource.rc file(manually)?

Any assistance appreciated.

stahta01

You likely need to add the include header search path to the project.
Remember to add it to the resource tab!

Also, fix any CB Global Variables on the new computer.

If you still have problems; post a build log.
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

Note: I have no idea; but, I missed the build log the first time I read your post.
Edit: I normally look for it being in code tags.

What version in the MinGW GCC Compiler; some of them had bad windres.exe in the past.
The problem seems to happen every few years. So, post the place you got the Compiler from.

Also, I suggest searching for "windres.exe" on your computer to be sure you are using the correct one.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

Decide what wxWidgets version you are using!!!

The log says 3.0.2 your words says 3.1.0 !

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Aaron

QuoteDecide what wxWidgets version you are using!!!

The log says 3.0.2 your words says 3.1.0 !

I Have Decided What wxWidgets version I am using!!!  3.1.0! Yeaaa.

Yes,the log says 3.0.2, but Installed is 3.1.0!  -- As I stated in my original post...
3.0.2 was used with this project in the old PC.  This is all I know.  They are on the desk in front of me.

QuoteWhat version in the MinGW GCC Compiler; some of them had bad windres.exe in the past.
The problem seems to happen every few years. So, post the place you got the Compiler from.

The version of MinGW32 I am using came with the latest version of CB 16.01.
I will have to determine it's actual version number.  Should it be common knowledge as to what version is bundled with CB 16.01?
The CB website doesn't give the version.  I will try to find out for you though.

stahta01

Post a new full build log in Code Tags.
Tell me what folder wxWidgets 3.1 is installed into?
Tell me who compiled wxWidgets 3.1?

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Aaron

Build log:

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

windres.exe -IC:\wxWidgets-3.0.2\include -IC:\wxWidgets-3.0.2\lib\gcc_lib\mswu  -J rc -O coff -i C:\Users\Admin\Desktop\BRIEFC~1\CPP_PR~1\CODEBL~1\WXWIDG~1\wxPanel4\resource.rc -o obj\Release\resource.res
C:\Users\Admin\Desktop\BRIEFC~1\CPP_PR~1\CODEBL~1\WXWIDG~1\wxPanel4\resource.rc:3:24: fatal error: wx/msw/wx.rc: No such file or directory
#include "wx/msw/wx.rc"
                        ^
compilation terminated.
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), 0 second(s))
3 error(s), 0 warning(s) (0 minute(s), 0 second(s))



wxWidgets installed in: C:\wxWidgets-3.1.0

I compiled wxWidgets 3.1.

stahta01

Quote from: Aaron on July 22, 2016, 10:42:07 PM
Build log:

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

windres.exe -IC:\wxWidgets-3.0.2\include -IC:\wxWidgets-3.0.2\lib\gcc_lib\mswu  -J rc -O coff -i C:\Users\Admin\Desktop\BRIEFC~1\CPP_PR~1\CODEBL~1\WXWIDG~1\wxPanel4\resource.rc -o obj\Release\resource.res
C:\Users\Admin\Desktop\BRIEFC~1\CPP_PR~1\CODEBL~1\WXWIDG~1\wxPanel4\resource.rc:3:24: fatal error: wx/msw/wx.rc: No such file or directory
#include "wx/msw/wx.rc"
                        ^
compilation terminated.
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), 0 second(s))
3 error(s), 0 warning(s) (0 minute(s), 0 second(s))


wxWidgets installed in: C:\wxWidgets-3.1.0

I compiled wxWidgets 3.1.

Then fix the project to use the wxWidgets version you want it to use!!
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F

If you do NOT know how to do that then ask for help.

HINT: Programming is NOT magic!!

Edit: And, there are no mind reader on this forum!

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Aaron

The MingW compiler version is:  4.9.2, 32 bit, SJLJ.

The CB problem I'm having seems to have absolutely nothing to do with programming with a magic wand.

It has to do with the Code::Blocks installation.
I have removed CB and re-installed it, and it will not allow creation of a new wxWidgets project.

This must be the reason I couldn't build an existing project.

I'm not looking for hand-holding in C++ or to cheat in school classes (way out of school), I am just trying to get a new installation of Code::Blocks to operate as designed.

Jenna

Check the global-variable named "wx" and mae sure it points to the correct folder.
And a configuration error is a user error, not a IDE-error.

Aaron

I have the global variable base set according to what Tim has indicated in past posts.
(the Base is all that is needed)
As shown.

stahta01

Please check the value of the Global Variable used in YOUR project!!!

Hint: It is likely WX30 instead of WX; but, who knows what your project is using!

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Aaron

The global variable used in my CB (no project open) is definitely wx, as indicated in the Global Variable Editor.
(see image in my previous post)

I'm not in a project.  I have uninstalled and reinstalled CB & wxW, and am trying to create a new project.

stahta01

Quote from: Aaron on July 23, 2016, 05:03:35 PM
The MingW compiler version is:  4.9.2, 32 bit, SJLJ.

The CB problem I'm having seems to have absolutely nothing to do with programming with a magic wand.

It has to do with the Code::Blocks installation.
I have removed CB and re-installed it, and it will not allow creation of a new wxWidgets project.

This must be the reason I couldn't build an existing project.

I'm not looking for hand-holding in C++ or to cheat in school classes (way out of school), I am just trying to get a new installation of Code::Blocks to operate as designed.

Click on yes!

Or build the missing wxWidgets debug library.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]