Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
wiki2858: IDEGeneralFAQ (Version 14)

What is IDE?#

IDE is an acronym for Integrated Development Environment. This FAQ is about QNX Momentics IDE 4.x.

Where does IDE store user data?#

  • Configuration area: on windows C:/Documents and Settings/<user>/momentics, on linux /home/<user>/.momentics.
  • Workspace folder (User choice): default location windows C:/ide-4.5-workspace, on linux /home/<user>/ide-4.5-workspace.
  • IDE does not write anything to windows registry

Where is the log file?#

Log file is very useful for troubleshooting, it contains error messages that the user won't see in IDE itself, or has more detailed messages. Log file is in <workspace>/.metadata/.log. If it is not there - means IDE did not start. In this case a log is created in the configuration area, see above. If you still could not find it, you can start qde the with -consolelog option, which will output the log to the console.

Where IDE is installed?#

Normally IDE would be installed in $QNX_HOST/usr/qde/eclipse, i.e. "/opt/qnx640/host/linux/x86/usr/qde/eclipse" on linux. Qde launcher on linux installed in $QNX_HOST/usr/bin/qde (which should be in your PATH). For windows you can use launcher directly from Eclipse folder, i.e $QNX_HOST/usr/qde/eclipse/qde.exe. If you install standalone IDE it does not record its location anywhere, so you have to remember it (or search for qde).

Can IDE work from read-only installation?#

Yes, as long you create your workspace outside of the installation folder. See "Where does IDE store user data?".

IDE does not start. Help!#

The reasons could be the following:

  • Corrupted Installation - Check log file for "Cannot load bundle" message
  • Corrupted configuration area. You can remove this directory and try to restart again, see "Where does IDE store user data?".
  • Bad permissions on configuration area
  • Bad permissions on <workspace> folder
  • Corrupted <workspace> folder. Try to start in another workspace, see "How do I switch workspaces?".
  • Bad environment variable settings, see "Which environment variables does IDE use?"

How do I switch workspaces?#

Normally IDE would prompt you on startup for location of workspace.
You can switch it from IDE itself from "File->Switch Workspace" menu.
If you want to have prompt on startup (and you previously disabled it by selecting "Do not show me this dialog again") open "Window->Preferences" and select "General->Startup and Shutdown", then pick "Prompt for workspace on startup".
To pick a different workspace on startup from command line use "-d" option of "qde" launcher (or shortcut), or edit qde.ini in IDE installation and add it before -vmargs (Note: qde launcher on Linux does not pass arguments to eclipse launcher, you should edit qde.ini in this case)

IDE starts but I get licensing errors when trying to open any QNX perspectives or when creating projects. I check the license and it is valid!#

For Linux:
IDE should have LD_LIBRARY_PATH set for location containing license library. If you using usr/bin/qde script it automatically sets it for you, otherwise you have to set it from command line:
(IDE 4.0.x) export LD_LIBRARY_PATH=$QNX_HOST/usr/bin:$LD_LIBRARY_PATH
(IDE 4.5.x) export LD_LIBRARY_PATH=$QNX_HOST/usr/lib:$LD_LIBRARY_PATH

For Windows:
Ensure that "%QNX_HOST%\usr\bin" is included in the %PATH% environment variable. To verify where it appears in the $PATH variable, use the following command in a Windows command prompt: set %PATH%

Why am I unable to connect to my targets?#

For Linux: Disable "SELinux" if it is currently enabled.

  • Configure SELinux by launching "Desktop"->"System Settings"->"Security Level".
  • Click the SELinux tab, unselect "Enabled", then reboot your system.

For Windows: Check you outbound firewall settings.

Ensure that targets are not protected network.

Ensure that targets are running services that you expecting to connected to, i.e: for IDE it should run "qconn", for ftp - ftpd, for telnet - telnetd, for ssh - sshd, etc. Each of them has its own security settings which may prevent you accessing them and may run on different port than expected.

Which environment variables does IDE use?#

(6.4.0 example)
QNX_CONFIGURATION=/etc/qnx
QNX_HOST=/opt/qnx640/host/linux/x86
QNX_TARGET=/opt/qnx640/target/qnx6
PATH=$QNX_HOST/usr/bin:$PATH
MAKEFLAGS=-I$QNX_TARGET/usr/include

