Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Changing QNX_HOST and QNX_TARGET does not work: (8 Items)
   
Changing QNX_HOST and QNX_TARGET does not work  
Hi,

I have Momentics IDE installed on D:\QNX650.

I have a set of includes and libraries that are different from default ones shipped with Momentics.

I put them into an other directory called D:\QNXABC and modified QNX_HOST to D:\QNXABC\host\win32\x86 and QNX_TARGET to 
D:\QNXABC\target\qnx6 from qwincfg.exe.

Although the global environment variables QNX_HOST and QNX_TARGET are changed, Momentics IDE still use default QNX_HOST 
and QNX_TARGET which point to directories under D:\QNX650.

Would you please tell the correct way to modify these settings?

Thanks,
Re: Changing QNX_HOST and QNX_TARGET does not work  
You can edit configuration file (xml) which has these defined
Where does your QNX_CONFIGURATION variable points to?

On 03/28/2011 04:29 PM, Gang Li wrote:
> Hi,
> 
> I have Momentics IDE installed on D:\QNX650.
> 
> I have a set of includes and libraries that are different from default ones shipped with Momentics.
> 
> I put them into an other directory called D:\QNXABC and modified QNX_HOST to D:\QNXABC\host\win32\x86 and QNX_TARGET 
to D:\QNXABC\target\qnx6 from qwincfg.exe.
> 
> Although the global environment variables QNX_HOST and QNX_TARGET are changed, Momentics IDE still use default 
QNX_HOST and QNX_TARGET which point to directories under D:\QNX650.
> 
> Would you please tell the correct way to modify these settings?
> 
> Thanks,
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post84344
> 
RE: Changing QNX_HOST and QNX_TARGET does not work  
In IDE global preference page "Windows -> Preferences -> QNX -> Select
Install:", choose the "Use Environment Variables" and restart your IDE.


-----Original Message-----
From: Gang Li [mailto:community-noreply@qnx.com] 
Sent: March-28-11 4:30 PM
To: general-ide
Subject: Changing QNX_HOST and QNX_TARGET does not work

Hi,

I have Momentics IDE installed on D:\QNX650.

I have a set of includes and libraries that are different from default
ones shipped with Momentics.

I put them into an other directory called D:\QNXABC and modified
QNX_HOST to D:\QNXABC\host\win32\x86 and QNX_TARGET to
D:\QNXABC\target\qnx6 from qwincfg.exe.

Although the global environment variables QNX_HOST and QNX_TARGET are
changed, Momentics IDE still use default QNX_HOST and QNX_TARGET which
point to directories under D:\QNX650.

Would you please tell the correct way to modify these settings?

Thanks,

Re: RE: Changing QNX_HOST and QNX_TARGET does not work  
I did so but when I start Momemtics IDE, it pops up a QNX Configuration Error windows and says QNX_CONFIGURATION is not 
defined correctly or the location it points to is not accessible.

However, if I still select 'Use Environment Variables' in QNX global settings and do not modify QNX_HOST and QNX_TARGET,
 the IDE can start without any problem.
RE: RE: Changing QNX_HOST and QNX_TARGET does not work  
See Elena's realy reply, where is your QNX_CONFIGURATION env var points
to. I understand you created "D:\QNXABC" but you need to define a QNX
installation to make it valid. You can copy your QNX650 configration xml
file to a new one and modify it.

BTW this is wired why do you have to muck around with the new QNX_HOST
and QNX_TARGET?

-----Original Message-----
From: Gang Li [mailto:community-noreply@qnx.com] 
Sent: March-28-11 5:04 PM
To: general-ide
Subject: Re: RE: Changing QNX_HOST and QNX_TARGET does not work

I did so but when I start Momemtics IDE, it pops up a QNX Configuration
Error windows and says QNX_CONFIGURATION is not defined correctly or the
location it points to is not accessible.

However, if I still select 'Use Environment Variables' in QNX global
settings and do not modify QNX_HOST and QNX_TARGET, the IDE can start
without any problem.

Re: RE: RE: Changing QNX_HOST and QNX_TARGET does not work  
I am working on a new platform and default headers and libs are incompatible with this new platform.

This is why I need to modify QNX_HOST and QNX_TARGET.

Or, it will be better if I can override these settings in my project. Can I do this?
RE: RE: RE: Changing QNX_HOST and QNX_TARGET does not work  
Not at the project level. This settings are global. You can use
different workspace for different platform.

-----Original Message-----
From: Gang Li [mailto:community-noreply@qnx.com] 
Sent: March-28-11 5:14 PM
To: general-ide
Subject: Re: RE: RE: Changing QNX_HOST and QNX_TARGET does not work

I am working on a new platform and default headers and libs are
incompatible with this new platform.

This is why I need to modify QNX_HOST and QNX_TARGET.

Or, it will be better if I can override these settings in my project.
Can I do this?

Re: RE: RE: RE: Changing QNX_HOST and QNX_TARGET does not work  
I made this.

I duplicated configuration.xml in the same directory and modified host and target settings. Now I can switch back and 
forth with different targets.

Thank you all.