Question

I am intending to use Qt Jambi to write Qt GUIs in Java.

I have the latest Qt libraries installed on my Linux OS which is currently version 4.7.4. Qt Jambi is, however, only available as version 4.7.0 on the download page.

Now when I run my Qt application I get the following error:

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

So it seems there is no up-to-date version of Qt Jambi. Is this because of the fact that it is not officially supported any more?

As a solution one could build it from source but I wonder if it was then compatible with the installed version of Qt.

Now can I somehow mix those versions despite the error message? If not how do you achieve matching version numbers? As far as I know, Jambi is only available for Ubuntu as a binary package and on other Linux platforms has to be deployed along with the application jar (as fixed version).

Was it helpful?

Solution

Being a community driven fork, Qt-Jambi is slightly behind the official Qt in development.

Qt-Jambi should come pre-packaged with the correct Qt libraries, but it seems your application is referencing the most recent Qt libraries already installed on your system. You can't mix different versions, so you need to reference the same version of the Qt binaries.

If you aren't explicitly referencing the new Qt libraries in your build environment, you should modify the LD_LIBRARY_PATH environment variable to include the path with the correct libraries.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top