Note: qde script located in $QNX_HOST/bin/qde also uses QNX_HOST environment variable. To run specific IDE targeting different Momentics platform than default, you need to call qde binary directly, in this case LD_LIBRARY_PATH has to be set as well, see licensing question above on how to set it.

How to update IDE?#

You can use official update site which comes with IDE. Help->Find and Install...->Search for new feature to install->choose QNX Momentics Update Site and click update.

There is also an unofficial "experimental" update site that contains pre-release and maintenance bug fixes (updated monthly), for IDE 4.5.x location of this site is "https://www.qnx.com/account/updates/foundry27/ide/tau/" - you have to create a New Remote update site on the dialog above to add this update site to a list of update sites.

How do I integrate SVN into IDE?#

IDE 4.5 comes with preinstalled SVN plugins, to install SVN support in 4.0.x you can use Subversive plug-ins for Eclipse 3.3. See http://www.polarion.org/index.php?page=download&project=subversive .

What are the target connectivity options I have?#

  • Using TCP/IP and qconn - provides full set of remote target management tools
  • Using Serial and qconn - you can user debugger, remote terminal and file transfer via terminal
  • Using JTAG - you can use debugger if JTAG device supports gdb server. Besides debugger, you can access memory view, registers view and perform other JTAG device specific commands.
  • Using USB stick (Well any other non-direct file transfer). Most of IDE tools support post-mortem mode where you can import data transferred by using other media.

Can new IDE work with older targets (i.e. IDE 4.5 on target running 6.3.2)?#

Yes. But to have full functionality of the IDE you may need to install some target patches, such as qconn and librcheck (libmalloc). Download 6.3.2 Patches for IDE 4.5.x.

Can new IDE work with older Momentics tools (i.e. IDE 4.5 with host installation of 6.3.2)?#

Yes. You set your environment to work with older version and invoke new IDE using absolute path or from shortcut. But to have full functionality of the IDE you need to install some host patches, such as doc plugins, libprofilingS.a, qconn. Download 6.3.2 Patches for IDE 4.5.x.

Can I have two versions of Momentics installed on the same host and switch same version of IDE between them?#

Yes. You can set environment variables to point to different Momentics as in question above. However you SHOULD NOT use same workspace. If you do make sure a) In Window->Preferences->QNX selected Momentics installation matching your environment pick (it remembers it from workspace not from env vars) b) when you update IDE from update site make sure you pick correct Installation location for your plugins. Also never try to flip between two different versions of IDE (i.e. IDE 4.0 and IDE 4.5) using same workspace. You can only upconvert.

What is qconn?#

qconn is target agent (process) that has to be running on the target. It allows IDE to launch processes on target, browse file system, and receive target information. Without it running you can not do any target related tasks in IDE (but you can do host related task such as Edit Code and Build).

How do I update qconn?#

In the end the qconn binary should end up on your target machine, but if you are building OS images it has to be on your host machine first. When you update IDE to new version it has a qconn update as well, but you have to manually install it (Help-->Software Updates-->Qconn Update). This only installs qconn update on Host and only if it is newer. Alternately you can download it from foundry (latest qconn patch for Momentics 6.3.2).

Once you install it on host you have to update all your targets either by uploading a new version and storing in /usr/sbin/qconn (the usual place) and re-starting the process or updating target OS images and rebooting.

What should be installed/running on target so IDE can communicate with it?#

1) qconn - main target agent, running, nothing would work from IDE without it (unless you are using jtag) 2) dev-pty - running 3) pdebug - target debug agent, you cannot remotely debug without it. It does not have to be running, just be there in PATH accessible to qconn. 4) librcheck.so or libmalloc_g.so - runtime library for memory analysis tool 5) some sort of filesystem driver if you planning to use any of IDE tools, they usually need to create temporary files 6) serial driver or network drivers so IDE can communicate

How to Troubleshoot?#

  • Option 1: Look at IDE log file, <workspace>/.metadata/.log. It contains exceptions recorded during execution. Sometimes it has meaningful information.
  • Option 2: Search on the internet. You most likely hit qnx forum, cdt forum or eclipse forum which has your answer.
  • Option 3: If option 1 and 2 did not help, post a message on IDE forum

Back