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.
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
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
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)
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.
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