Reply to topic

Qt5 and marble

anaaa
Registered Member
Posts
12
Karma
0

Qt5 and marble

Wed Jul 16, 2014 11:41 am
Hello,
I'm begining with marble and I can't built it, my operative system is Ubuntu and I have Qt5 and I'm having some problems.

vtb_user@VTB:~/marble/build$ cmake -DCMAKE_BUILD_TYPE=Debug -DQTONLY=FALSE -DCMAKE_INSTALL_PREFIX=/usr/local ~/marble/sources
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY)
CMake Warning at CMakeLists.txt:63 (MESSAGE):
Qt 5 build detected. Disabling KDE support which has not been ported yet.
Please compile Marble with Qt 4 if you want to build the Marble KDE desktop
application.


CMake Error at CMakeLists.txt:66 (find_package):
By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Core", but
CMake did not find one.

Could not find a package configuration file provided by "Qt5Core" with any
of the following names:

Qt5CoreConfig.cmake
qt5core-config.cmake

Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
"Qt5Core_DIR" to a directory containing one of the above files. If
"Qt5Core" provides a separate development package or SDK, be sure it has
been installed.


-- Configuring incomplete, errors occurred!


But I find Qt5CoreConfig.cmake and it is in /home/vtb_user/Qt5.2.1/5.2.1/gcc/lib/cmake/Qt5Core


Thanks
anaaa
Registered Member
Posts
12
Karma
0

Re: Qt5 and marble

Wed Jul 16, 2014 12:42 pm
Also I have installed Qt4 and I have the same error.

:'(

thanks
anaaa
Registered Member
Posts
12
Karma
0

Re: Qt5 and marble

Thu Jul 17, 2014 9:13 am
I have put the CMAKE_PREFIX_PATH and I don't have errors but now I have error to do the make

In file included from /home/vtb_user/marble/build/src/plugins/render/opencachingcom/ui_CacheDetailsDialog.h:26:0,
from /home/vtb_user/marble/sources/src/plugins/render/opencachingcom/OpenCachingComItem.cpp:21:
/home/vtb_user/marble/sources/src/lib/marble/MarbleWebView.h:14:20: fatal error: QWebView: No such file or directory
compilation terminated.
make[2]: *** [src/plugins/render/opencachingcom/CMakeFiles/OpenCachingComPlugin.dir/OpenCachingComItem.o] Error 1
make[1]: *** [src/plugins/render/opencachingcom/CMakeFiles/OpenCachingComPlugin.dir/all] Error 2
make: *** [all] Error 2


:'(
User avatar bcooksley
Administrator
Posts
19743
Karma
85
OS

Re: Qt5 and marble

Fri Jul 18, 2014 8:54 am
It is likely that your copy of Qt 5 was compiled without QtWebkit enabled. This can occur if certain tools aren't installed on your system.
If you self compiled Qt 5, then please examine your build log for more information. Ruby is one of the requirements if I recall correctly.

Please note that Qt's ./configure process does not check for these dependencies - so it will attempt to build QtWebkit then stop without generating an error (although a log entry is printed) if the dependencies are missing.


System Settings and Device Actions KCM maintainer
Image
anaaa
Registered Member
Posts
12
Karma
0

Re: Qt5 and marble

Fri Jul 18, 2014 11:19 am
And the error for the Qt4, why don't find Qt4? What can I do?

thanks
anaaa
Registered Member
Posts
12
Karma
0

Re: Qt5 and marble

Fri Jul 18, 2014 1:01 pm
cmake -DCMAKE_BUILD_TYPE=Debug -DQTONLY=TRUE -DCMAKE_INSTALL_PREFIX=/usr/local ~/marble/sources &>log.txt



-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - 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.
-- Found Qt4: /home/vtb_user/qt4/bin/qmake (found version "4.8.6")
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
-- Could NOT find Phonon (missing: PHONON_INCLUDE_DIR PHONON_LIBRARY)
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
-- Could NOT find Phonon (missing: PHONON_INCLUDE_DIR PHONON_LIBRARY)
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
-- Could NOT find QextSerialPort (missing: QEXTSERIALPORT_INCLUDE_DIR QEXTSERIALPORT_LIBRARIES)
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
-- Could NOT find quazip (missing: QUAZIP_INCLUDE_DIR QUAZIP_LIBRARIES)
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
-- Could NOT find libshp (missing: LIBSHP_INCLUDE_DIR LIBSHP_LIBRARIES)
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
-- Could NOT find libgps (missing: LIBGPS_INCLUDE_DIR LIBGPS_LIBRARIES)
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'liblocation>=0.102'
-- package 'liblocation>=0.102' not found
-- checking for module 'QtLocation>=1.0.1'
-- package 'QtLocation>=1.0.1' not found
-- Could NOT find QtMobility (missing: QTMOBILITY_INCLUDE_DIR)
-- Could NOT find QtLocation (missing: QTLOCATION_INCLUDE_DIR QTLOCATION_LIBRARIES)
-- Could NOT find libwlocate (missing: LIBWLOCATE_INCLUDE_DIR LIBWLOCATE_LIBRARIES)
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
Qt QTWEBKIT library not found.
Qt QTDBUS library not found.
--
-- The following features have been enabled:

