View Single Post
Posts: 339 | Thanked: 1,623 times | Joined on Oct 2013 @ France
#20
Originally Posted by rinigus View Post
Let me know if there is any trouble. I'll continue meanwhile adding QML methods. Should be all there soon, I hope.
Perfect instructions !
I built it and ran it successfully on a Fedora workstation, with Qt5.7.1. Doing so, I found a typo on my Mapbox access token I used on previous tests, that may explain some errors I got then.

I only had to make a few changes to let it build:
Code:
diff --git a/app/mapbox-qml.pro b/app/mapbox-qml.pro
index fe7be45..d21fb3d 100644
--- a/app/mapbox-qml.pro
+++ b/app/mapbox-qml.pro
@@ -1,6 +1,6 @@
 TEMPLATE = app
 
-QT += qml quick location positioning
+QT += qml quick location positioning sql
 CONFIG += c++14
 
 SOURCES += src/main.cpp
@@ -10,7 +10,7 @@ RESOURCES += qml.qrc
 include(../mapbox-gl-qml.pri)
 
 INCLUDEPATH += ../../mapbox-gl-native/platform/qt/include ../../mapbox-gl-native/include
-LIBS += -L../../mapbox-gl-native/build -lqmapboxgl
+LIBS += -L../../mapbox-gl-native/build -lqmapboxgl -lz
 
 # Additional import path used to resolve QML modules in Qt Creator's code model
 QML_IMPORT_PATH =
The "-lz" part solves the "error adding symbols: DSO missing from command line" error I got.
The "sql" module in the QT line was needed to solve some linker error not finding some sqlite symbols (didn't write the exact message down).

It looks like that is what I need in my project.

So my next step would be to to see how I can add the route overlay on top of this map. So now, I get a lot things to read .

Thanks for the help.
 

The Following 3 Users Say Thank You to Zeta For This Useful Post: