Cannot compile

CodeLite installation/troubleshooting forum
pkuriakose
CodeLite Curious
Posts: 5
Joined: Wed Dec 16, 2009 8:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Cannot compile

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot compile

Post 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
Make sure you have read the HOW TO POST thread
pkuriakose
CodeLite Curious
Posts: 5
Joined: Wed Dec 16, 2009 8:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot compile

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot compile

Post 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
Make sure you have read the HOW TO POST thread
pkuriakose
CodeLite Curious
Posts: 5
Joined: Wed Dec 16, 2009 8:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot compile

Post 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
pkuriakose
CodeLite Curious
Posts: 5
Joined: Wed Dec 16, 2009 8:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cannot compile

Post by pkuriakose »

Solved,

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

Thanks for you help.

Paul
Post Reply