Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - No gcc on QNX 6.5.0??: (9 Items)
   
No gcc on QNX 6.5.0??  
Hi,
I am using a VMware image of QNX 6.5.0 with service pack 1  Runtime environment.
So I did a 'which gcc' in the terminal but it returned with a
"which: no gcc in ..."

Now normally should the gcc be in /usr/qnx630/host/qnx6/x86/usr/bin/gcc?

Because strangely, I do not have the directory /usr/qnx630/

Please help.

Thanks 
Re: No gcc on QNX 6.5.0??  
Also, I tried 'which qcc'... but no qcc exists either.
Re: No gcc on QNX 6.5.0??  
On 12-08-22 12:07 PM, Stephen Kwak wrote:
> Also, I tried 'which qcc'... but no qcc exists either.
>

You've installed the runtime image. If you want to do self-hosted x86 
self hosted development, you need to install the Neutrino SDP host.

http://www.qnx.com/download/feature.html?programid=23654

Regards,

Ryan Mansfield

Re: No gcc on QNX 6.5.0??  
> On 12-08-22 12:07 PM, Stephen Kwak wrote:
> > Also, I tried 'which qcc'... but no qcc exists either.
> >
> 
> You've installed the runtime image. If you want to do self-hosted x86 
> self hosted development, you need to install the Neutrino SDP host.
> 
> http://www.qnx.com/download/feature.html?programid=23654
> 
> Regards,
> 
> Ryan Mansfield
> 

Yes, I do have an SDP, and I am running the IDE to write a simple hello world program. I've also connected to the target
 using the IDE (I've followed the steps found in "http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.
momentics_quickstart/about.html".

 However, when I try to run the program in the IDE, I am getting an error: "Error: Attempting to exec a shared lib"

I was speculating that the libc.so were not matching.
Re: No gcc on QNX 6.5.0??  
Re: No gcc on QNX 6.5.0??  
On 12-08-22 12:30 PM, Stephen Kwak wrote:
> Yes, I do have an SDP, and I am running the IDE to write a simple hello world program. I've also connected to the 
target using the IDE (I've followed the steps found in "http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.
qnx.doc.momentics_quickstart/about.html".
>
>   However, when I try to run the program in the IDE, I am getting an error: "Error: Attempting to exec a shared lib"
>
> I was speculating that the libc.so were not matching.

Can you paste the output of  ntox86-readelf -hd <exec>?

Regards,

Ryan Mansfield

Re: No gcc on QNX 6.5.0??  
> On 12-08-22 12:30 PM, Stephen Kwak wrote:
> > Yes, I do have an SDP, and I am running the IDE to write a simple hello 
> world program. I've also connected to the target using the IDE (I've followed 
> the steps found in "http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/
> com.qnx.doc.momentics_quickstart/about.html".
> >
> >   However, when I try to run the program in the IDE, I am getting an error: 
> "Error: Attempting to exec a shared lib"
> >
> > I was speculating that the libc.so were not matching.
> 
> Can you paste the output of  ntox86-readelf -hd <exec>?
> 
> Regards,
> 
> Ryan Mansfield
> 

If you meant run that on the terminal on the target, it says I don't have the ntox86. 
Re: No gcc on QNX 6.5.0??  
On 12-08-22 02:23 PM, Stephen Kwak wrote:
>> On 12-08-22 12:30 PM, Stephen Kwak wrote:
>>> Yes, I do have an SDP, and I am running the IDE to write a simple hello
>> world program. I've also connected to the target using the IDE (I've followed
>> the steps found in "http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/
>> com.qnx.doc.momentics_quickstart/about.html".
>>>
>>>    However, when I try to run the program in the IDE, I am getting an error:
>> "Error: Attempting to exec a shared lib"
>>>
>>> I was speculating that the libc.so were not matching.
>>
>> Can you paste the output of  ntox86-readelf -hd <exec>?
>>
>> Regards,
>>
>> Ryan Mansfield
>>
>
> If you meant run that on the terminal on the target, it says I don't have the ntox86.

On your development host.

Regards,

Ryan Mansfield

Re: No gcc on QNX 6.5.0??  
/bin/sh: ntox86-readelf: cannot execute - No such file or directory