Skip navigation.
Home
The QNX Community Portal

View topic - import & compile linux application in QNX momentics

import & compile linux application in QNX momentics

General Help about QNX

import & compile linux application in QNX momentics

Postby zahraoh » Mon Nov 05, 2012 2:18 pm

Hi
I want to monitor some applications with QNX, but these are linux application. the IDE can not build it, I think because of makefile.
anybody can help me to compile and run this application?
thanks
zahraoh
New Member
 
Posts: 5
Joined: Mon Nov 05, 2012 2:07 pm

Re: import & compile linux application in QNX momentics

Postby maschoen » Mon Nov 05, 2012 2:23 pm

I'm not sure what you mean by monitoring a linux application with QNX.

Do you mean you want to compile linux code to run under QNX? If the IDE cannot build it, why? Are there compiler errors? Is something like an include file or library missing?
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: import & compile linux application in QNX momentics

Postby zahraoh » Mon Nov 05, 2012 2:52 pm

yes,I mean.
I want to run gzip. consider that I run QNX momentics on Win XP on WMware workstation, also QNX OS.
this app at first, needs to be configure. how i do it?
zahraoh
New Member
 
Posts: 5
Joined: Mon Nov 05, 2012 2:07 pm

Re: import & compile linux application in QNX momentics

Postby maschoen » Tue Nov 06, 2012 6:07 pm

zahraoh wrote:yes,I mean.
I want to run gzip. consider that I run QNX momentics on Win XP on WMware workstation, also QNX OS.
this app at first, needs to be configure. how i do it?


I don't use Momentics much and I don't know if it has gzip. I think that .zip files are usually used on Windows. However my ancient version of WinZip handles gzip'd files without blinking. Is that what you are asking? How can you unzip a gzipped file with Momentics?

You could always download the VMWare and the VM version of 6.5 and use it to do the unzipping that way.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: import & compile linux application in QNX momentics

Postby zahraoh » Tue Nov 06, 2012 8:46 pm

gzip is not my problem. I mean a linux application.
I want to profile some applications and their threads with momentics.
I try to work with QNX OS , but when I want to "make" it, it stops because of errors,
while it doesn't have error in the linux.

I have another question.
in linux we can install applications with "apt-get install ...", is anyway like this in QNX OS?
zahraoh
New Member
 
Posts: 5
Joined: Mon Nov 05, 2012 2:07 pm

Re: import & compile linux application in QNX momentics

Postby Tim » Wed Nov 07, 2012 5:30 pm

Can you cut/paste some of the errors here. It's hard to help without seeing the exact errors you are getting.

Tim

P.S. QNX doesn't install software in the way Linux does it. There is normally no need to install anything.
Tim
Senior Member
 
Posts: 1390
Joined: Wed Mar 10, 2004 12:28 am

Re: import & compile linux application in QNX momentics

Postby zahraoh » Thu Nov 08, 2012 8:03 am

we are trying to measure some application, it's not matter what application, just trying to measure CPU time, memory and so on..
using neutrino it's good way to measure, we run a program on neutrino and run qconn and on the other side using momentics we can measure it, we have problems for installing every programs, for example when tried to install gzip it give this error, every program give some error, like library error and on and on....
I say it again, it's not matter what program, just offer me some program that i can run or install on neutrino

error of installing gzip
Code: Select all
  CC       printf.o
  CC       printf-args.o
  CC       printf-parse.o
  CC       strerror.o
  CC       strerror-override.o
strerror-override.c:35: error: expected identifier or '(' before numeric constant
make[3]: *** [strerror-override.o] Error 1
make[3]: Leaving directory `/tmp/gzip-1.5/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/gzip-1.5/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/gzip-1.5'
make: *** [all] Error 2
zahraoh
New Member
 
Posts: 5
Joined: Mon Nov 05, 2012 2:07 pm

Re: import & compile linux application in QNX momentics

Postby maschoen » Thu Nov 08, 2012 5:17 pm

This really reminds me of the famous tech call where the computer owner doesn't understand why their computer isn't working during a power outage.

Why are you trying to compile a program that comes with QNX already compiled, if you don't know how to handle minor compiler errors? If you are trying to prove that there is code that compiles on Linux but not on QNX, you can stop right now. There's plenty of such code that won't compile for plenty of reasons.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: import & compile linux application in QNX momentics

Postby zahraoh » Sat Nov 10, 2012 5:11 am

maschoen wrote:This really reminds me of the famous tech call where the computer owner doesn't understand why their computer isn't working during a power outage.

Why are you trying to compile a program that comes with QNX already compiled, if you don't know how to handle minor compiler errors? If you are trying to prove that there is code that compiles on Linux but not on QNX, you can stop right now. There's plenty of such code that won't compile for plenty of reasons.


tnx alot for ur example....
we are not bug tracer or like that and dont want to hack QNX, we are working on software optimization, searching alot we found QNX a good way for measuring software and codes, if there is another way for measuring a software i'll be so glad to know...
you definitely know that for optimization i't needed to first measure something.... so we gone to QNX project...
first we write our codes on Momentics and measured it and optimized it, but on measuring applications we faced problems, is there any way to import all of an application on momentics??? we dont find this way... so we gone to use directly Neutrino and run our applications on it so we can measure and optimize....., but there was problems too...

it's not matter of application "gzip"
maschoen wrote:Why are you trying to compile a program that comes with QNX already compiled

our project title is "Optimizing some open source application" so we need to compile, but this minor compiler errors is due to differences of Neutrino and other linux kernels, so please show me some application that is compatible with Neutrino and I can work on optimization of it,

tnx alot
zahraoh
New Member
 
Posts: 5
Joined: Mon Nov 05, 2012 2:07 pm

Re: import & compile linux application in QNX momentics

Postby maschoen » Sat Nov 10, 2012 5:53 pm

zahraoh wrote:
maschoen wrote:T we are working on software optimization, searching alot we found QNX a good way for measuring software and codes, if there is another way for measuring a software i'll be so glad to know...
you definitely know that for optimization i't needed to first measure something.... so we gone to QNX project...
first we write our codes on Momentics and measured it and optimized it, but on measuring applications we faced problems, is there any way to import all of an application on momentics??? we dont find this way... so we gone to use directly Neutrino and run our applications on it so we can measure and optimize....., but there was problems too...


If this is what you are trying to do, and you don't know how to handle minor compiler errors, I doubt that there is anything we can do for you here.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest