qt - How to build shared libraries of qwt - how to prevent qmake from linking to QtCore and QtGui -
i have source code of qwt , while making shared libraries of qwt , want prevent qmake linking qtcore , qtgui
looking forward guidance
you can't. qwt uses qt, there's no way build shared library without linking qtcore/qtgui. import qt's symbols, has linked qtcore/qtgui import libraries - that's how qmake sets up. otherwise, linker have emit qwt library whole bunch of unresolved symbols, , wouldn't work - it'd crash on first reference qt symbol, given said symbol have address of zero.
to build without linking qt has built static library. linked qt when executable linked.
Comments
Post a Comment