[Qt-creator] FW: Cannot mix incompatible Qt libraries

Daniel Molkentin daniel.molkentin at nokia.com
Mon Feb 16 16:18:32 CET 2009


ext Bryan Greenway schrieb:
> rbgreenway at rbgreenway-laptop:~/Dev/Block1$ ldd Block1
>                 linux-gate.so.1 =>  (0xb8074000)
>                 libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0xb800c000)
^^ System Qt
>                 libQtXml.so.4 => /usr/local/lib/libQtXml.so.4 (0xb7fd9000)
>                 libQtGui.so.4 => /usr/local/lib/libQtGui.so.4 (0xb788d000)
^^ Custom Qt
>                 libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0xb778c000)
^^ System Qt

>                 libQtCore.so.4 => /usr/local/lib/libQtCore.so.4 (0xb75c9000)
^^ Custom Qt

This is bound to break. Which Qt have you told Qt to use? It could be 
that it picks up the System Qt one (it tries so by default if you 
complied Creator yourself) and tries to add the missing libs from your 
own installation. Any chance you have $QTDIR defined? try to remove it. 
Otherwise, simply point Creator to the Qt installed in /usr/local/ 
(Tools->Options->Qt4) and set this as default version (in the same 
dialog). Then rebuild your project (clean all, then rebuild all).

Cheers,
  Daniel

-- 
Daniel Molkentin, Software Engineer,
Nokia Qt Software, www.qtsoftware.com
Rudower Chaussee 13, DE-12489 Berlin



More information about the Qt-creator-old mailing list