Project Home
Project Home
Trackers
Trackers
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 - qconfig under Linux: (8 Items)
   
qconfig under Linux  
Aside the eval 'qconfig...' trick, is there anything more user friendly to change version and to make it permanent.

Under Windows I can use the IDE 4.5.0 but still use gcc 3.3.5, but under Eclipse I use qconfig to use 6.3.2 but when I 
invoke qde ( even if I specify the path of 6.4.0's qde ) it seems to use the 6.3.2 IDE ( as show by the splash screen ).


Is it normal that QDE doesn't show up in any menu.  I have to open a terminal and start QDE from there.
Re: qconfig under Linux  
Assuming I understand you question correctly:


On Linux you set 4 environment variables (plus PATH is needed) that IDE needs, in your .profile and when you run qde it 
will use them to pick between 6.3.2 and 6.4.
If you want a menu you have to create it manually (Applications->Add/Remove...), it depends on your system (installer 
does not create one for Ubuntu for example).
Or you can create script qde640 (by copying qde script from QNX_HOST/bin and adding those env vars)
- which always would run qde pointing to 640 installation. See env vars on wiki FAQ
http://community.qnx.com/sf/wiki/do/viewPage/projects.ide/wiki/IDEGeneralFAQ


Mario Charest wrote:
> Aside the eval 'qconfig...' trick, is there anything more user friendly to change version and to make it permanent.
> 
> Under Windows I can use the IDE 4.5.0 but still use gcc 3.3.5, but under Eclipse I use qconfig to use 6.3.2 but when I
 invoke qde ( even if I specify the path of 6.4.0's qde ) it seems to use the 6.3.2 IDE ( as show by the splash screen )
.
> 
> Is it normal that QDE doesn't show up in any menu.  I have to open a terminal and start QDE from there.
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post22381
> 
RE: qconfig under Linux  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: February-17-09 2:54 PM
> To: general-ide
> Subject: Re: qconfig under Linux
> 
> Assuming I understand you question correctly:
> 
> 
> On Linux you set 4 environment variables (plus PATH is needed) that IDE
> needs, in your .profile and when you run qde it will use them to pick
> between 6.3.2 and 6.4.
> If you want a menu you have to create it manually (Applications-
> >Add/Remove...), it depends on your system (installer does not create
> one for Ubuntu for example).

Ok

> Or you can create script qde640 (by copying qde script from
> QNX_HOST/bin and adding those env vars)
> - which always would run qde pointing to 640 installation. See env vars
> on wiki FAQ
> http://community.qnx.com/sf/wiki/do/viewPage/projects.ide/wiki/IDEGener
> alFAQ

Ok thanks. Coming from  Windows I was looking at something similar to qwincfg.exe

I will rephrase the question that didn't get answered.

On windows I always start QDE from 4.5 (in the Start Menu) and the version is confirm by the splash screen, even if I 
previously use qwincfg.exe to point to 6.3.2.  That tells me I'm using the latest IDE from 6.4.0 but the all the build 
tools of 6.3.2.  On Linux I set the environment variable to point to 6.3.2, except QNX_JAVAHOME which still point to the
 640 directory. I start qde, but that give me the 4.0.1 IDE.  I try to use the IDE from 6.4.0 by typing /opt/qnx640/....
/qde but no difference.    How can I use the 4.5.0 IDE but the 6.3.2 build tools.


> 
> 
> Mario Charest wrote:
> > Aside the eval 'qconfig...' trick, is there anything more user
> friendly to change version and to make it permanent.
> >
> > Under Windows I can use the IDE 4.5.0 but still use gcc 3.3.5, but
> under Eclipse I use qconfig to use 6.3.2 but when I invoke qde ( even
> if I specify the path of 6.4.0's qde ) it seems to use the 6.3.2 IDE (
> as show by the splash screen ).
> >
> > Is it normal that QDE doesn't show up in any menu.  I have to open a
> terminal and start QDE from there.
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post22381
> >
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post22383
> 
Re: qconfig under Linux  
If you run just qde it picks it from the PATH
if you run it from /opt/qnx640/host/linux/x86/usr/bin/qde it will bring IDE from QNX_HOST again.
So either modify the script to set QNX_HOST in there as I recommended or create another script that does it.

#!/bin/sh
QNX_VER=qnx630
MAKEFLAGS=-I/opt/$QNX_VER/target/qnx6/usr/include
QNX_CONFIGURATION=/etc/qnx
QNX_HOST=/opt/$QNX_VER/host/linux/x86
QNX_JAVAHOME=/opt/$QNX_VER/_jvm
QNX_TARGET=/opt/$QNX_VER/target/qnx6
p1=`echo $PATH | sed -e "s?$QNX_HOST/usr/bin:??" -e "s?/etc/qnx/bin:??"`
PATH=$QNX_HOST/usr/bin:$p1

export MAKEFLAGS
export QNX_HOST
export QNX_TARGET
export QNX_CONFIGURATION

export LD_LIBRARY_PATH=$QNX_HOST/usr/lib:$LD_LIBRARY_PATH
/opt/qnx640/host/linux/x86/usr/qde/eclipse/qde "$@"  #runs IDE 4.5 targeting 6.3.2


Mario Charest wrote:
> 
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: February-17-09 2:54 PM
>> To: general-ide
>> Subject: Re: qconfig under Linux
>>
>> Assuming I understand you question correctly:
>>
>>
>> On Linux you set 4 environment variables (plus PATH is needed) that IDE
>> needs, in your .profile and when you run qde it will use them to pick
>> between 6.3.2 and 6.4.
>> If you want a menu you have to create it manually (Applications-
>>> Add/Remove...), it depends on your system (installer does not create
>> one for Ubuntu for example).
> 
> Ok
> 
>> Or you can create script qde640 (by copying qde script from
>> QNX_HOST/bin and adding those env vars)
>> - which always would run qde pointing to 640 installation. See env vars
>> on wiki FAQ
>> http://community.qnx.com/sf/wiki/do/viewPage/projects.ide/wiki/IDEGener
>> alFAQ
> 
> Ok thanks. Coming from  Windows I was looking at something similar to qwincfg.exe
> 
> I will rephrase the question that didn't get answered.
> 
> On windows I always start QDE from 4.5 (in the Start Menu) and the version is confirm by the splash screen, even if I 
previously use qwincfg.exe to point to 6.3.2.  That tells me I'm using the latest IDE from 6.4.0 but the all the build 
tools of 6.3.2.  On Linux I set the environment variable to point to 6.3.2, except QNX_JAVAHOME which still point to the
 640 directory. I start qde, but that give me the 4.0.1 IDE.  I try to use the IDE from 6.4.0 by typing /opt/qnx640/....
/qde but no difference.    How can I use the 4.5.0 IDE but the 6.3.2 build tools.
> 
> 
>>
>> Mario Charest wrote:
>>> Aside the eval 'qconfig...' trick, is there anything more user
>> friendly to change version and to make it permanent.
>>> Under Windows I can use the IDE 4.5.0 but still use gcc 3.3.5, but
>> under Eclipse I use qconfig to use 6.3.2 but when I invoke qde ( even
>> if I specify the path of 6.4.0's qde ) it seems to use the 6.3.2 IDE (
>> as show by the splash screen ).
>>> Is it normal that QDE doesn't show up in any menu.  I have to open a
>> terminal and start QDE from there.
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post22381
>>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post22383
>>
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post22389
> 
RE: qconfig under Linux  
That works, but I must be missing something because with 4.6.0 and start qde directly from there I do get 4.6.0 and not 
4.0.1. Oh well, I now created three scripts, qde400 qde450 and qde460.  Everything's peachy.

Thanks Elena!

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: February-17-09 4:04 PM
> To: general-ide
> Subject: Re: qconfig under Linux
> 
> If you run just qde it picks it from the PATH
> if you run it from /opt/qnx640/host/linux/x86/usr/bin/qde it will bring
> IDE from QNX_HOST again.
> So either modify the script to set QNX_HOST in there as I recommended
> or create another script that does it.
> 
> #!/bin/sh
> QNX_VER=qnx630
> MAKEFLAGS=-I/opt/$QNX_VER/target/qnx6/usr/include
> QNX_CONFIGURATION=/etc/qnx
> QNX_HOST=/opt/$QNX_VER/host/linux/x86
> QNX_JAVAHOME=/opt/$QNX_VER/_jvm
> QNX_TARGET=/opt/$QNX_VER/target/qnx6
> p1=`echo $PATH | sed -e "s?$QNX_HOST/usr/bin:??" -e
> "s?/etc/qnx/bin:??"`
> PATH=$QNX_HOST/usr/bin:$p1
> 
> export MAKEFLAGS
> export QNX_HOST
> export QNX_TARGET
> export QNX_CONFIGURATION
> 
> export LD_LIBRARY_PATH=$QNX_HOST/usr/lib:$LD_LIBRARY_PATH
> /opt/qnx640/host/linux/x86/usr/qde/eclipse/qde "$@"  #runs IDE 4.5
> targeting 6.3.2
> 
> 
> Mario Charest wrote:
> >
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: February-17-09 2:54 PM
> >> To: general-ide
> >> Subject: Re: qconfig under Linux
> >>
> >> Assuming I understand you question correctly:
> >>
> >>
> >> On Linux you set 4 environment variables (plus PATH is needed) that
> IDE
> >> needs, in your .profile and when you run qde it will use them to
> pick
> >> between 6.3.2 and 6.4.
> >> If you want a menu you have to create it manually (Applications-
> >>> Add/Remove...), it depends on your system (installer does not
> create
> >> one for Ubuntu for example).
> >
> > Ok
> >
> >> Or you can create script qde640 (by copying qde script from
> >> QNX_HOST/bin and adding those env vars)
> >> - which always would run qde pointing to 640 installation. See env
> vars
> >> on wiki FAQ
> >>
> http://community.qnx.com/sf/wiki/do/viewPage/projects.ide/wiki/IDEGener
> >> alFAQ
> >
> > Ok thanks. Coming from  Windows I was looking at something similar to
> qwincfg.exe
> >
> > I will rephrase the question that didn't get answered.
> >
> > On windows I always start QDE from 4.5 (in the Start Menu) and the
> version is confirm by the splash screen, even if I previously use
> qwincfg.exe to point to 6.3.2.  That tells me I'm using the latest IDE
> from 6.4.0 but the all the build tools of 6.3.2.  On Linux I set the
> environment variable to point to 6.3.2, except QNX_JAVAHOME which still
> point to the 640 directory. I start qde, but that give me the 4.0.1
> IDE.  I try to use the IDE from 6.4.0 by typing /opt/qnx640/..../qde
> but no difference.    How can I use the 4.5.0 IDE but the 6.3.2 build
> tools.
> >
> >
> >>
> >> Mario Charest wrote:
> >>> Aside the eval 'qconfig...' trick, is there anything more user
> >> friendly to change version and to make it permanent.
> >>> Under Windows I can use the IDE 4.5.0 but still use gcc 3.3.5, but
> >> under Eclipse I use qconfig to use 6.3.2 but when I invoke qde (
> even
> >> if I specify the path of 6.4.0's qde ) it seems to use the 6.3.2 IDE
> (
> >> as show by the splash screen ).
> >>> Is it normal that QDE...
View Full Message
Re: qconfig under Linux  
Because with 4.6.0 you running "qde" binary not script. Script is generated by installer.

Mario Charest wrote:
> That works, but I must be missing something because with 4.6.0 and start qde directly from there I do get 4.6.0 and 
not 4.0.1. Oh well, I now created three scripts, qde400 qde450 and qde460.  Everything's peachy.
> 
> Thanks Elena!
> 
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: February-17-09 4:04 PM
>> To: general-ide
>> Subject: Re: qconfig under Linux
>>
>> If you run just qde it picks it from the PATH
>> if you run it from /opt/qnx640/host/linux/x86/usr/bin/qde it will bring
>> IDE from QNX_HOST again.
>> So either modify the script to set QNX_HOST in there as I recommended
>> or create another script that does it.
>>
>> #!/bin/sh
>> QNX_VER=qnx630
>> MAKEFLAGS=-I/opt/$QNX_VER/target/qnx6/usr/include
>> QNX_CONFIGURATION=/etc/qnx
>> QNX_HOST=/opt/$QNX_VER/host/linux/x86
>> QNX_JAVAHOME=/opt/$QNX_VER/_jvm
>> QNX_TARGET=/opt/$QNX_VER/target/qnx6
>> p1=`echo $PATH | sed -e "s?$QNX_HOST/usr/bin:??" -e
>> "s?/etc/qnx/bin:??"`
>> PATH=$QNX_HOST/usr/bin:$p1
>>
>> export MAKEFLAGS
>> export QNX_HOST
>> export QNX_TARGET
>> export QNX_CONFIGURATION
>>
>> export LD_LIBRARY_PATH=$QNX_HOST/usr/lib:$LD_LIBRARY_PATH
>> /opt/qnx640/host/linux/x86/usr/qde/eclipse/qde "$@"  #runs IDE 4.5
>> targeting 6.3.2
>>
>>
>> Mario Charest wrote:
>>>> -----Original Message-----
>>>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>>>> Sent: February-17-09 2:54 PM
>>>> To: general-ide
>>>> Subject: Re: qconfig under Linux
>>>>
>>>> Assuming I understand you question correctly:
>>>>
>>>>
>>>> On Linux you set 4 environment variables (plus PATH is needed) that
>> IDE
>>>> needs, in your .profile and when you run qde it will use them to
>> pick
>>>> between 6.3.2 and 6.4.
>>>> If you want a menu you have to create it manually (Applications-
>>>>> Add/Remove...), it depends on your system (installer does not
>> create
>>>> one for Ubuntu for example).
>>> Ok
>>>
>>>> Or you can create script qde640 (by copying qde script from
>>>> QNX_HOST/bin and adding those env vars)
>>>> - which always would run qde pointing to 640 installation. See env
>> vars
>>>> on wiki FAQ
>>>>
>> http://community.qnx.com/sf/wiki/do/viewPage/projects.ide/wiki/IDEGener
>>>> alFAQ
>>> Ok thanks. Coming from  Windows I was looking at something similar to
>> qwincfg.exe
>>> I will rephrase the question that didn't get answered.
>>>
>>> On windows I always start QDE from 4.5 (in the Start Menu) and the
>> version is confirm by the splash screen, even if I previously use
>> qwincfg.exe to point to 6.3.2.  That tells me I'm using the latest IDE
>> from 6.4.0 but the all the build tools of 6.3.2.  On Linux I set the
>> environment variable to point to 6.3.2, except QNX_JAVAHOME which still
>> point to the 640 directory. I start qde, but that give me the 4.0.1
>> IDE.  I try to use the IDE from 6.4.0 by typing /opt/qnx640/..../qde
>> but no difference.    How can I use the 4.5.0 IDE but the 6.3.2 build
>> tools.
>>>
>>>> Mario Charest wrote:
>>>>> Aside the eval 'qconfig...' trick, is there anything more user
>>>> friendly to change version and to make it...
View Full Message
Re: qconfig under Windows  
In order to have multiple instances of the IDE, each configured using a different version of the toolset ( 6.3.2, 6.4.0)
, i have been using shorcuts with qconfig -e  ... -r ...  However this create a text window into which qconfig runs.  
Not a real issue but is there a way of getting rid of this.


Would be nice if the installer could create menu-item for the various tool set already present on the machine.
RE: qconfig under Windows  
You could try using "start qde" as the command rather than just qde (or
what ever you use).