| Author |
Message |
|
|
Post subject: display problem
Posted: Aug 01, 2007 - 07:01 PM
|
|
|
|
Hello,
I developped an application on a host machine on QNX IDE 1.4 and downloaded
it to a target machine running QNX momentics 6.3.0.
Now when running the application I can't see any where where all printfs in
the application are displayed.
So if some one knows what I have to do to see all the messages I want to
display it could be very helpful for me.
Thank you |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: display problem
Posted: Aug 01, 2007 - 08:01 PM
|
|
Senior Member
Joined: Sep 17, 2004
Posts: 251
|
|
How are you starting the program?
"hamza" <hamza.elkouch@polymtl.ca> wrote in message
news:f8qkuj$e0q$1@inn.qnx.com...
Quote:
Hello,
I developped an application on a host machine on QNX IDE 1.4 and
downloaded
it to a target machine running QNX momentics 6.3.0.
Now when running the application I can't see any where where all printfs
in
the application are displayed.
So if some one knows what I have to do to see all the messages I want to
display it could be very helpful for me.
Thank you
|
|
|
| |
|
|
|
 |
|
|
Post subject: Re: display problem
Posted: Aug 15, 2007 - 06:08 PM
|
|
|
|
Hello,
I'm running the program from the run buton in QNX IDE.
I don't know if it's the correct way to run the program.
Thank you for your reponse.
"Ken Schumm" <kwschumm@qsolv.com> wrote in message
news:f8qor4$g71$1@inn.qnx.com...
Quote:
How are you starting the program?
"hamza" <hamza.elkouch@polymtl.ca> wrote in message
news:f8qkuj$e0q$1@inn.qnx.com...
Hello,
I developped an application on a host machine on QNX IDE 1.4 and
downloaded
it to a target machine running QNX momentics 6.3.0.
Now when running the application I can't see any where where all printfs
in
the application are displayed.
So if some one knows what I have to do to see all the messages I want to
display it could be very helpful for me.
Thank you
|
|
|
| |
|
|
|
 |
|
|
Post subject: Re: display problem
Posted: Aug 15, 2007 - 07:53 PM
|
|
|
|
On 15/08/2007 2:08 PM, hamza wrote:
Quote:
I'm running the program from the run buton in QNX IDE.
Run it from a terminal window.
--
Ryan J. Allen
QNX Software Systems |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: display problem
Posted: Aug 15, 2007 - 10:22 PM
|
|
|
|
hello,
thank you ryan for your support.
I forgot to say that I'm a newbie in QNX world, so please could expand your
answer please.
You said to run the executable from a terminal window, is that means to only
write the name of the executable in a terminal window and it will work?
Maybe more details of what I'm doing could clear some stuff for you.
I'm trying to develop drivers for national instruments PCI-6025E board. I'm
using MHDDK. I'm developping the application in QNX IDE Momentics suite 1.4
running on WinXP. I want to run my application on a target machine running
QNX Neutrino 6.3.0 SP3. I checked the option in QNX IDE to dowload the
executable on the target in a path that i specified.
After a successful build I found the executable into the directory on the
target machine but I can't run by double clicking it, I tried to launch it
from a terminl by typing the name of the executable without result.
So maybe there is another solution?
thank you.
"Ryan J. Allen" <ryallen@qnx.com> wrote in message
news:f9vlbh$dnf$1@inn.qnx.com...
Quote:
On 15/08/2007 2:08 PM, hamza wrote:
I'm running the program from the run buton in QNX IDE.
Run it from a terminal window.
--
Ryan J. Allen
QNX Software Systems
|
|
|
| |
|
|
|
 |
|
|
Post subject: Re: display problem
Posted: Aug 15, 2007 - 10:41 PM
|
|
|
|
Hmmm... Sounds like you're setting up a full launch configuration within
the IDE... I seem to remember there being an output flushing issue when
something is launched from within the IDE.
What happens if you add this line to your main routine?
setvbuf(stdout, NULL, _IONBF, 0);
Robert.
hamza wrote:
Quote:
hello,
thank you ryan for your support.
I forgot to say that I'm a newbie in QNX world, so please could expand your
answer please.
You said to run the executable from a terminal window, is that means to only
write the name of the executable in a terminal window and it will work?
Maybe more details of what I'm doing could clear some stuff for you.
I'm trying to develop drivers for national instruments PCI-6025E board. I'm
using MHDDK. I'm developping the application in QNX IDE Momentics suite 1.4
running on WinXP. I want to run my application on a target machine running
QNX Neutrino 6.3.0 SP3. I checked the option in QNX IDE to dowload the
executable on the target in a path that i specified.
After a successful build I found the executable into the directory on the
target machine but I can't run by double clicking it, I tried to launch it
from a terminl by typing the name of the executable without result.
So maybe there is another solution?
thank you.
"Ryan J. Allen" <ryallen@qnx.com> wrote in message
news:f9vlbh$dnf$1@inn.qnx.com...
On 15/08/2007 2:08 PM, hamza wrote:
I'm running the program from the run buton in QNX IDE.
Run it from a terminal window.
--
Ryan J. Allen
QNX Software Systems
|
|
|
| |
|
|
|
 |
|
|
Post subject: Re: display problem
Posted: Aug 21, 2007 - 04:59 PM
|
|
|
|
Robert Craig <rcraig_at_qnx@nowhere.com> wrote:
Quote:
Hmmm... Sounds like you're setting up a full launch configuration within
the IDE... I seem to remember there being an output flushing issue when
something is launched from within the IDE.
That was a problem many moons ago. Default launch configurations now
go through a pseudo-tty, and don't usually have the problem.
Quote:
What happens if you add this line to your main routine?
setvbuf(stdout, NULL, _IONBF, 0);
That needs to be added BEFORE any use of stdout, including before any printf().
-David
--
David Gibbs
QNX Training Services
dagibbs@qnx.com |
|
|
| |
|
|
|
 |
|
|