Resource file using problem

General questions regarding the usage of CodeLite
Sergey
CodeLite Enthusiast
Posts: 15
Joined: Tue Dec 16, 2008 11:37 pm
Location: Ukraine
Contact:

Resource file using problem

Post by Sergey »

Hello Eran and all CodeLite community. I have a little problem with resource file compilation. When I try build my project with mesher.rc I take next messages:

Code: Select all

----------Build Started--------
"mingw32-make.exe"  -j 1 -f "QH Mesher_wsp.mk"
----------Building project:[ Mesher - Debug ]----------
windres -i "D:/Projects/QH Mesher/mesher.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:\wxWidgets-2.8.9\lib\gcc_dll\mswu --include-dir C:\wxWidgets-2.8.9\include --define WXUSINGDLL     -o ./Debug/mesher.rc.o 
gcc: D:/Projects/QH: No such file or directory
gcc: Mesher/mesher.rc: No such file or directory
gcc: warning: `-x c' after last input file has no effect
gcc: no input files
windres: gcc exited with status 1
mingw32-make.exe[1]: *** [Debug/mesher.rc.o] Error 1
mingw32-make.exe: *** [All] Error 2
mesher.rc has following text:

Code: Select all

#include "wx/msw/wx.rc"
So, What I should change for the successful build?
Смотри в корень!
Лучше скажи мало, но хорошо.
sdolim
CodeLite Veteran
Posts: 69
Joined: Fri Oct 24, 2008 10:29 pm
Contact:

Re: Resource file using problem

Post by sdolim »

You are having a problem with spaces in the file's pathname, and the quotes are being lost when windres calls gcc.

The simplest solution (if it is possible) is to rename the directory to not have spaces.

Another possiblility: Check under the Settings -> Build Settings -> Buld Systems tab. See if the option "When building, pass absolute path of the file to the compiler" is checked. If it is checked, try unchecking it and rebuilding. That might make the spaces problem go away.

Scott
Sergey
CodeLite Enthusiast
Posts: 15
Joined: Tue Dec 16, 2008 11:37 pm
Location: Ukraine
Contact:

Re: Resource file using problem

Post by Sergey »

Thanks, Scott. The first solution (directory renaming) has solved my problem. :D
Смотри в корень!
Лучше скажи мало, но хорошо.
Post Reply