Registered Member
|
Dear All
Maybe the question is a old topic but I am eager to obtain a affirmative answer for it otherwise everyday searching google and cannot figure out which is the truth. Basically, my story is to use marble widget with Qt to develop desktop software to display OSM maps. I have successfully compile and run marble with Qt4. Now I need to try with Qt5 for some reasons. 1. Is now the stable released marble support Qt5? If only a ongoing branch working on Qt5, where is it and how should I give it a try. 2. I have ldd the /usr/lib/libmarblewidget.so.18 and found which is still looking for qt4. So I checked the CMakeLists.txt in marble source and realized marble preferred to link Qt4 first and would try to link to Qt5 if Qt4 not found. So should I change the CMakeLists.txt to link to Qt5? Is this the right way?
Thanks guys. Best regards, dalishi |
Registered Member
|
Here is how I managed to use marble with Qt5.
1. Download marble stable version (have not tried the master one).
2. Change the CMakeLists.txt. There are two places you will need to change. For marble_stable/sources/CMakeLists.txt, add the followings:
For marble_stable/sources/src/apps/marble-touch/CMakeLists.txt, add the followings:
3. Build marble with Qt5 by setting -DQT5BUILD=TRUE
4. After you install generated libmarblewidget, compile the example code with Qt5 also.
5. Done. When you run the hello-marble, remember to have the map theme file in the same directory where you run the executables. Note: you will have to copy the whole data folder (i.e. /marble_stable/sources/data) into the directory not just the "earth/openstreetmap/openstreetmap.dgml" file. But is this the correct way to do it? |
Registered Member
|
I'd say clone and compile the master branch, marble has been ported to Qt5/KF5 already long ago...
There's no need to modify CMakeLists.txt or anything. Or as the KF5 based marble will be part of the 15.08 release, use "Applications/15.08", or download the Beta from here: http://download.kde.org/unstable/applic ... 07.80/src/ |
KDE Developer
|
wolfi323 is right, please use a more recent branch. Qt 5 is our preferred Qt version now. At the moment we have
Most Marble developers are using Qt 5 by now. We plan to keep Qt 4 support though as long as it doesn't get in the way too much. I expect that using Qt 4 will be an option for some years still (at the very least in some LTS branch). Nevertheless I suggest switching to Qt 5 if you have the option to choose. |
Registered Member
|
Thanks both, wolfi323 and Earthwings. I am now quite clear about the development status of marble with Qt 5.
Just some queries (I hope it is not a stupid one): 1. Next time where can I find the relative info like feature changes, variables changes between different branch version numbers? 2. From marble website, I can only find this stable release which is not preferred Qt5 build as I posted in my original post.
Is there a new stable release of Qt5 version of marble soon? Thanks both. Have a good day~ |
KDE Developer
|
The Marble website indicates that Applications/15.04 is the current stable branch. See the bottom of https://marble.kde.org/changelog.php and https://marble.kde.org/sources.php. I must admit that I corrected the latter just yesterday after reading your post here
The branch Applications/15.08 will become the new stable branch in about three weeks on August 19th, see https://techbase.kde.org/Schedules/Appl ... e_Schedule |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]