On 02/27/2011 07:11 PM, Chris Browet wrote:
> Actually, merkaartor is not using sqlite3 but spatialite. If I'm not
> mistaken, spatialite embeds sqlite3, or is it not the case on linux and
> sqlite is a dependency of spatialite?

Then actually the proper fix would be to use the pkg-config info from
spatalite. See below - not tested, though.

As explanation: Using link_pkgconfig qmake will use the output of
pkg-config --libs as additional libraries to link with.


bzed@think ~debian/merkaartor% pkg-config --libs spatialite
-lspatialite -lsqlite3
bzed@think ~debian/merkaartor%

-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprints: ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F



+++ b/plugins/background/MSpatialiteBackground/MSpatialiteBackground.pro
@@ -17,4 +17,11 @@ win32 {
     INCLUDEPATH += $$COMMON_DIR/include
     LIBS += -L$$COMMON_DIR/lib
 }
-LIBS += -lspatialite
+
+unix {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += spatialite
+}
+win32 {
+    LIBS += -lspatialite
+}

_______________________________________________
Merkaartor mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/merkaartor

Reply via email to