...
Then, I can build the wx-config.exe, but where should I put the wx-config.exe? It is currently under:
E:\code\wx\wxWidgets-3.0.0\wx-config-win
When I open the samples.workspace (under E:\code\wx\wxWidgets-3.0.0\samples) , build any project certainly get failed.
What's the next step?
Thanks.
Put it in you system path or add it to your Compiler path.
Note: You need to re-start CB for either option.
Tim S.
Hi, Tim, it still doesn't work.
I put the exe under: E:\code\common_bin
When I try to build minimal sample, I get those:
[100.0%] Running target pre-build steps
cmd /c echo \lib\
\lib\
-------------- Build: win_gcc in minimal (compiler: GNU GCC Compiler)---------------
[ 50.0%] g++.exe wx-config Error: wxWidgets hasn't been found installed at 'E:\code'. -c minimal.cpp -o .objs\win_gcc\minimal.o
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: hasn't: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: installed: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: 'E:\code'.: Invalid argument
Process terminated with status 1 (0 minute(s), 0 second(s))
7 error(s), 0 warning(s) (0 minute(s), 0 second(s))
It looks like it try to search the parent folder of where I put the exe? (E:\code\common_bin)
EDIT:
If I put this wx-config.exe file under the folder: E:\code\wx\wxWidgets-3.0.0\lib, I get different build error
[100.0%] Running target pre-build steps
cmd /c echo \lib\
\lib\
-------------- Build: win_gcc in minimal (compiler: GNU GCC Compiler)---------------
[ 50.0%] g++.exe -c minimal.cpp -o .objs\win_gcc\minimal.o
minimal.cpp:21:23: fatal error: wx/wxprec.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Do I need to specify some custom variables?
EDIT2:
See
[100.0%] Running target pre-build steps
cmd /c echo \lib\
\lib\
It looks like I set wrong path?
EDIT3:
cmd /c echo $(WXWIN)\lib\$(WXCFG)
I just do not know where I can define those variables? Global variable does not work. They should have some expression like $(#WXWIN).
OK, Thanks for the help, I can correctly set these two environment variables by using the Environment variable plugin, see the image shot below:
(http://img855.imageshack.us/img855/5706/pch7.png)
But still has some build errors below.
[100.0%] Running target pre-build steps
cmd /c echo E:\code\wx\wxWidgets-3.0.0\lib\gcc_dll/mswu
E:\code\wx\wxWidgets-3.0.0\lib\gcc_dll/mswu
-------------- Build: win_gcc in minimal (compiler: GNU GCC Compiler)---------------
[ 50.0%] g++.exe -c minimal.cpp -o .objs\win_gcc\minimal.o
minimal.cpp:21:23: fatal error: wx/wxprec.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Hi, Tim, I found that I have to restart C::B after I put the wx-config.exe in PATH.
When restart C::B, it works fine now, here is the build log. Sorry for the noise.
[100.0%] Running target pre-build steps
cmd /c echo E:\code\wx\wxWidgets-3.0.0\lib\gcc_dll/mswu
E:\code\wx\wxWidgets-3.0.0\lib\gcc_dll/mswu
-------------- Build: win_gcc in minimal (compiler: GNU GCC Compiler)---------------
[ 50.0%] g++.exe -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IE:/code/wx/wxWidgets-3.0.0/lib/gcc_dll/mswu -IE:/code/wx/wxWidgets-3.0.0/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -c minimal.cpp -o .objs\win_gcc\minimal.o
[100.0%] g++.exe -LE:\code\wx\wxWidgets-3.0.0\lib\gcc_dll/mswu -o bin\win_gcc\minimal.exe .objs\win_gcc\minimal.o -mthreads -LE:/code/wx/wxWidgets-3.0.0/lib/gcc_dll -lwxmsw30u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -mwindows
Output file is bin\win_gcc\minimal.exe with size 267.65 KB
Process terminated with status 0 (0 minute(s), 5 second(s))
0 error(s), 0 warning(s) (0 minute(s), 5 second(s))
-------------- Run: win_gcc in minimal (compiler: GNU GCC Compiler)---------------
Checking for existence: E:\code\wx\wxWidgets-3.0.0\samples\minimal\bin\win_gcc\minimal.exe
Executing: "E:\code\wx\wxWidgets-3.0.0\samples\minimal\bin\win_gcc\minimal.exe" (in E:\code\wx\wxWidgets-3.0.0\samples\minimal\.)
Process terminated with status 0 (0 minute(s), 1 second(s))
Nice!