Unsolved Is is possible to link a customized static libraries to dynamic libarries of LibQtCore and libQtGui?
-
I have a internal memory manager code , which is made as statically linked library . is is possible to link a customized static libraries to dynamic libarries of LibQtCore and libQtGui
-
Hi,
If you mean linking your application against static and dynamic dependencies, then yes you can.
-
This post is deleted! -
-
Then you have a static build of Qt, in that case use that version of Qt to build Qwt.
-
I tried the my tool crahes I did following steps
1)checkout code for qwt from my central repositry
2) It is for linux centos platform
3) set the qmake path where Qt Static libs have been built
for example
setenv PATH "path to qmake where where Qt Static libs have been built"
3) build the dynamic librariesbut in this case my tools crahes
One very basic question , If I have memory manger which is made as static library
- libmymem.a
- libgui.a application gui code is static library
- we are using shared libraries of .so libQtgui.so , libQtCore.so , libqwt.so libscintilla.so
Is it not conceptually possible the the libgui.a can access the code from libmymem.a even if we use the shared libraries from of Qt libQtgui.so , libQtCore.so , libqwt.so libscintilla.so
-----------Also how can verify the newly compiled qwt.so and qscintilla.so is taking QT symbols from my static library of QT libQtCore.a and libQtGui.a
-
What do you mean by crash ?
-
Segmentation fault . i want to make
- Shared libraries QWt and Qscintilla an it should not depend on /include the code of QtCore and QtGui
- Static libraries QWt and Qscintilla an it should not depend on /include the code of QtCore and QtGui
If i give
#QT -= gui core
#LIBS -= -lQtGui -lQtCore
option in qwtconfig.pri then my compliation for qwt fails -
@Qt-Enthusiast said in is is possible to link a customized static libraries to dynamic libarries of LibQtCore and libQtGui:
Also how can verify the newly compiled qwt.so and qscintilla.so is taking QT symbols from my static library of QT libQtCore.a and libQtGui.a
I already told you in your previous thread not to do that! What you're attempting is to duplicate the symbols (i.e. putting
QtCore
both inqwt
andscintilla
) and then link both of those shared objects.It's a mess! Symbols are getting hidden silently (or overwritten on Linux), globals are duplicated (or overwritten on Linux) and initialized in different binaries (without guarantee for order of initialization) ...
Even if you're able to make it work on Linux, which I really doubt, the moment you switch to Windows you're going to be neck deep in horse sh*t ... -
To add to @kshegunov, if you don't want any code from Qt in Qwt and Qsinctilla, why are you using them in the first place ?
-
I will a final executable in which libQtCore.a and libQGui.a and I will libQwt.so and libQscintall.so and as I mentioned the requirement is to make libQwt.so and libQscintall.so without having dependency on libQCore.so and libQtGui.so
-
Oh, boy ...