wxWidgets Errors

I have just installed minGW and unzip the wxWidgets-2.8.11 zip file. I am not sure what to put in the env variable.I took a hello world example online and then compile the code but I got the following errors:
********************
$ mingw32-g++ /cygdrive/c/Development_Area/wxWidgets/helloworld/hworld.cpp `wx-config.in --libs` `wx-config.in --cxxflags` -o hworld
bash: wx-config.in: command not found
bash: wx-config.in: command not found
mingw32-g++.exe: /cygdrive/c/Development_Area/wxWidgets/helloworld/hworld.cpp: No such file or directory
mingw32-g++.exe: no input files
******************


I am certain that the file hword.cpp is in the right directory. Any help is greatly appreciated.
You don't need Cygwin to use MinGW

Try this installer here:
http://codelite.org/WxWidgets/GettingReadyForWxWidgetsDevelopmentUnderWindows
It comes with codelite mingw and wxwidgets.
Once installed, open hworld.cpp with codelite and hit the build button
1. I did install codelite and MinGW however when I build I got the following errors(see Build Started). Any thought?

2. What is the environmental variable for mingw32-g++ in codelite?
I have the for both codelite and Unit test but none for mingw32-g++. See below:
CodeLiteDir=C:\Program Files\CodeLite
UNIT_TEST_PP_SRC_DIR=C:\UnitTest++-1.3

----------Build Started--------
C:\Windows\system32\cmd.exe /c ""mingw32-make.exe" -j 2 -f "HelloWorldApp_wsp.mk""
----------Building project:[ HelloWorldApp - 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.
mingw32-make.exe[1]: Entering directory `C:/Development_Area/wxWidgets'
mingw32-g++ -c "C:/Development_Area/wxWidgets/main.cpp" -g wx-config Error: No valid setup.h of wxWidgets has been found at location: C:\wxWidgets-2.8.11\lib\gcc_dll\mswud\wx\setup.h -D__WX__ -o ./Debug/main.o "-I."
C:/Development_Area/wxWidgets/main.cpp:12:19: wx/wx.h: No such file or directory
Recent errors I got. any help is greatly appreciated.

----------Build Started--------
C:\Windows\system32\cmd.exe /c ""mingw32-make.exe" -j 2 -f "HelloWorldApp_wsp.mk""
----------Building project:[ HelloWorldApp - Debug ]----------
process_begin: CreateProcess(NULL, wx-config --cxxflags --unicode=yes --debug=yes, ...) failed.
process_begin: CreateProcess(NULL, wx-config --debug=yes --libs --unicode=yes, ...) failed.
mingw32-make.exe[1]: Entering directory `C:/Development_Area/wxWidgets'
'makedir' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make.exe[1]: *** [makeDirStep] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
mingw32-make.exe[1]: Leaving directory `C:/Development_Area/wxWidgets'
mingw32-make.exe: *** [All] Error 2
----------Build Ended----------
0 errors, 0 warnings
This can only happen if you somehow manipulated the PATH environment variable. 'makedir' is located where the codeite.exe exists (usually under C:\Program Files\CodeLite)

Can you paste here the content of your environment variables from within codelite? (settings -> environment variables)

Eran
CodeLiteDir=C:\Program Files\CodeLite
UNIT_TEST_PP_SRC_DIR=C:\UnitTest++-1.3
WX-CFG=C:\wxWidgets-2.8.11\lib\gcc_dll\mswud
WXWIN=C:\wxWidgets-2.8.11

Environment Variables:
CodeLiteDir=C:\Program Files\CodeLite
UNIT_TEST_PP_SRC_DIR=C:\UnitTest++-1.3
WX-CFG=C:\wxWidgets-2.8.11\lib\gcc_dll\mswud
WXWIN=C:\wxWidgets-2.8.11

I am not sure if these matters or not. From Settings->Build Settings->gnu g++->Tools:

C++ Compiler Name: m++
C Compiler Name: gcc
Linker Name: m++
Shared Object LInker: m++ -shared -fPIC
......
.....
PATH environment variable: C:\MinGW-4.4.1\bin

I cannot use the g++ as it is set for cygwin gnu. I am able to compile and link c++ code using the m++ successfully.

Thanks for all the help.
Correction in CAP letters:

I cannot use the g++ as it is set for cygwin gnu so I copied to m++. TO TEST IT. I am able to compile and link c++ code using the m++ successfully USING CYGWIN.
Correction in CAP letters:

I cannot use the g++(/usr/bin/g++) as it is set for cygwin gnu so I copied MinGW-4.4.1/bin/g++ to m++ in the same directory. TO TEST IT. I am able to compile and link c++ code using the m++ successfully USING CYGWIN. When I type "which m++", it is pointing the "C:\MinGW-4.4.1/bin/m++"
The problem is that you modified the PATH variable in Settings -> Build Settings -> Tools
So it now contains:
.
PATH environment variable: C:\MinGW-4.4.1\bin

You simply replaced the content PATH with a single location: C:\MinGW-4.4.1\bin
You should modify it like this:
PATH environment variable: $(PATH);C:\MinGW-4.4.1\bin
This way codelite will append the new path to the current PATH value

Also: I suggest that asking codelite related questions in codelite's forum (www.codelite.org/forum)
Eran
Topic archived. No new replies allowed.