Can't MAKE HelloWorld

CodeLite installation/troubleshooting forum
tonyburrows
CodeLite Curious
Posts: 2
Joined: Sat Dec 27, 2014 9:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Can't MAKE HelloWorld

Post by tonyburrows »

I am running CodeLite 5.2
Running on OpenSuSe 13.2 x64
Installed from downloaded rpms
GCC 4.8.1

I tried the first 'getting started' project, a simple HelloWorld. It did not produce an executable, giving the output:

/bin/sh -c 'make -j 2 -e -f Makefile'
----------Building project:[ HelloWorld - Debug ]----------
make[1]: Entering directory `/home/base_home/programming/C/HelloWorld'
make[1]: *** No rule to make target `Debug/HelloWorld_main.o', needed by `Debug/HelloWorld'. Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/base_home/programming/C/HelloWorld'
make: *** [All] Error 2
0 errors, 0 warnings

There seems to be no way around this. If I try make in a console I get the same 'no rule' error, and again trying make -f HelloWorld.mk

What now? As someone who has been teaching Java and Python for years, I feel remarkably stupid at not being able to start solving this.

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

Re: Can't MAKE HelloWorld

Post by eranif »

Why not using a more recent version of codelite? 5.2 is quite, on our download page you can get codelite 6.1 for OpenSUSE
Eran
Make sure you have read the HOW TO POST thread
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Can't MAKE HelloWorld

Post by DavidGH »

Hi,

Also, in openSUSE the 'gcc-c++' package (and in a kde install also the 'make' package) is/are not installed by default. This will prevent any C++ makefile-based program from building.

Regards,

David
tonyburrows
CodeLite Curious
Posts: 2
Joined: Sat Dec 27, 2014 9:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Can't MAKE HelloWorld

Post by tonyburrows »

I had The recent gcc 4.8, make and cmake installed (I had been using a manual toolchain). I've installed CodeLite 6.1 and it all works now.

I had tried v6.1 earlier, only to find it would not run. I've since realised that I had tried to install an rpm for SuSE 13.2 when I was still on 13.1. It failed to run. Whether there is a significant difference or the download got corrupted I could not say.

Thanks for your help. Now to learn C!

Tony
Post Reply