Wednesday, February 24, 2010

Xilinx, Debian, Kde and symbol lookup error (

If like me you've hit this error :
symbol lookup error: /usr/lib/kde4/plugins/styles/ undefined symbol: _ZN8QPainter10drawPixmapERK7QPointFRK7QPixmap

while trying to run Xilinx ISE Webpack on Debian, with KDE,
and you are now searching for a way to fix this, then the
solution is quite simple.

Just put this line

somewhere in the beginning of whatever script you are using
to start Xilinx. I've put it on the start of
(which if you used the default installation location is in
/opt/Xilinx/11.1/ and if you have a 64bit system the script
is named

The reason for this whole mess is that Xilinx packs a set of
the Qt libraries, which try to load plugins from the system
due to the QT_PLUGIN_PATH environment variable.
But since the two versions are ABI incompatible, the result
is the symbol lookup error mentioned above.