Hi,
i would like to request a patch, that would allow library compilation with a static QT Library:
additional define in in src/global.h, so QCP_LIB_DECL is empty if QT_STATIC_BUILD is set
#if defined(QT_STATIC_BUILD) # define QCP_LIB_DECL #elif defined(QCUSTOMPLOT_COMPILE_LIBRARY) # define QCP_LIB_DECL Q_DECL_EXPORT #elif defined(QCUSTOMPLOT_USE_LIBRARY) # define QCP_LIB_DECL Q_DECL_IMPORT #else # define QCP_LIB_DECL #endif
and in sharedlib-compilation.pro move the "shared" in CONFIG to a conditional block.
CONFIG += debug_and_release build_all static { CONFIG += static } else { CONFIG += shared }
Best,
Olaf