PDA

View Full Version : How to friend Qt app compiled&linked with Qt 4.8.4 on system with integrated Qt 4.8.6



pethead
3rd January 2015, 10:07
subj
I have my big project that written with Qt 4.8.4.
Now I purchased a new PC and install Kubuntu 14.10 based on Qt 4.8.6.
To develop my project I build from src Qt 4.8.4 and make install it.
I build my project successfully. But on run I have an error
Cannot mix incompatible qt library 0×40806 with this 0×40804.
Setting export LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.8.4/lib (was empy) can’t helps.
Is there a solution to run my application without rebuild my project with newly installed Qt 4.8.6 from sources?

Added after 1 56 minutes:

I tested run application on another PC with fresh installed Kubuntu, it runs! No mixed conflicts. There is same 4.8.6 integrated of Qt.

ChrisW67
6th January 2015, 02:50
Your application is likely finding a Qt 4.8.4 library, or another library that is built against it e.g. Qwt, and this is getting loaded before the equivalent 4.8.6 library. It works on the other machine because the older Qt version, or other library, is not present so the search continues and finds the 4.8.6 library.

Use the ldd against your program and/or other used libraries (in the environment you expect it to run from) to see which libraries each is intending to load.