News:

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

Main Menu

invalid win32 rc file

Started by MoonKid, May 06, 2007, 10:27:25 AM

Previous topic - Next topic

MoonKid

I imported a MSVisualC++ project and try to build it.

There is a build log say this:
-------------- Build: Debug_Win32 in M ---------------
Compiling: res\M.rc
Option -I is deprecated for setting the input format, please use -J instead.
windres.exe: D:\Garage\projekte\mahogany\MAHOGA~1\res\M.rc: Not a valid WIN32 resource file
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings

The file can be found here:
http://mahogany.svn.sourceforge.net/viewvc/mahogany/trunk/M/res/M.rc?revision=7018&view=markup

I do not what is different here and where I can set the -I and -J option.

stahta01

#1
What compiler, include version, are you using?

Also, what version of Code::Blocks are you using RC2 or SVN? If SVN, what SVN number?

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]

MoonKid

Quote from: stahta01 on May 06, 2007, 06:42:18 PM
What compiler, include version, are you using?

I am using gcc (3.4.2 mingw-special) under WinXP.

Quote from: stahta01 on May 06, 2007, 06:42:18 PM
Also, what version of Code::Blocks are you using RC2 or SVN? If SVN, what SVN number?

I am using the current nightly.

dje

Quotecurrent nightly
I think SVN number is more useful (outside nightly build posts)...

Dje

stahta01

From doc/build_win.txt
Quote
currently, the supported compilers [, under windows,] for building Mahogany are MS Visual C++ 7.1 and cygwin.

I can help you to get past some problems, but it may be a lot of problems and it still maybe won't work using MinGW GCC.

Please turn on Compiler Logging.

Post the command causing the error and I might be able to help you find the cause.

Steps to turn on Compiler Logging:
"Settings" -> "compiler debugger"
Change "Compiler Settings" to "Other Settings"
Set "Compiler Logging" to "Full Command Line"

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]

MoonKid

Quote from: dje on May 06, 2007, 08:38:10 PM
I think SVN number is more useful (outside nightly build posts)...

3935

MoonKid

Quote from: stahta01 on May 06, 2007, 08:55:46 PM
Post the command causing the error and I might be able to help you find the cause.

-------------- Build: Debug_Win32 in M ---------------
windres.exe -i D:\Garage\projekte\mahogany\MAHOGA~1\res\M.rc -J rc -o output\Debug_Win32\res\M.res -O coff -Iinclude -IC:\wxWindows\include\msvc -IC:\wxWindows\include -Ilib\compface -Ilib\imap\src\osdep\nt -Ilib\imap\src\c-client -Ires -IC:\Programme\CodeBlocks\include
Option -I is deprecated for setting the input format, please use -J instead.
windres.exe: D:\Garage\projekte\mahogany\MAHOGA~1\res\M.rc: Not a valid WIN32 resource file
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings

stahta01

#7
This is the problem causing the warning

Quote-Ires

I am now looking for where it is located.

I had to NOT compile IMAP because of errors. Still trying to get your error message; what version of wxWidgets are you using?

From doc/build_win.txt
QuoteIMAP does not work with mingw.

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

Here's the error I get.


windres.exe -i C:\CODEPR~1\CODEBL~1\mahogany\SVN-TR~1\mahogany\res\M.rc -J rc -o Debug\res\M.res -O coff -Iinclude -IC:\wx\inno\wxWidgets-2.8\wxWidgets-2.8.3\include\msvc -IC:\wx\inno\wxWidgets-2.8\wxWidgets-2.8.3\include -Ilib\compface -Ilib\imap\src\osdep\nt -Ilib\imap\src\c-client -IC:\apps\MinGW_GCC_3.4.5_API_3_9\include
C:\CODEPR~1\CODEBL~1\mahogany\SVN-TR~1\mahogany\res\M.rc:0: fatal error: when writing output to : No such file or directory
compilation terminated.
windres.exe: can't open icon file `Micon.ico': No such file or directory
Process terminated with status 1 (0 minutes, 4 seconds)
2 errors, 0 warnings


Still looking for your error.
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

Now have your error.


-------------- Build: Debug_Win32 in M ---------------
windres.exe -i C:\CODEPR~1\CODEBL~1\mahogany\SVN-TR~1\mahogany\res\M.rc -J rc -o Debug\res\M.res -O coff -Ires -Iinclude -IC:\wx\inno\wxWidgets-2.8\wxWidgets-2.8.3\include\msvc -IC:\wx\inno\wxWidgets-2.8\wxWidgets-2.8.3\include -Ilib\compface -Ilib\imap\src\osdep\nt -Ilib\imap\src\c-client -IC:\apps\MinGW_GCC_3.4.5_API_3_9\include
Option -I is deprecated for setting the input format, please use -J instead.
windres.exe: C:\CODEPR~1\CODEBL~1\mahogany\SVN-TR~1\mahogany\res\M.rc: Not a valid WIN32 resource file
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 0 warnings
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

The problem could be in 3 places. I tend to believe it is in a little of all 3 places.

1. M.rc (bad data or formatting)
2. windres.exe ( does not support operations needed by M.rc)
3. Code::Blocks (does not change to folder containing M.rc)

I am going to try to get Mahogany to compile using VS2003 and see if I can reduce the problem areas some.

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]

MoonKid

Quote from: stahta01 on May 06, 2007, 11:21:09 PM
I am going to try to get Mahogany to compile using VS2003 and see if I can reduce the problem areas some.

I found the problem.

The string "-Ires" is an option "-I" and a search dir for the resource-compiler "res".
I just changed "res" to ".\res" and it worked.

Is it a C::B specific bug? Should I add bug report? Or is it a winres-bug?

stahta01

I say that it is a windres.exe bug, but maybe it can be fixed by code in code::blocks.

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]