Page 2 of 2

Re: wxCrafter not found

Posted: Thu Apr 04, 2013 12:26 pm
by softport
Thank you Eran, I am really looking forward to start using codelight.

I am downloading the files from the links, and in the meantime also uninstalling what I had. Codelite is uninstalled, including %appdata%\CodeLite and the old codelite folder deleted. However, just in case I am about to make another mistake, I cannot find anything to uninstall for wxCrafter. I do not seen it in add/remove programs, and don't see any folders with that name. Is that ok?

...
I finished the new installation, but there is still a problem somewhere. Below is the "HelloWorld" build information from OutputView->Build. My environment variables are:

CodeLiteDir=C:\Program Files\CodeLite
WXWIN=C:\wxWidgets-2.9.4
PATH=$(WXWIN)\lib\gcc_dll;$(PATH)
WXCFG=gcc_dll\mswu
UNIT_TEST_PP_SRC_DIR=C:\UnitTest++-1.3

Build output:

C:\WINDOWS\system32\cmd.exe /c "mingw32-make.exe -j 1 -e -f "wxcHelloWorld_wsp.mk""
"----------Building project:[ wxcHelloWorld - Release ]----------"
mingw32-make.exe[1]: Entering directory `C:/Program Files/CodeLite/Projects/wxcHelloWorld'

g++ -c "C:/Program Files/CodeLite/Projects/wxcHelloWorld/main.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:\wxWidgets-2.9.4\lib\gcc_dll\mswu -IC:\wxWidgets-2.9.4\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Release/main.o -I. -I.

g++ -c "C:/Program Files/CodeLite/Projects/wxcHelloWorld/wxcrafter.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:\wxWidgets-2.9.4\lib\gcc_dll\mswu -IC:\wxWidgets-2.9.4\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Release/wxcrafter.o -I. -I.

g++ -c "C:/Program Files/CodeLite/Projects/wxcHelloWorld/wxcrafter_bitmaps.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:\wxWidgets-2.9.4\lib\gcc_dll\mswu -IC:\wxWidgets-2.9.4\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Release/wxcrafter_bitmaps.o -I. -I.

g++ -c "C:/Program Files/CodeLite/Projects/wxcHelloWorld/MainDialog.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:\wxWidgets-2.9.4\lib\gcc_dll\mswu -IC:\wxWidgets-2.9.4\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Release/MainDialog.o -I. -I.

windres -i "C:/Program Files/CodeLite/Projects/wxcHelloWorld/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:\wxWidgets-2.9.4\lib\gcc_dll\mswu --include-dir C:\wxWidgets-2.9.4\include --define WXUSINGDLL -o ./Release/win_resources.rc.o

gcc: error: ISION=0209: No such file or directory
windres: gcc exited with status 1
mingw32-make.exe[1]: *** [Release/win_resources.rc.o] Error 1
mingw32-make.exe: *** [All] Error 2
wxcHelloWorld.mk:127: recipe for target `Release/win_resources.rc.o' failed
mingw32-make.exe[1]: Leaving directory `C:/Program Files/CodeLite/Projects/wxcHelloWorld'
wxcHelloWorld_wsp.mk:4: recipe for target `All' failed
0 errors, 0 warnings, total time: 00:00:35 seconds

Re: wxCrafter not found

Posted: Thu Apr 04, 2013 2:18 pm
by eranif
softport wrote: I do not seen it in add/remove programs
It should be in the add/remove programs (Windows 7 here)
softport wrote: windres -i "C:/Program Files/CodeLite/Projects/wxcHelloWorld/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:\wxWidgets-2.9.4\lib\gcc_dll\mswu --include-dir C:\wxWidgets-2.9.4\include --define WXUSINGDLL -o ./Release/win_resources.rc.o

gcc: error: ISION=0209: No such file or directory
windres: gcc exited with status 1
mingw32-make.exe[1]: *** [Release/win_resources.rc.o] Error 1
mingw32-make.exe: *** [All] Error 2
wxcHelloWorld.mk:127: recipe for target `Release/win_resources.rc.o' failed
mingw32-make.exe[1]: Leaving directory `C:/Program Files/CodeLite/Projects/wxcHelloWorld'
wxcHelloWorld_wsp.mk:4: recipe for target `All' failed
0 errors, 0 warnings, total time: 00:00:35 seconds
Your problem is that you have created your workspace in a folder with a space in its paths.
MinGW (especially windres.exe) does not like spaces in the path
Try creating the project elsewhere (e.g. C:\src )

Eran

Re: wxCrafter not found

Posted: Thu Apr 04, 2013 3:05 pm
by softport
Thank you Eran, HelloWorld now compiles and runs. I receive one warning:

windres -i "C:/CodeLiteProjects/wxHelloWorld/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:\wxWidgets-2.9.4\lib\gcc_dll\mswu --include-dir C:\wxWidgets-2.9.4\include --define WXUSINGDLL -o ./Debug/win_resources.rc.o

windres: warning: 24: 1: 1033: duplicate value

Now that I have everything set up correctly (or maybe almost) I checked add/remove programs to see if wxCrafter was there, and it is. Maybe I just didn't notice it before, or maybe when uninstalling Codelite it also uninstalled wxCrafter? No matter... All is working.

Thanks Eran!

Re: wxCrafter not found

Posted: Thu Apr 04, 2013 4:26 pm
by eranif
softport wrote:windres: warning: 24: 1: 1033: duplicate value
This is a bug in wx.rc file. win_resources.rc simply includes wx.rc file
softport wrote:maybe when uninstalling Codelite it also uninstalled wxCrafter?
No. You should have both entries in Add/Remove Programs

Eran

Re: wxCrafter not found

Posted: Thu Apr 04, 2013 4:52 pm
by softport
Thank you Eran. I'm looking forward to moving some of my DevC++ widgets projects over to Codelite.
It's remarkable that you, apparently as a one man institution, can still take the time to answer beginners' questions. Much appreciated.