From d73afeeafc7df8192508c1a5617944d303d5a0a2 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 19 Mar 2013 12:27:48 +0100 Subject: [PATCH] Assistant: Fix static linking for Linux. main.cpp:78: undefined reference to `qt_static_plugin_qsqlite()' The import for the DB plugin should now be generated by qmake. Change-Id: I9da25aea8667ca34221427236b8e1d36be77da8b Reviewed-by: Oswald Buddenhagen Reviewed-by: Karsten Heimrich (cherry picked from commit f212e46fe930ee89a8cb52beeeccc03369c015a1) Reviewed-by: Friedemann Kleint --- src/assistant/assistant/assistant.pro | 8 +------- src/assistant/assistant/main.cpp | 5 ----- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/assistant/assistant/assistant.pro b/src/assistant/assistant/assistant.pro index 1ad63f0..25e4238 100644 --- a/src/assistant/assistant/assistant.pro +++ b/src/assistant/assistant/assistant.pro @@ -107,13 +107,7 @@ mac { QMAKE_INFO_PLIST = Info_mac.plist } -contains(QT_CONFIG, static): { - SQLPLUGINS = $$unique(sql-plugins) - contains(SQLPLUGINS, sqlite): { - QTPLUGIN += qsqlite - DEFINES += USE_STATIC_SQLITE_PLUGIN - } -} +QTPLUGIN += qsqlite target.path=$$[QT_INSTALL_BINS] INSTALLS += target diff --git a/src/assistant/assistant/main.cpp b/src/assistant/assistant/main.cpp index fabad3b..a9074fc 100644 --- a/src/assistant/assistant/main.cpp +++ b/src/assistant/assistant/main.cpp @@ -73,11 +73,6 @@ QT_USE_NAMESPACE -#if defined(USE_STATIC_SQLITE_PLUGIN) - #include - Q_IMPORT_PLUGIN(qsqlite) -#endif - namespace { void -- 2.7.4