This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Marble and Qt5

Tags: qt5, compile qt5, compile qt5, compile
(comma "," separated)
Beacon11
Registered Member
Posts
35
Karma
0

Marble and Qt5

Sat Apr 20, 2013 2:24 pm
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?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Marble and Qt5

Tue Apr 23, 2013 8:35 am
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]
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS

Re: Marble and Qt5

Sat Jul 27, 2013 7:59 pm
We have a qt5 branch now with ongoing work to support Qt 5. See also viewtopic.php?f=217&t=112088
jjacob
Registered Member
Posts
1
Karma
0

Re: Marble and Qt5

Tue Sep 24, 2013 5:21 pm
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!
mzanetti
Registered Member
Posts
3
Karma
0

Re: Marble and Qt5

Wed Sep 25, 2013 5:13 pm
Currently you need to use the qt5 branch and invoke cmake like this:

cmake <srcdir> -DQTONLY=1 -DQT5BUILD=1
stianb
Registered Member
Posts
5
Karma
0

Re: Marble and Qt5

Tue Oct 01, 2013 12:17 pm
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 :)
mzanetti
Registered Member
Posts
3
Karma
0

Re: Marble and Qt5

Tue Oct 01, 2013 8:22 pm
git clone git://anongit.kde.org/marble.git
cd marble
git checkout qt5
stianb
Registered Member
Posts
5
Karma
0

Re: Marble and Qt5

Thu Oct 03, 2013 7:43 pm
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!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Marble and Qt5

Fri Oct 04, 2013 9:44 am
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]
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS

Re: Marble and Qt5

Fri Oct 04, 2013 7:53 pm
I guess qmake is still version 4 on your system. When running
Code: Select all
qmake -v
which version does it report?
stianb
Registered Member
Posts
5
Karma
0

Re: Marble and Qt5

Mon Oct 07, 2013 6:48 am
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
stianb
Registered Member
Posts
5
Karma
0

Re: Marble and Qt5

Thu Oct 10, 2013 8:05 am
I'm not familiar with cmake, perhaps I made a mistake in the syntax?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Marble and Qt5

Sat Oct 12, 2013 8:06 am
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]
stianb
Registered Member
Posts
5
Karma
0

Re: Marble and Qt5

Wed Oct 16, 2013 2:09 pm
bcooksley wrote: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.


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.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Marble and Qt5

Sat Oct 19, 2013 7:03 am
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]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]