QNX tutorial 1: How to build?

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.

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.

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 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