[Qt-interest] Running Qt 4.7 applications without Qt 4.6 interfering

Nikos Chantziaras realnc at arcor.de
Thu May 6 16:55:46 CEST 2010


On my Linux box, I've compiled the newly released Qt 4.7.0 Beta1 and 
installed it in my home directory.  The system's Qt version (/usr/lib) 
is Qt 4.6.2.  I've set my environment when building against 4.7 like this:

   export PATH="/home/realnc/opt/qt/4.7.0/bin:$PATH"
   export LD_LIBRARY_PATH="/home/realnc/opt/qt/4.7.0/lib"

When I try to run the app however, I get:

   Cannot mix incompatible Qt library (version 0x40602) with
   this library (version 0x40700)
   Aborted

When I move /usr/lib/qt4/ to somewhere else, then the application works 
OK; no warnings or errors.  But I can't do that for real, or else KDE 
will stop working.

What can I do?



More information about the Qt-interest-old mailing list