legotron
legotron

Reputation: 61

Using several versions of qt-libs in single application

My main application was compiled by Qt V1 (ex. 4.7.4). (requires QtCore 4.7.4) Shared library which main app uses was compiled by Qt V2 (ex.4.8.2). (requires QtCore 4.8.2) I can't recompile library, and I don't want to recompile main app. Is it possible to deploy my application with several versions of QtCore, QtGui etc.?

Upvotes: 0

Views: 332

Answers (1)

Employed Russian
Employed Russian

Reputation: 213754

Is it possible to deploy my application with several versions of QtCore, QtGui etc.?

Short answer: no.

Long answer: if you planned for this in advance, you could have used the "shared library which uses Qt V2" (let's call int libFoo.so) indirectly via dlopen and dlsym. If you did do that, you could dlopen("libFoo.so", RTLD_LOCAL), and then the symbols from "Qt V2" would not be visible to the main executable. This is a very shaky ground, but in theory it should work.

Upvotes: 2

Related Questions