User forums > Using Code::Blocks

Anyone interrested in CB Projects that compiles wxWidgets samples with wx-config

<< < (2/3) > >>

ollydbg:
What is the steps to use this tool to build wx sample?
I can download the zip file from github, and extract to E:\code\wx\wxWidgets-3.0.0
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.

stahta01:

--- Quote from: ollydbg on January 08, 2014, 03:53:31 pm ---What is the steps to use this tool to build wx sample?
I can download the zip file from github, and extract to E:\code\wx\wxWidgets-3.0.0
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.

--- End quote ---

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.

ollydbg:

--- Quote from: stahta01 on January 08, 2014, 06:05:39 pm ---
--- Quote from: ollydbg on January 08, 2014, 03:53:31 pm ---...
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.

--- End quote ---

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.

--- End quote ---

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:


--- Code: ---[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))

--- End code ---

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

--- Code: ---[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))

--- End code ---

Do I need to specify some custom variables?

EDIT2:
See

--- Code: ---[100.0%] Running target pre-build steps
cmd /c echo \lib\
\lib\

--- End code ---
It looks like I set wrong path?

EDIT3:

--- Code: ---cmd /c echo $(WXWIN)\lib\$(WXCFG)
--- End code ---
I just do not know where I can define those variables? Global variable does not work. They should have some expression like $(#WXWIN).

stahta01:

--- Quote from: ollydbg on January 09, 2014, 01:58:10 am ---
Do I need to specify some custom variables?

EDIT2:
See

--- Code: ---[100.0%] Running target pre-build steps
cmd /c echo \lib\
\lib\

--- End code ---
It looks like I set wrong path?

EDIT3:

--- Code: ---cmd /c echo $(WXWIN)\lib\$(WXCFG)
--- End code ---
I just do not know where I can define those variables? Global variable does not work. They should have some expression like $(#WXWIN).



--- End quote ---

I set WXCFG in CB Environmental Variable; but, I always need to remember to click an "set now" and restart CB for the effects to happen.
I set WXWIN in the OS Environmental Variable normally. It the same as the wxWidgets base directory.

Did the readme not exist in the wx-config-win folder?
Looks like it should https://github.com/stahta01/cb_projects_for_wxWidgets/blob/master/wx-config-win/README.txt

Common value for WXCFG is gcc_lib/mswu or gcc_dll/mswu

This $(WXWIN)\lib\$(WXCFG) should be the folder that holds wx/setup.h

Tim S.


ollydbg:
OK, Thanks for the help, I can correctly set these two environment variables by using the Environment variable plugin, see the image shot below:




But still has some build errors below.


--- Code: ---[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))
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version