Page 1 of 1

Resource file using problem

Posted: Sat Jan 10, 2009 8:22 pm
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?

Re: Resource file using problem

Posted: Sat Jan 10, 2009 9:04 pm
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

Re: Resource file using problem

Posted: Sat Jan 10, 2009 9:46 pm
by Sergey
Thanks, Scott. The first solution (directory renaming) has solved my problem. :D