running a qnx application

hello,

I cretaed a new QNX C project and a simple ‘main’ function has been creating
with a single ‘printf’ function. The project builds well but when I want to
run it as a local application where is an error which says ‘error starting
process’!!! Why such an error? I’m not used with using an OS within another
host OS.
When using Momentics IDE under windows, how can I know if I use Windows OS
or QNX OS? it’s not really clear for me the limit between these OS.

thank you for your help.
cyril

Hi,

If you are Windows hosted, you must setup a QNX target to run your apps on.
The IDE allows you to connect/download to a target to run/debug applications
on.

See the Launch Configuration section of the IDE User’s Guide:
http://www.qnx.com/developers/docs/6.3.0/ide_en/user_guide/launch.html

-Joe

cyril bros <cyrbros@hotmail.com> wrote in message
news:cpkvb4$s3p$1@inn.qnx.com

hello,

I cretaed a new QNX C project and a simple ‘main’ function has been
creating
with a single ‘printf’ function. The project builds well but when I want
to
run it as a local application where is an error which says ‘error starting
process’!!! Why such an error? I’m not used with using an OS within
another
host OS.
When using Momentics IDE under windows, how can I know if I use Windows OS
or QNX OS? it’s not really clear for me the limit between these OS.

thank you for your help.
cyril

I must choose a C/C++ local run application? In the setup, I don’t know how
to define an environment variable; if there is any, an app won’t run? to run
my apply on my computer i don’t have to connect download to a target, have
I?
thank you, cyril
“Joe Mammone” <hw@qnx.com> a écrit dans le message de news:
cpkvps$sf3$1@inn.qnx.com

Hi,

If you are Windows hosted, you must setup a QNX target to run your apps
on.
The IDE allows you to connect/download to a target to run/debug
applications
on.

See the Launch Configuration section of the IDE User’s Guide:
http://www.qnx.com/developers/docs/6.3.0/ide_en/user_guide/launch.html

-Joe

cyril bros <> cyrbros@hotmail.com> > wrote in message
news:cpkvb4$s3p$> 1@inn.qnx.com> …
hello,

I cretaed a new QNX C project and a simple ‘main’ function has been
creating
with a single ‘printf’ function. The project builds well but when I want
to
run it as a local application where is an error which says ‘error
starting
process’!!! Why such an error? I’m not used with using an OS within
another
host OS.
When using Momentics IDE under windows, how can I know if I use Windows
OS
or QNX OS? it’s not really clear for me the limit between these OS.

thank you for your help.
cyril
\

cyril bros <cyrbros@hotmail.com> wrote:
cb > I must choose a C/C++ local run application? In the setup, I don’t know how
cb > to define an environment variable; if there is any, an app won’t run? to run
cb > my apply on my computer i don’t have to connect download to a target, have
cb > I?
cb > thank you, cyril

If you are developing under a Windows OS, then Yes, you do need to download
your executable programs to a QNX target to run your programs.

You cannot run QNX binaries locally on Windows.
You must use either “C/C++ QNX PDebug (Serial)” or “C/C++ QNX QConn (IP)” to
setup your connection to your target QNX system and run/debug your QNX app.

You can setup environment variable via the Environment tab in the “Create,
manage and run configuration” window. You only need to do this if your
application requires the use of environment variables.

Regards,

Joe

cyril bros <cyrbros@hotmail.com> wrote in message
news:cpnntj$29r$1@inn.qnx.com

I must choose a C/C++ local run application? In the setup, I don’t know
how
to define an environment variable; if there is any, an app won’t run? to
run
my apply on my computer i don’t have to connect download to a target, have
I?
thank you, cyril
“Joe Mammone” <> hw@qnx.com> > a écrit dans le message de news:
cpkvps$sf3$> 1@inn.qnx.com> …
Hi,

If you are Windows hosted, you must setup a QNX target to run your apps
on.
The IDE allows you to connect/download to a target to run/debug
applications
on.

See the Launch Configuration section of the IDE User’s Guide:
http://www.qnx.com/developers/docs/6.3.0/ide_en/user_guide/launch.html

-Joe

cyril bros <> cyrbros@hotmail.com> > wrote in message
news:cpkvb4$s3p$> 1@inn.qnx.com> …
hello,

I cretaed a new QNX C project and a simple ‘main’ function has been
creating
with a single ‘printf’ function. The project builds well but when I
want
to
run it as a local application where is an error which says ‘error
starting
process’!!! Why such an error? I’m not used with using an OS within
another
host OS.
When using Momentics IDE under windows, how can I know if I use Windows
OS
or QNX OS? it’s not really clear for me the limit between these OS.

thank you for your help.
cyril


\

ok but if i don’t have a target or if my target is my own computer (x86), I
can’t download the application via IP or by another way! How to define that
the target is the host?
Moreover, with a standart C/C++ project, can I use real-time
functionnalities of QNX?
thank you.
cyril
“Bill Caroselli” <qtps@earthlink.net> a écrit dans le message de news:
cpnpuf$3ib$1@inn.qnx.com

