Registered Member
|
Hello all.
Following the code checkout procedure outlined here: marble.kde.org/sources.php . Marble compilation fails on Qt5. Is work being done on making Marble compatible with Qt5? |
Administrator
|
While I do not know about the Qt only version of Marble, the KDE version of Marble uses kdelibs, which is still being ported to Qt 5 as part of the KDE Frameworks effort.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
KDE Developer
|
We have a qt5 branch now with ongoing work to support Qt 5. See also viewtopic.php?f=217&t=112088
|
Registered Member
|
Any update on Marble/QT5 compatibility? I got the latest GIT repository today and it didn't work, but it seems like it is mostly ready looking at the git history. Or am I doing something wrong?
C:\Projects\build>cmake -G "MinGW Makefiles" -DQTONLY=ON -DCMAKE_BUILD_TYPE=Release .. -- The C compiler identification is GNU 4.8.0 -- The CXX compiler identification is GNU 4.8.0 -- Check for working C compiler: C:/Qt/Qt5.1.1/Tools/mingw48_32/bin/gcc.exe -- Check for working C compiler: C:/Qt/Qt5.1.1/Tools/mingw48_32/bin/gcc.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: C:/Qt/Qt5.1.1/Tools/mingw48_32/bin/g++.exe -- Check for working CXX compiler: C:/Qt/Qt5.1.1/Tools/mingw48_32/bin/g++.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - not found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found CMake Error at C:/Qt/cmake-2.8.11.2-win32-x86/share/cmake-2.8/Modules/FindQt4.cm ake:1382 (message): Found unsuitable Qt version "5.1.1" from C:/Qt/Qt5.1.1/5.1.1/mingw48_32/bin/qmake.exe, this code requires Qt 4.x Call Stack (most recent call first): CMakeLists.txt:253 (find_package) -- Configuring incomplete, errors occurred! |
Registered Member
|
Currently you need to use the qt5 branch and invoke cmake like this:
cmake <srcdir> -DQTONLY=1 -DQT5BUILD=1 |
Registered Member
|
Hi,
I'm new to Marble and KDE, and I also need to use Marble with Qt5. Have anyone had any success with building and installing for Qt5? mzanetti; I can't seem to find that branch, could you please provide a link or point me in the right direction? Thanks |
Registered Member
|
|
Registered Member
|
I received the following errors while trying to build with Qt5:
C:\source\libs\Marble_Qt5\marble>cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=C:\source\libs\Marble_Qt5\marble-build -DQTONLY=TRUE -DQT5BUILD =TRUE CMake Error at src/CMakeLists.txt:23 (STRING): string sub-command LENGTH requires two arguments. -- Please include plugins in the QML_IMPORT_PATH environment variable to use Marble's Qt declarative plugins. -- Note: Marble Desktop does not make use of declarative plugins. Ignore the message above if you only intend to use the Desktop version. -- Could NOT find Phonon (missing: PHONON_INCLUDE_DIR PHONON_LIBRARY) -- Could NOT find QextSerialPort (missing: QEXTSERIALPORT_INCLUDE_DIR QEXTSERIALPORT_LIBRARIES) -- Could NOT find quazip (missing: QUAZIP_INCLUDE_DIR QUAZIP_LIBRARIES) -- Could NOT find libshp (missing: LIBSHP_INCLUDE_DIR LIBSHP_LIBRARIES) -- Could NOT find libgps (missing: LIBGPS_INCLUDE_DIR LIBGPS_LIBRARIES) -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Could NOT find libwlocate (missing: LIBWLOCATE_INCLUDE_DIR LIBWLOCATE_LIBRARIES) -- -- The following REQUIRED packages have been found: * Qt5Core * Qt5Xml * Qt5Network * Qt5Test * Qt5Script * Qt5Gui (required version >= 5.1.1) * Qt5Widgets * Qt5Qml (required version >= 5.1.1) * Qt5Quick (required version >= 5.1.1) * Qt5Multimedia (required version >= 5.1.1) * Qt5MultimediaWidgets (required version >= 5.1.1) * Qt5OpenGL (required version >= 5.1.1) * Qt5WebKit (required version >= 5.1.1) * Qt5Sensors (required version >= 5.1.1) * Qt5WebKitWidgets * Qt5Svg * Qt5Sql * Qt5Concurrent * Qt5PrintSupport -- The following OPTIONAL packages have not been found: * Phonon , cross-platform multimedia framework that enables the use of audio and video content , <http://qt.digia.com/> Voice navigation (sound or human speakers) * QextSerialPort , access to serial ports , <http://code.google.com/p/qextserialport/> Reading from serial port in APRS plugin * quazip , reading and writing of ZIP archives , <http://quazip.sourceforge.net/> reading and displaying .kmz files * libshp , reading and writing of ESRI Shapefiles (.shp) , <http://shapelib.maptools.org/> reading and displaying .shp files * libgps , communicating with the GPS daemon , <http://catb.org/gpsd/> position information via gpsd * liblocation , position information on Maemo 5 devices , <http://maemo.org/> position information via GPS/WLAN for the Nokia N900 smartphone * libwlocate , WLAN-based geolocation , <http://www.openwlanmap.org/> Position information based on neighboring WLAN networks -- Configuring incomplete, errors occurred! |
Administrator
|
Which version of CMake are you using? You might need to update to a newer version of CMake, which supports the syntax Marble is using there.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
KDE Developer
|
I guess qmake is still version 4 on your system. When running
|
Registered Member
|
QMake version 3.0
Using Qt version 5.1.1 in C:/source/libs/QtCommercial/QtCommercial5.1.1/5.1.1/qtbase/lib cmake version 2.8.11.2 |
Registered Member
|
I'm not familiar with cmake, perhaps I made a mistake in the syntax?
|
Administrator
|
The command you used to run CMake was fine - what is likely is that the syntax within the CMakeLists.txt file is newer than that supported by the version of CMake you are using. If you update to a newer version, this problem should hopefully be resolved.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I updated cmake from version 2.8.11.2 to 2.8.12, which seems to be the latest one available. Then I did a clean git clone + git checkout qt5 I still get the same error : C:\source\libs\marble>cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=C:\source\libs\marble_build -DQTONLY=1 -DQT5BUILD=1 CMake Error at src/CMakeLists.txt:23 (STRING): string sub-command LENGTH requires two arguments. |
Administrator
|
I have now verified this on a build node for the KDE Continuous Integration system. Please report the build failure to the Marble development mailing list (marble-devel@kde.org) so this can be corrected. It appears later versions of CMake have changed their compatibility - preventing the existing CMake code from working.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]