Why do I get "no rule to make target" error when I make an empty project in Carbide C++?

Login to reply to this topic.
Fri, 2008-03-14 18:44
Joined: 2008-02-12
Forum posts: 33

I have tried to make a screensaver project from Generic Symbian OS--> empy project in Carbide C++. But everytime I get "no rule to make target" error from the beginning that I don't know how to get rid of. What can I do to get rid of this error? The console output is
make[1] No rule to make target \Symbian\9.2\s60_3rd_fp1\epoc32\build\symbian\carbide\workspace\Hypnotic\group\Hypnotic\Winscw\Hypnotic.winscw

I have managed to get GUI application projects working, but this "no rule to make target" error prevents me from proceeding further with the "projects from empy project".


Sat, 2008-03-15 06:08
Joined: 2007-08-29
Forum posts: 128
Re: Why do I get "no rule to make target" error when I make an e

HI,

Try to clean and rebuild your application may be this will solve your problem.


Thanks & Regards
Ram

Symbian OS 9.1,S60 3rd edition MR,and CodeWarrior 3.1

Thu, 2008-03-20 04:07
Joined: 2007-09-03
Forum posts: 25
Re: Why do I get "no rule to make target" error when I make an e

Check if you have the correct perl version in your system. Perl v5.6.1 is advised if you are using Carbide.c++

Thu, 2008-03-20 12:11
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 462
Re: Why do I get "no rule to make target" error when I make an

Check if you have the correct perl version in your system. Perl v5.6.1 is advised if you are using Carbide.c++

AFAIK, that requirement is of SDK and not carbide. I could stand corrected if I am wrong!!

Fri, 2008-03-21 17:19
Joined: 2008-02-12
Forum posts: 33
Re: Why do I get "no rule to make target" error when I make an e

This problem dissapeared when I installed the new version of Carbide (1.3).

Mon, 2008-03-24 09:56
Joined: 2007-09-15
Forum posts: 61
Re: Why do I get "no rule to make target" error ...

Hey! I recently shifted from good old Codewarrior 3.1 to Carbide C++ 1.2, but I am also facing the same problem of "no rule to make target". I am using Carbide C++ 1.2 with Perl 5.8.8.822

I am trying to create a new Symbian OS C++ 3rd edition project using the Carbide wizard, but after finishing the steps in the wizard, when I try to build the project, it compiles with this "no rule..." error.

Any Hints...

Mon, 2008-03-24 10:23
Joined: 2008-02-12
Forum posts: 33
Re: Why do I get "no rule to make target" error when I make an e

You should try Carbide C++ 1.3 instead. That solved the problem for me.

Mon, 2008-03-24 12:21
Joined: 2007-09-15
Forum posts: 61
Re: Why do I get "no rule to make target" error...

Hi MobileVisuals,

I can't change the IDE that very fast, and moreover Carbide C++ 1.2 has been there for quite a while now, people have been developing on that. There has to be some reason as to why is this error coming to a few and not all. There must be something in the installation or configurations.

Mon, 2008-03-24 12:32
Joined: 2007-09-15
Forum posts: 61
Re: Why do I get "no rule to make target" .........

While searching the help of Carbide C++ 1.2, I just saw this question.:

---------------------

Q2. My Console view says "No rule to make target 'X'".

make -k clean all
make: *** No rule to make target 'clean'.
make: *** No rule to make target 'all'.

By default, the make program looks for a file most commonly called "Makefile" or "makefile". If it cannot find such a file in the working directory, or if that file is empty or the file does not contain rules for the command line goals ("clean" and "all" in this case), it will normally fail with an error message similar to those shown.

If you already have a valid Makefile, you may need to change the working directory of your build. The default working directory for the build command is the project's root directory. You can change this by specifying an alternate Build Directory in the Make Project properties. Or, if your Makefile is named something else (eg. buildFile.mk), you can specify the name by setting the default Build command to make -f buildFile.mk.

If you do not have a valid Makefile, create a new file named Makefile in the root directory. You can then add the contents of the sample Makefile (above), and modify it as appropriate.

-----------------

Going to try this. Hope this would help. Smiling

Mon, 2008-03-24 13:03
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 462
Re: Why do I get "no rule to make target" error when I

I would suggest you to use Perl 5.6.1 build 635.

Wed, 2008-03-26 06:28
Joined: 2007-09-15
Forum posts: 61
Re: Why do I get "no rule to make target" error .........

I got the application working with some support of my friends. The main problem is with the Context Help that carbide provides, when we create a new project. Havn't got the exact idea of the problem but commenting the lines containing the help file details in the bld.inf file solved my build problem. Then you need to remove the code ragarding the help in the .cpp files as well. This solved my problem, hope it will help others too. Havn't changed the Perl version for this.

good luck
Cheers!!

Wed, 2008-03-26 10:22
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 462
Re: Why do I get "no rule to make target" error when I

Well the Help file thing to work, You need UIDs from a range. That note is normally there in comments with the code regarding help file.

Oh..one another thing. Read release notes of the SDK. It will clearly say something regarding the perl version...and believe me, that will cause problems at some point or the other and maybe you might miss looking into this aspect and spend more time on it. So precaution is better than cure in my books Eye-wink

Wed, 2008-03-26 13:26
Joined: 2007-09-15
Forum posts: 61
Re: Why do I get "no rule to make target" error ...

Ya sure Neil, I got your point, but I had already lost quite some time and it was not possible to change the version due to some reason. Missed the note regarding help, as I told,have already lost some time. But will surely try to get into that. Just wanted to save time for others.

  • Login to reply to this topic.