Thread: [SailfishOS] Mapbox GL Native QML plugin
View Single Post
Posts: 644 | Thanked: 3,398 times | Joined on Aug 2016 @ Estonia
Originally Posted by m4r0v3r View Post
And another one :P

not quite sure whats wrong there, maybe something wrong in gcc6 setup. ill take another look tomorrow morning
I see that you went C++ route and not simple QML way.

I would suggest to install and just use MapboxMap together with the gesture area as in . Then you don't even need to include MapboxGL as a submodule, can use regular gcc, and its all very simple. mapboxgl-qml would register the module in the system and all should just work. Please report bugs if it doesn't.

C++ way, as you did, is also possible, but more complicated and will lead to all apps having different versions of the plugin (since you are compiling it in) and would end up having larger requirements in the root partition (everyone installing plugin under their /usr/share/harbour... folder). Note that QMaboxGL (which plugin interfaces), requires QLocation. So, there is no-go into Jolla Harbour until its allowed (Jolla's soon^TM comes into mind). So, I would suggest to go via QML plugin installation, enjoy programming and using it!

As for the error that you get, I think you are very close. You seem to miss c++14 in PRO configuration file, as I can deduce from compile messages. See

The Following User Says Thank You to rinigus For This Useful Post: