Page 1 of 1

Can' t configure wxWidgets on Windows

Posted: Thu Dec 10, 2015 1:54 pm
by AndrzejB
I have installed wxWidgets in directory C:\wxWidgets-3.0.2\.
I set environment variables: WXWIN=c:\wxWidgets-3.0.2 and WXCFG=vc_lib\mswud
My OS=Windows 8.1, CodeLite version=9.0.5
I create new wxWidgets project and it writes:
C:\Windows\system32\cmd.exe /C ""C:/Program Files (x86)/CodeBlocks/MinGW/bin/mingw32-make.exe" -j4 SHELL=cmd.exe -e -f Makefile""
"----------Building project:[ test - Debug ]----------"

Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.

Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.

Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud)
to specify which configuration exactly you want to use.
mingw32-make.exe[1]: Entering directory `C:/Users/Andrzej/Documents/test'
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: No: No such file or directory
g++.exe: error: valid: No such file or directory
g++.exe: error: setup.h: No such file or directory
g++.exe: error: of: No such file or directory
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: has: 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: at: No such file or directory
g++.exe: error: location:: Invalid argument
g++.exe: error: d/wx/setup.h: No such file or directory
mingw32-make.exe[1]: *** [Debug/main.cpp.o.d] Error 1
mingw32-make.exe[1]: Leaving directory `C:/Users/Andrzej/Documents/test'
mingw32-make.exe: *** [All] Error 2
====1 errors, 0 warnings====
What is d/wx/setup.h ?

Re: Can' t configure wxWidgets on Windows

Posted: Thu Dec 10, 2015 2:04 pm
by eranif
Do you have wxWidgets built in debug mode?
This is what it's trying to locate


Eran

Re: Can' t configure wxWidgets on Windows

Posted: Thu Dec 10, 2015 3:01 pm
by AndrzejB
I use standard wxWidgets from isntaller, I don't know if it is release or both release and debug?
maybe both bacause in lib/ are wxbase30u_net.lib and wxbase30ud.lib, dirs mswu and mswud .
Project is debug version. If is possible debug project version with release wxWidgets? I don't rebuild wxWidgets by myself.

Re: Can' t configure wxWidgets on Windows

Posted: Thu Dec 10, 2015 3:02 pm
by eranif
You don't have debug build, you need to build one.

Eran

Re: Can' t configure wxWidgets on Windows

Posted: Wed Feb 10, 2016 4:19 am
by Viterzgir
Same thing trying now to recompile WxWidgets with following command:
cd C:\wxWidgets-3.0.2\build\msw
mingw32-make -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=debug VENDOR=cl CXXFLAGS="-fno-keep-inline-dllexport -std=gnu++11" MONOLITHIC=1
I hope this help