Page 1 of 1

[SOLVED] Make not working in Codelite 6.1

Posted: Mon Oct 13, 2014 9:54 pm
by Landslyde
OS: Linux Mint 17
Codelite v.6.1
wxCrafter v.1.6

Greetings Forum:

Just got Codelite and wxCrafter installed. But the deal is, I'm not sure I have Codelite setup right. I can't get the tutorial (http://codelite.org/LiteEditor/WxCrafterHelloWorld) to run for me. Actually, even though I have this as a GUI project using wxCrafter, it's trying to run from the terminal. Here are few things that I hope will help you help me:

Output View --> Build:

Code: Select all

/bin/sh -c ' -j 2 -e -f  Makefile'
/bin/sh: 1: -j: not found
0 errors, 0 warnings
Output View --> Output:

Code: Select all

Current working directory: /home/woogi/Desktop/CodeLite/wxcHelloWorld
Running program: /usr/bin/codelite_xterm './wxcHelloWorld ' './wxcHelloWorld'
Program exited with return code: 0
I can't find where to change this to make it run as a GUI instead of the term. Hope you guys/gals can help me get on the right track.

I like the look and feel of Codelite. Am ready to get going with it.

Thanks in advance,
Landslyde

Re: GUI not appearing

Posted: Mon Oct 13, 2014 10:08 pm
by eranif

Code: Select all

/bin/sh -c ' -j 2 -e -f  Makefile'
This line is the problem.
You don't have Make utility for some reason.

Try typing this from the command line:

Code: Select all

make
Do you have an output?

If it works, go to (from the main menu):
settings->build settings->compilers

Select your compiler (you can find out which compiler you are using from the project settings->common settings->general->compiler)
And paste the content you have under: your compiler->Tools->Make

See this screenshot for an example:
1.png
Eran

Re: GUI not appearing

Posted: Mon Oct 13, 2014 11:21 pm
by Landslyde
To help cover some of my embarrassment, I reinstalled both Windows 7 Pro and Linux Mint 17 two days ago. In reinstalling some of my lost programs, the one I failed to get was g++ ;)

The little Hello World GUI works now. Was as simple as that.

Thanks for your help, Eran. I'll be back though, I'm sure of it. My goal here is to build a database app for an ex-employer. So I'll be diving into the deep waters of Codelite. Thanks again.

Landslyde

Re: GUI not appearing

Posted: Tue Oct 14, 2014 1:54 am
by Landslyde
No. That did not fix my issue. In my previos post, I actually ran make in the term of the project folder. So when I went back to Codelite, it ran for me. I then did the tutorial again to test the results and found that installing g++ didn't solve my problem. It still fails to make. Here is the screenshot of my term during make:
Selection_001.png
Eran, you told me:
And paste the content you have under: your compiler->Tools->Make
But that term screen is kinda busy. I don't know wnat to copy paste.

Here are other screenshots showing compiler and make settings in Codelite:
Selection_002.png
Selection_005.png
So, since I can use make in the term but not in Codelite, I know I don't have it set right. And the saga continues...

Thanks,
Landslyde

Re: Make not working in Codelite 6.1

Posted: Tue Oct 14, 2014 9:44 am
by eranif
Instead, please provide a screenshot of your build settings:

From the main menu: Settings->Build Settings...

Make sure that the "Compilers" tab is selected at the top.
On the list view (left side), select the compiler 'gnu g++'

and take a screenshot

Eran

Re: Make not working in Codelite 6.1

Posted: Wed Oct 15, 2014 1:21 am
by Landslyde
Hope this helps. And I apologize for all the "noob" stuff. But I'm learning here. Thank you for that.

Landslyde
Selection_006.png

Re: Make not working in Codelite 6.1

Posted: Wed Oct 15, 2014 12:32 pm
by DavidGH
Hi,

Your 'Make' setting is '-j2'. Mine is '/usr/bin/make -j8'.

First, in a terminal do: which make
to check that 'make' really is available (if not, install it!) and where it is. Then put that path in that dialog's 'Make' field. So for you it will probably now read: '/usr/bin/make -j2'.

Regards,

David

Re: Make not working in Codelite 6.1

Posted: Wed Oct 15, 2014 1:30 pm
by eranif
Since we know that you have make installed on your machine (you compiled your code manually from the terminal)
Change the 'Make' tool (from the screenshot you posted) to:

Code: Select all

make -j2
Eran

Re: Make not working in Codelite 6.1

Posted: Wed Oct 15, 2014 1:35 pm
by Landslyde
Thanks, David. That was the ticket. Much appreciated.

Landslyde