Skip navigation.
Home
The QNX Community Portal

View topic - QNX tutorial 1: How to build?

QNX tutorial 1: How to build?

Read-only archive of qnx.newuser (Installation, configuration and administration of the QNX Neutrino or QNX Momentics environments) at inn.qnx.com

QNX tutorial 1: How to build?

Postby R. King » Mon Aug 16, 2004 6:46 pm

I'm using the 30-day trial version of 6.3.0 under Windows XP Professional. I
am trying to follow "Tutorial 1 -- creating a standard make C/C++ project"
in the Integrated Development Environment section of the QNX Momentics
Professional Edition section of the on-line help.

The tutorial says to use the following makefile:
CC=qcc
hello: hello.c

But when I try to build the project, the output window says:
make -k all
make: *** No rule to make target 'all'.

Granted, I am unfamiliar with QNX and makefiles, but what am I missing? It
seems like a frequent answer to a lot of beginners is that they are reading
the eclipse documentation instead of the QNX documentation, but in this case
I think I am reading the correct help info.
R. King
 

Re: QNX tutorial 1: How to build?

Postby Miguel Simon » Mon Aug 16, 2004 8:21 pm

Hi R. King...

Suggestion: use managed build file project.

In QNX using Momentics IDE, managed build file is a very good option
that works most of the time (100% of the time for me).

Regards...

Miguel.



R. King wrote:

I'm using the 30-day trial version of 6.3.0 under Windows XP Professional. I
am trying to follow "Tutorial 1 -- creating a standard make C/C++ project"
in the Integrated Development Environment section of the QNX Momentics
Professional Edition section of the on-line help.

The tutorial says to use the following makefile:
CC=qcc
hello: hello.c

But when I try to build the project, the output window says:
make -k all
make: *** No rule to make target 'all'.

Granted, I am unfamiliar with QNX and makefiles, but what am I missing? It
seems like a frequent answer to a lot of beginners is that they are reading
the eclipse documentation instead of the QNX documentation, but in this case
I think I am reading the correct help info.

Miguel Simon
 

re:QNX tutorial 1: How to build?

Postby yorktown968 » Sun Dec 17, 2006 1:02 am

Hi,

I have the same problem here, everytime I try to build I just get "No rule to make target `all'". I have the 30day trial version and there is no managed build file project inside this version! How do I solve that problem?

thanks

Chris
yorktown968
New Member
 
Posts: 1
Joined: Tue Dec 12, 2006 3:56 pm

Re: QNX tutorial 1: How to build?

Postby Ryan J. Allen » Mon Dec 18, 2006 2:30 pm

yorktown968 wrote:

I have the same problem here, everytime I try to build I just get
"No rule to make target `all'". I have the 30day trial
version and there is no managed build file project inside this
version! How do I solve that problem?

You can add a target "all" to your makefile.

If you have a Makefile like this:
CC=qcc
hello: hello.c

Then simply add the line:
all: hello

--
Ryan J. Allen
ryallen@qnx.com
Ryan J. Allen
 


Return to qnx.newuser

Who is online

Users browsing this forum: No registered users and 1 guest