Page 1 of 1

Cannot compile

Posted: Wed Dec 16, 2009 8:51 am
by pkuriakose
I cannot seem to get codelite to invoke mingw32-make correctly with the .mk file.

I have reinstalled many times. Both codelite and ming have been reinstalled multiple times. I am using gcc ver 4.4.x. I invoke mingw32-make manually and it still does not work.

I have no idea what is going on here. Please help.

C:\WINDOWS\system32\cmd.exe /c ""C:/MinGW/bin/mingw32-make.exe" -j 2 -f "DatabaseTools_wsp.mk""
zsh: bad pattern: project:[
mingw32-make.exe: *** [All] Error 1

Re: Cannot compile

Posted: Wed Dec 16, 2009 10:31 am
by eranif
pkuriakose wrote:zsh: bad pattern: project:[
where does this come from?

codelite does not uses any shells, do you have Cygwin installed on your system?
If you do, do this:
make sure that the MinGW path is set first on the path (or at least before the Cygwin path)

In any case, do this:
set the system environment variable SHELL to CMD.EXE

restart codelite and try again
Eran

Re: Cannot compile

Posted: Thu Dec 17, 2009 7:37 am
by pkuriakose
Hi Eranif,

Thanks very much for the quick reply.

Cygwin is not installed. No other shell is installed.

I really have no idea where zsh comes from. The build output text that I posted shows that CodeLite is invoking cmd.exe directly and with an explicit path. Also mingw32-make is also explicitly path'd. Please see below where I invoke manually from the command line... (yes I am that old).

C:\Documents and Settings\Paul\My Documents\CodeLite\DatabaseTools>mingw32-make
-j 2 -f DatabaseTools_wsp.mk
zsh: bad pattern: project:[
mingw32-make: *** [All] Error 1

I took out everything from my path but the system dir's and ming and codelite. I don't know what this is about.

Thanks,

Paul

Re: Cannot compile

Posted: Thu Dec 17, 2009 8:43 am
by eranif
Did you set the SHELL environment variable to CMD.EXE as I suggested?

Where did you install MinGW from?

EDIT: Did you install MinGW + MSYS?

Eran

Re: Cannot compile

Posted: Thu Dec 17, 2009 9:01 am
by pkuriakose
I did set it. It had no effect.

I installed mingw from the main ming site. I have tried 3.x and 4.x with the same effect. I do not have msys. Is that necessary?

Thanks,

Paul

Re: Cannot compile

Posted: Thu Dec 31, 2009 9:05 am
by pkuriakose
Solved,

Found gnu's sh.exe in my path. My bad.

Thanks for you help.

Paul