Author Topic: invalid win32 rc file  (Read 9278 times)

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
invalid win32 rc file
« on: May 06, 2007, 10:27:25 am »
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: invalid win32 rc file
« Reply #1 on: May 06, 2007, 06:42:18 pm »
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
« Last Edit: May 06, 2007, 07:40:48 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: invalid win32 rc file
« Reply #2 on: May 06, 2007, 08:08:47 pm »
What compiler, include version, are you using?

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

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

I am using the current nightly.

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: invalid win32 rc file
« Reply #3 on: May 06, 2007, 08:38:10 pm »
Quote
current nightly
I think SVN number is more useful (outside nightly build posts)...

Dje

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: invalid win32 rc file
« Reply #4 on: May 06, 2007, 08:55:46 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: invalid win32 rc file
« Reply #5 on: May 06, 2007, 09:05:25 pm »
I think SVN number is more useful (outside nightly build posts)...

3935

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: invalid win32 rc file
« Reply #6 on: May 06, 2007, 09:08:25 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: invalid win32 rc file
« Reply #7 on: May 06, 2007, 09:40:55 pm »
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
Quote
IMAP does not work with mingw.

Tim S
« Last Edit: May 06, 2007, 09:58:08 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: invalid win32 rc file
« Reply #8 on: May 06, 2007, 10:04:39 pm »
Here's the error I get.

Code
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: invalid win32 rc file
« Reply #9 on: May 06, 2007, 10:06:09 pm »
Now have your error.

Code
-------------- 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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: invalid win32 rc file
« Reply #10 on: May 06, 2007, 11:21:09 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: invalid win32 rc file
« Reply #11 on: May 07, 2007, 12:42:59 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: invalid win32 rc file
« Reply #12 on: May 07, 2007, 04:18:14 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org