Code::Blocks Forums

User forums => Help => Topic started by: Ingrater on January 31, 2007, 04:58:53 pm

Title: wxWidgets Project missing resources
Post by: Ingrater on January 31, 2007, 04:58:53 pm
I installed the yesterday nightly build a few minutes ago and tryed du make a new wxWidgets Project. But when i try to compile I get a error "no resources". I'm using gcc and wxWidgets 2.8.0, with the a earlier nightly Build it worked for me.

Any suggestions how to correct this error?
Title: Re: wxWidgets Project missing resources
Post by: stahta01 on January 31, 2007, 05:30:28 pm
I installed the yesterday nightly build a few minutes ago and tryed du make a new wxWidgets Project. But when i try to compile I get a error "no resources". I'm using gcc and wxWidgets 2.8.0, with the a earlier nightly Build it worked for me.

Any suggestions how to correct this error?

The following is assuming that you are using windows.
Did you use 7zip to extract the files? If not, try using 7zip.

Tim S
Title: Re: wxWidgets Project missing resources
Post by: Biplab on January 31, 2007, 05:33:54 pm
This is what I'm getting.

Quote
-------------- Build: Release in Test ---------------
Compiling: TestMain.cpp
Compiling: resource.rc
In file included from C:\Projects\Test\resource.rc:3:
C:/wxMSW-2.8.0/include/wx/msw/wx.rc:119:24: warning: no newline at end of file
Compiling: TestApp.cpp
Linking executable: bin\Release\Test.exe
Process terminated with status 0 (0 minutes, 9 seconds)
0 errors, 1 warnings

Using Release-Dynamic-Unicode-Monolithic build.

So the wizard is working. Please check your settings.

Also it would be nice if you post more details, such as OS, wx config, Project config used, etc.
Title: Re: wxWidgets Project missing resources
Post by: Ingrater on January 31, 2007, 06:28:09 pm
I used 7-Zip for extracting. Im using Windows XP. I build the Release-Dynamic-Unicode-Monolithic Library myself. And, as I said before, it worked with the nightly build 17th January 2007 fine. If I open old wxWidgets Projects they still work fine. But if I create a new one with the wizard I get this error.

Quote
:: === Uhr, default ===
:: warning: `-x c' after last input file has no effect
:: no resources
:: === Build finished: 1 errors, 1 warnings ===

I'm using MinGW 5.1.3

(http://stuff.benjamin-thaut.de/wxWidgets.jpg)
Title: Re: wxWidgets Project missing resources
Post by: Biplab on January 31, 2007, 07:11:28 pm
A similar problem was posted in the following thread.

Quote
http://forums.codeblocks.org/index.php?topic=5003.0

I think your project directory has some spaces in between. windres.exe will fail for project directory C:\foo\my project\resource.rc. Try to remove the spaces from the project directory (e.g., C:\foo\my_project\resource.rc) and see whether you get the error or not.
Title: Re: wxWidgets Project missing resources
Post by: Ingrater on January 31, 2007, 08:24:11 pm
Thanks, I had a space in my CodeBlocks Directory Name.
Now it works
Title: Re: wxWidgets Project missing resources
Post by: Biplab on February 01, 2007, 05:17:03 am
Nice to know that it is working.  :D

BTW did you try 31st January's Nightly? The bug has been fixed.