* Unit tests , Build unit tests. Toggle with BUILD_MARBLE_TESTS=YES/NO. 'make test' will run all.
* Qt Designer plugins , Marble widget support in Qt Designer. Toggle with WITH_DESIGNER_PLUGIN=YES/NO
* Marble Desktop/Mobile applications , Build Marble Desktop/Mobile applications. Toggle with BUILD_MARBLE_APPS=YES/NO.

-- The following REQUIRED packages have been found:

* Qt4 , cross-platform application framework , <http://qt.digia.com/>
core framework

-- The following features have been disabled:

* Marble tools , Build various Marble tools for e.g. file format conversion. Toggle with BUILD_MARBLE_TOOLS=YES/NO.
* Marble library C++ examples , Build C++ examples showing how to use the Marble library. Toggle with BUILD_MARBLE_EXAMPLES=YES/NO.

-- 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/>
Support for playback of soundcue elements
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
* QtMobility , a collection of APIs and frameworks , <http://qt.digia.com/>
Required for QtLocation to work
* QtLocation , geographical support for position and map use , <http://qt.digia.com/>
position information via QtMobility QtLocation
* libwlocate , WLAN-based geolocation , <http://www.openwlanmap.org/>
Position information based on neighboring WLAN networks

-- Configuring done
-- Generating done
-- Build files have been written to: /home/vtb_user/marble/build
User avatar bcooksley
Administrator
Posts
19743
Karma
85
OS

Re: Qt5 and marble

Sat Jul 19, 2014 5:48 am
If you are attempting to build Marble against Qt 5, then you don't need to worry about the inability to find Qt 4 - Marble is capable of being built against both (but not at the same time).

The above log you have posted will compile successfully, although a few features will be missing as it was unable to find certain system libraries and Qt 4 components.


System Settings and Device Actions KCM maintainer
Image
anaaa
Registered Member
Posts
12
Karma
0

Re: Qt5 and marble

Tue Jul 22, 2014 10:05 am
I want to build with Q5 or Q4, It's all the same to me.
But then when I do make I have some errors with libraries such as QWebView, I think that it is problem of the configure of Qt and I need some parameters to indicate where are the libraries. I only put ./configure in build of Qt4 and Qt5.

thanks,
User avatar bcooksley
Administrator
Posts
19743
Karma
85
OS

Re: Qt5 and marble

Tue Jul 22, 2014 10:24 am
As you seem to have both available in one form of another - you need to make a decision. At the moment it is attempting to build with Qt 4.
QWebView is part of QtWebkit - as previously mentioned, please check the Qt compile log to find the dependencies you need to install. Unfortunately those dependencies are mandatory, and may not be installed on your system currently.


System Settings and Device Actions KCM maintainer
Image
anaaa
Registered Member
Posts
12
Karma
0

Re: Qt5 and marble

Fri Jul 25, 2014 7:01 am
I install QtWebKit, and I do cmake without mistakes but when I do make, I have this error:



