Page 1 of 1

/usr/bin/sh: g++: command not found

Posted: Mon Aug 30, 2010 11:30 pm
by masthatim
I downloaded and installed codelite from this website:

http://codelite.org/WxWidgets/GettingRe ... derWindows

I ran the .exe and installed codelite in C:/Program Files,

While installation I set the location of Mingw, wx
the other three utilites were installed under C:/Program Files/CodeLite folder - mingw4.4.0, and wxMSW-2.8.11 to C:/program files/CodeLite.

Now I tried to create a sample APP using this tutorial here:
http://codelite.org/docs/VideoTutorials/wxdemo_gui.html

When i try to select myapp_frame.cpp and press "Build Active Project" it gives me this error:

----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 2 -f "demo_wsp.mk""
----------Building project:[ myapp - Debug ]----------
mingw32-make[1]: Entering directory `C:/Program Files/CodeLite/demo/myapp'
/usr/bin/sh: g++: command not found
mingw32-make[1]: *** [Debug/myapp_app.o.d] Error 127
mingw32-make[1]: *** Waiting for unfinished jobs....
/usr/bin/sh: g++: command not found
mingw32-make[1]: *** [Debug/myapp_frame.o.d] Error 127
mingw32-make[1]: Leaving directory `C:/Program Files/CodeLite/demo/myapp'
mingw32-make.exe: *** [All] Error 2
----------Build Ended----------
0 errors, 0 warnings

I have tried every possible way, but I cant ffind a way to build a sample app.
Please Help !!!!
I

Re: /usr/bin/sh: g++: command not found

Posted: Tue Aug 31, 2010 9:03 am
by eranif
You already have MSYS on your PATH environment variable which is placed *befoer* the MinGW that comes with codelite. Try changing the order.
Eran

Re: /usr/bin/sh: g++: command not found

Posted: Tue Aug 31, 2010 6:14 pm
by masthatim
With PATH you mean the PATH in windows Environement or CodeLite Environment ? Currently in my CodeLite Environment the Path looks like this:

WXWIN - C:\Prgram Files\CodeLite
WXCFG - gcc_dl\mswu
UNIT_TEST_PP_SRC_DIR - C:\UnitTest++-1.3

Where do I remove MSYS from ?

Thanks,

Re: /usr/bin/sh: g++: command not found

Posted: Tue Aug 31, 2010 6:34 pm
by eranif
Instead of removing it from your system environment variable settings, add this line to your codelite environment variables:

Code: Select all

PATH=C:\Program Files\CodeLite;C:\MinGW-4.4.1\bin;$(PATH)
This will add codelite's directory AND MinGW directory to the path first (only for codelite's session)
Eran