Archive for August, 2008

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.



PyDev – One of my favorite plugins for Eclipse

August 28, 2008

While programming in Python I use most of the time the Python perspective provided by the PyDev plug in for Eclipse. PyDev is the abbreviation of Python Development Environment and available from This post outlines the steps installing PyDev and the Python lint pylint.


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.


TFPT reports: Unable to determine the workspace.

August 14, 2008

Using TFPT from Microsoft Team Foundation PowerTools December 2006 with this or a similar command

> TFPT.exe /online

fails with the message

Unable to determine the workspace.

If this is the case for a workspace created with Visual Studio 2008 try to change the workspace from Visual Studio 2005. Even only changing the comment was sufficient in my case. After this change everything works again from TPFT and VS 2008, too.

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:

Often used pkgsrc commands

August 14, 2008

This my memo where I store the commands I’m using when building packages with pkgsrc (

Determining the package dependencies:
$ bmake show-depends-pkgpath

Finding build references to a given package, e.g. libdrm:
$ egrep ‘libdrm|xf86driproto’ */*/

All the available targets are documented in The pkgsrc make target reference – NetBSD Wiki.

This is used to rebuild a patched package:
bmake distinfo && bmake clean && bmake build

The following builds and install the package:
bmake distinfo && bmake clean && bmake package

QNX specific issues are discussed in the forum

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.