[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/DownloadRegion.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/DownloadRegionDialog.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/LatLonBoxWidget.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/MarbleWidget.o
In file included from /usr/include/qt4/QtCore/qsharedpointer.h:50:0,
from /usr/include/qt4/QtGui/qpixmap.h:49,
from /usr/include/qt4/QtGui/QPixmap:1,
from /home/vtb_user/marble/sources/src/lib/marble/MarbleWidget.h:23,
from /home/vtb_user/marble/sources/src/lib/marble/MarbleWidget.cpp:14:
/usr/include/qt4/QtCore/qsharedpointer_impl.h: In instantiation of ‘static void QtSharedPointer::ExternalRefCount<T>::deref(QtSharedPointer::ExternalRefCount<T>::Data*, T*) [with T = Marble::MarbleWidgetInputHandlerPrivate; QtSharedPointer::ExternalRefCount<T>::Data = QtSharedPointer::ExternalRefCountData]’:
/usr/include/qt4/QtCore/qsharedpointer_impl.h:336:11: required from ‘void QtSharedPointer::ExternalRefCount<T>::deref() [with T = Marble::MarbleWidgetInputHandlerPrivate]’
/usr/include/qt4/QtCore/qsharedpointer_impl.h:401:38: required from ‘QtSharedPointer::ExternalRefCount<T>::~ExternalRefCount() [with T = Marble::MarbleWidgetInputHandlerPrivate]’
/usr/include/qt4/QtCore/qsharedpointer_impl.h:466:7: required from here
/usr/include/qt4/QtCore/qsharedpointer_impl.h:342:21: warning: possible problem detected in invocation of delete operator: [enabled by default]
/usr/include/qt4/QtCore/qsharedpointer_impl.h:337:28: warning: ‘value’ has incomplete type [enabled by default]
In file included from /home/vtb_user/marble/sources/src/lib/marble/MarbleWidget.cpp:45:0:
/home/vtb_user/marble/sources/src/lib/marble/MarbleWidgetInputHandler.h:25:7: warning: forward declaration of ‘class Marble::MarbleWidgetInputHandlerPrivate’ [enabled by default]
In file included from /usr/include/qt4/QtCore/qsharedpointer.h:50:0,
from /usr/include/qt4/QtGui/qpixmap.h:49,
from /usr/include/qt4/QtGui/QPixmap:1,
from /home/vtb_user/marble/sources/src/lib/marble/MarbleWidget.h:23,
from /home/vtb_user/marble/sources/src/lib/marble/MarbleWidget.cpp:14:
/usr/include/qt4/QtCore/qsharedpointer_impl.h:342:21: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/MarbleAbstractPresenter.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/MarbleWebView.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/MarbleModel.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/MarbleMap.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/MarbleControlBox.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/NavigationWidget.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/MapViewWidget.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/FileViewWidget.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/TourWidget.o
[ 45%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/TourPlayback.o
In file included from /home/vtb_user/marble/sources/src/lib/marble/TourPlayback.cpp:33:0:
/home/vtb_user/marble/sources/src/lib/marble/PlaybackSoundCueItem.h:20:30: fatal error: Phonon/MediaObject: No such file or directory
compilation terminated.


thanks
User avatar bcooksley
Administrator
Posts
19743
Karma
85
OS

Re: Qt5 and marble

Fri Jul 25, 2014 11:17 am
It appears that you are missing Phonon - this should have been included as part of Qt 4 - or alternatively is available from your distribution package manager (if using the distribution provided Qt 4).


System Settings and Device Actions KCM maintainer
Image
anaaa
Registered Member
Posts
12
Karma
0

Re: Qt5 and marble

Wed Sep 03, 2014 9:10 am
Hello,
Ubuntu, qt4.8, qt5.2.1
I install marble without mistakes but i build my source without mistakes but the run is:


Starting /home/vtb_user/build-untitled-Desktop_Qt_5_2_1_GCC_32bit-Debug/untitled...
QMetaType::registerType: Binary compatibility break -- Size mismatch for type 'QPaintBufferCacheEntry' [1024]. Previously registered size 0, now registering size 12.
The program has unexpectedly finished.
/home/vtb_user/build-untitled-Desktop_Qt_5_2_1_GCC_32bit-Debug/untitled crashed

Could it be because I have installed qt4 and qt5?
I unistall qt4 but I have the same problem.


thanks
User avatar bcooksley
Administrator
Posts
19743
Karma
85
OS

Re: Qt5 and marble

Sat Nov 08, 2014 9:45 pm
Sounds like you might be mixing your Qt's. Can you try running your Marble build under a debugger and generating a backtrace?


System Settings and Device Actions KCM maintainer
Image
pneves
Registered Member
Posts
1
Karma
0

Re: Qt5 and marble

Fri Dec 12, 2014 8:25 pm
Hi:

I'm trying to build marble with QT5 on my Debian system and I get the following error:

fatal error: QQmlComponent: No such file or directory
#include <QQmlComponent>
^
compilation terminated.

Any hints?

Thanks in advance.

Cheers:

Pedro

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Exabot [Bot], garthecho, Google [Bot], Hans, Sogou [Bot], srs, tokiedian, Yahoo [Bot], yangyulong