Archive for the ‘QNX’ Category

Building Boost.Python 1.42 for QNX 6.4.1

June 8, 2010

Building the Boost C++ libraries ( for QNX is pretty straight forward. The build can be executed as described in the Boost documentation. I have performed the build of Boost 1.42 using QNX 6.4.1 installed in a virtual machine.

But there was a little tweak required to build the Boost.Python library. The problem is that python is located in /usr/qnx641/host/qnx6/x86/usr/bin/python but the required Python include files like Python.h are located in /usr/qnx641/target/qnx6/usr/include/python2.5. This setup is confusing the automatic detection of the include files used in the build process.

This can be fixed by providing the right include path, e.g by adding the following line to the file <boost_src_dir>/project-config.jam:

using python : 2.5 : /usr/qnx641/host/qnx6/x86/usr/bin/python : /usr/qnx641/target/qnx6/usr/include/python2.5 ;


Loading a Python module fails with the message “unknown symbol”

August 28, 2008

Using the import statement of Python to load a self build module sometimes fails. In my personal experience most of the time the problem was due to unresolved symbols in my .so modules. For QNX and many other POSIX compatible systems like GNU/Linux Python uses dlopen to load the dynamic libraries aka modules.


Debugger is failing to start with a time out

August 28, 2008

In case you get only this information in the view of Eclipse or Momentics IDE named Debug:

Thread[0] 1 <symbol is not available>

The corresponding source is displayed as:

No source available for “”

[View Disassembly …]

The launch of the target is terminated by a time out.


Adding Mylyn and PyDev to QNX Momentics IDE

August 14, 2008

A useful extension to Eclipse and therefore QNX Momentics is Mylyn ( It helps to organize your actual task in the perfect way. Give it a try!

To install it add for IDE 4.5 (Tau) the Eclipse 3.3 update site to Help->Software Updates->Find and install… . Select the radio button named “Search for new features to install” and click Next. Then it is possible to add a “New Remote Site…”.

For most distributions of Eclipse, there should already be a “Europa Discovery Site” defined in the Update Manager. Otherwise you can add the following URL as a remote update site in the update manager.

See Eclipse Help for general information about using Update Manager.

To get the latest version of Mylyn you may add the Mylyn update site, too. This is the necessary URL:

Next important extension is PyDev ( This is the URL for the remote update site:

Building libcURL for QNX 6.3.2 and Windows XP from source

August 14, 2008

To have access on files using FTP, HTTP and directly from file system I use the free library libcurl. Another important aspect is portability as the application should work on QNX using qcc/gcc 4.2.3 and on Windows using VC9/VS2008. So I give libcurl a try. The build process for libcURL is as stated in the documentation very straight forward. But there where two little pitfalls discovered when using VS2008.


Script fails with “No such file or directory”

July 9, 2008

While running a script it fails immediately with “No such file or directory“. Even a print or echo command in the second line of the script is ignored. The used program to process the script does exist and is running, too. In this case checking the line endings may help:

file nameofthescript

will report:

ISO-8859 English text, with CRLF line terminators

but expected is:

ISO-8859 English text

The problem are the CR/LF line endings. These are typically used from MS Windows applications. Correct the line endings using any editor. For MS Windows try the Notepad++ open source editor. It has a build-in menu item to fix the line endings: Format -> Convert to Unix.

QNX Momentics IDE Tau – Eclipse 3.2 with CDT 4 – Installation on Windows XP

July 3, 2008

This post is only a rough outline of installing a new IDE for QNX.

Download the Development Build of the IDE and the momentics-632-patch-for-profiler from

Follow the instructions on the Wiki page Builds_Tau_Integration

And get a faster and more useful IDE for QNX.

I would suggest to give the IDE some more memory in the qde.ini file change -Xmx512M to -Xmx700M.

Another tweak would to rename the eclipse/jre directory. This way the qde.exe does not find the embedded JRE 5 but instead the one installed on your system. So it is possible to benefit from the speedup from Java 6. In case you get any trouble you can rename the directory back again and QDE will start the next time with the embedded Java VM.

Afterwards I’ve updated binutils and gcc, too. These are the download locations I used:

I follow the instructions at

the obvious required change is to use 4.2.3 as the version number.

and later on:

I hope that you enjoy the IDE, too. Now I’m waiting for CDT 5.0 …