[SOLVED] Make not working in Codelite 6.1

CodeLite installation/troubleshooting forum
Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

[SOLVED] Make not working in Codelite 6.1

Post by Landslyde » Mon Oct 13, 2014 9:54 pm

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
Last edited by Landslyde on Wed Oct 15, 2014 1:35 pm, edited 4 times in total.

User avatar
eranif
CodeLite Plugin
Posts: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: GUI not appearing

Post by eranif » Mon Oct 13, 2014 10:08 pm

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
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread

Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: GUI not appearing

Post by Landslyde » Mon Oct 13, 2014 11:21 pm

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

Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: GUI not appearing

Post by Landslyde » Tue Oct 14, 2014 1:54 am

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
You do not have the required permissions to view the files attached to this post.

User avatar
eranif
CodeLite Plugin
Posts: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Make not working in Codelite 6.1

Post by eranif » Tue Oct 14, 2014 9:44 am

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
Make sure you have read the HOW TO POST thread

Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Make not working in Codelite 6.1

Post by Landslyde » Wed Oct 15, 2014 1:21 am

Hope this helps. And I apologize for all the "noob" stuff. But I'm learning here. Thank you for that.

Landslyde
Selection_006.png
You do not have the required permissions to view the files attached to this post.

DavidGH
CodeLite Plugin
Posts: 675
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Make not working in Codelite 6.1

Post by DavidGH » Wed Oct 15, 2014 12:32 pm

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

User avatar
eranif
CodeLite Plugin
Posts: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Make not working in Codelite 6.1

Post by eranif » Wed Oct 15, 2014 1:30 pm

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
Make sure you have read the HOW TO POST thread

Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Make not working in Codelite 6.1

Post by Landslyde » Wed Oct 15, 2014 1:35 pm

Thanks, David. That was the ticket. Much appreciated.

Landslyde

Post Reply