cyril bros <> cyrbros@hotmail.com> > wrote:
cb > I must choose a C/C++ local run application? In the setup, I don’t
know how
cb > to define an environment variable; if there is any, an app won’t run?
to run
cb > my apply on my computer i don’t have to connect download to a target,
have
cb > I?
cb > thank you, cyril

If you are developing under a Windows OS, then Yes, you do need to
download
your executable programs to a QNX target to run your programs.

cyril bros wrote:

ok but if i don’t have a target or if my target is my own computer (x86),
Could you tell us exactly what you installed and how and where. If you

installed Momentics IDE under Windows, then your own computer cannot be
the target. The target must be a computer running the QNX operating
system. Momentics IDE is just a compiler. It is not an operating system.
I

can’t download the application via IP or by another way! How to define that
the target is the host?
Moreover, with a standart C/C++ project, can I use real-time
functionnalities of QNX?
The real-time functionality does not depend on the type of project. It

depends on the operating system.

thank you.
cyril
“Bill Caroselli” <> qtps@earthlink.net> > a écrit dans le message de news:
cpnpuf$3ib$> 1@inn.qnx.com> …

cyril bros <> cyrbros@hotmail.com> > wrote:
cb > I must choose a C/C++ local run application? In the setup, I don’t
know how
cb > to define an environment variable; if there is any, an app won’t run?
to run
cb > my apply on my computer i don’t have to connect download to a target,
have
cb > I?
cb > thank you, cyril

If you are developing under a Windows OS, then Yes, you do need to
download
your executable programs to a QNX target to run your programs.
\

cyril bros <cyrbros@hotmail.com> wrote:

ok but if i don’t have a target or if my target is my own computer (x86), I
can’t download the application via IP or by another way! How to define that
the target is the host?

Are you saying that the same machine you’re running windows on for
development, you also intend to run QNX on?

You will need to install a QNX boot system on this machine, in its
own partition. This would be done with the Neutrino-hosted CD, not the
Windows-hosted CD.

If doing that, you may find it easier to install the development system
for QNX Neutrino-hosted and development self-hosted.

If not, you will have to create a FAT filesystem (either a seperate
partition, or if your WIndows main partition is FAT, you can use that)
and while developping under Windows write the compiled executables to
the FAT partition, then reboot to QNX to test them. Doing things this
way is VERY painful and slow. You would be better with a seperate machine
running QNX for the running/testing, or Neutrino-hosted development.

A 3rd option would be to run QNX in a virtual machine (e.g. vmware) on
your Windows box.

In all cases, no matter where you compile the executables, you must have
a QNX Neutrino operating system running on a machine (real or virtual)
to run the executables you built.

Moreover, with a standart C/C++ project, can I use real-time
functionnalities of QNX?

Absolutely. Most of the course examples that I use to teach QNX
programming are compile with Standard C/C++ projects.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com

I installed QNX 6.3.0 self-hosted 30 days evaluation version. I installed it
on the default repertory c:\QNX630. Is there the real-time OS included that
i have to install on another partition? or can I launch the OS with a
terminal window from Windows OS?
thank you.
“John McClurkin” <jwm@lsr.nei.nih.gov> a écrit dans le message de news:
cpq71t$sen$1@inn.qnx.com

cyril bros wrote:
ok but if i don’t have a target or if my target is my own computer (x86),
Could you tell us exactly what you installed and how and where. If you
installed Momentics IDE under Windows, then your own computer cannot be
the target. The target must be a computer running the QNX operating
system. Momentics IDE is just a compiler. It is not an operating system.
I
can’t download the application via IP or by another way! How to define
that the target is the host?
Moreover, with a standart C/C++ project, can I use real-time
functionnalities of QNX?
The real-time functionality does not depend on the type of project. It
depends on the operating system.

thank you.
cyril
“Bill Caroselli” <> qtps@earthlink.net> > a écrit dans le message de news:
cpnpuf$3ib$> 1@inn.qnx.com> …

cyril bros <> cyrbros@hotmail.com> > wrote:
cb > I must choose a C/C++ local run application? In the setup, I don’t
know how
cb > to define an environment variable; if there is any, an app won’t
run? to run
cb > my apply on my computer i don’t have to connect download to a
target, have
cb > I?
cb > thank you, cyril

If you are developing under a Windows OS, then Yes, you do need to
download
your executable programs to a QNX target to run your programs.

thank you for your answer.
But when downloading the windows hosted 30 days evaluation kit in which
there is the Neutrino real-time OS, I have to launch this Os on a virtual
machine. 2 questions : with this installation, how to boot on QNX after
having written executables on a FAT filesystel? how to launch a virtual
machine and how to use it?
Is it possible to have the RTOS running while beeing under Windows?

