[Qt-creator] Cannot mix incompatible Qt libraries

Eike Ziller eike.ziller at nokia.com
Mon Feb 16 16:13:47 CET 2009


Hi,

On Feb 16, 2009, at 3:58 PM, ext Bryan Greenway wrote:

> As suggested, I ran an ldd to see the libraries reported used by my  
> program.  Here are the results:
>
[...]
>                 libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4  
> (0xb775b000)

libQtCore and libQtGui are taken from /usr/local/lib, but obviously  
libQtNetwork from /usr/lib.
The reason is probably that there is no /usr/local/lib/libQtNetwork.so  
installed.
Three possible solutions:
a) build the application completely against the Qt in /usr/lib
b) re-configure and build the Qt you installed in /usr/local to also  
contain libQtNetwork
c) don't use libQtNetwork in your application ;)

Best regards, Eike


>                 libQtCore.so.4 => /usr/local/lib/libQtCore.so.4  
> (0xb7597000)
>
> rbgreenway at rbgreenway-laptop:~/Dev/tcp$
>
> I’m still getting the “Cannot mix incompatible Qt libraries” fatal  
> error, so I’m guessing that something in the list above is  
> incorrect?  If so, how do I change it?
>
> Thanks,
>
> Bryan
> <ATT00001.txt>

-- 
Eike Ziller
Software Engineer
Nokia, Qt Software
Phone  +49 (0)30 6392 3255
Fax    +49 (0)30 6392 3256
E-mail eike.ziller at nokia.com








More information about the Qt-creator-old mailing list