one more time, thank you for your precious help.
I think i will finish to pay myself a formation day to use QNX!!!
cyril
Now if i choose to install the Neutrino-hosted CD, i don’t need to use my
windows hosted version anymore?
“David Gibbs” <dagibbs@qnx.com> a écrit dans le message de news:
cpq944$nf$1@inn.qnx.com

cyril bros <> cyrbros@hotmail.com> > wrote:
ok but if i don’t have a target or if my target is my own computer (x86),
I
can’t download the application via IP or by another way! How to define
that
the target is the host?

Are you saying that the same machine you’re running windows on for
development, you also intend to run QNX on?

You will need to install a QNX boot system on this machine, in its
own partition. This would be done with the Neutrino-hosted CD, not the
Windows-hosted CD.

If doing that, you may find it easier to install the development system
for QNX Neutrino-hosted and development self-hosted.

If not, you will have to create a FAT filesystem (either a seperate
partition, or if your WIndows main partition is FAT, you can use that)
and while developping under Windows write the compiled executables to
the FAT partition, then reboot to QNX to test them. Doing things this
way is VERY painful and slow. You would be better with a seperate machine
running QNX for the running/testing, or Neutrino-hosted development.

A 3rd option would be to run QNX in a virtual machine (e.g. vmware) on
your Windows box.

In all cases, no matter where you compile the executables, you must have
a QNX Neutrino operating system running on a machine (real or virtual)
to run the executables you built.

Moreover, with a standart C/C++ project, can I use real-time
functionnalities of QNX?

Absolutely. Most of the course examples that I use to teach QNX
programming are compile with Standard C/C++ projects.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com

cyril bros wrote:

I installed QNX 6.3.0 self-hosted 30 days evaluation version. I installed it
on the default repertory c:\QNX630. Is there the real-time OS included that
i have to install on another partition? or can I launch the OS with a
terminal window from Windows OS?
No, QNX cannot run directly under Windows.

You installed QNX under Windows OS. This means that what you installed
was just the development system, which includes the IDE and a cross
compiler. To run the program built with the QNX development system, you
need a machine running the QNX OS. You can use VMware
(http://www.vmware.com) to create a virtual machine for the QNX OS under
the Windows OS. Instructions for creating a virtual machine,
installing an OS in it, and running programs on it are included with the
VMware software. I have used VMware to install Linux under Windows, but
never to install QNX under Windows. I have no idea as to how good the
real-time functionality of QNX would be when running in VMware. There
may be other virtual machine software, but I am familiar only with VMware.
If real-time functionality is very important I would suggest that you
install the complete QNX operating system with development system. There
are two options:

  1. Forget your current machine running Windows. Buy a separate
    computer, install QNX on that as the operating system and development
    environment, and develop and test on that new machine.
  2. Create two separate disk partitions on your current machine, install
    Windows on one partition and QNX on the other. To change operating
    systems you will have to reboot your computer. This means that you
    cannot easily test software written with the QNX IDE install under
    Windows. Therefore, install the IDE in the QNX partition and do all of
    your development and testing with the computer booted into QNX.

thank you.
“John McClurkin” <> jwm@lsr.nei.nih.gov> > a écrit dans le message de news:
cpq71t$sen$> 1@inn.qnx.com> …

cyril bros wrote:

ok but if i don’t have a target or if my target is my own computer (x86),

Could you tell us exactly what you installed and how and where. If you
installed Momentics IDE under Windows, then your own computer cannot be
the target. The target must be a computer running the QNX operating
system. Momentics IDE is just a compiler. It is not an operating system.
I

can’t download the application via IP or by another way! How to define
that the target is the host?
Moreover, with a standart C/C++ project, can I use real-time
functionnalities of QNX?

The real-time functionality does not depend on the type of project. It
depends on the operating system.


thank you.
cyril
“Bill Caroselli” <> qtps@earthlink.net> > a écrit dans le message de news:
cpnpuf$3ib$> 1@inn.qnx.com> …


cyril bros <> cyrbros@hotmail.com> > wrote:
cb > I must choose a C/C++ local run application? In the setup, I don’t
know how
cb > to define an environment variable; if there is any, an app won’t
run? to run
cb > my apply on my computer i don’t have to connect download to a
target, have
cb > I?
cb > thank you, cyril

If you are developing under a Windows OS, then Yes, you do need to
download
your executable programs to a QNX target to run your programs.
\

John McClurkin <jwm@lsr.nei.nih.gov> wrote:

cyril bros wrote:

I have used VMware to install Linux under Windows, but
never to install QNX under Windows. I have no idea as to how good the
real-time functionality of QNX would be when running in VMware.

I have installed QNX under VMware, it installed easily, ran well. I use
it for my target machine when teaching much of the time. It is NOT a
realtime system, though. Great for learning, testing that the software
runs the code properly – but not good for dealing with timing issues.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com