[Marble-devel] Build and run MarbleDeclarativePlugin with Qt5.4

Олег Любимов lyubimov.o.e at gmail.com
Thu Dec 11 07:42:01 UTC 2014


Hi All.

I have a problem with MarbleDeclarativePlugin in Qt5. I compile Marble from
release KDE/4.13 with Declarative extentions. But MarbleDeclarativePlugin
does not run in the QtQuick 2.x application.
My enviroment: ubuntu 12.04 x64, Qt 5.4, gcc 4.6.3, cmake 3.0.1.
My building steps:
- install Qt5.4 to /opt/qt5/....
- replace /usr/bin/qmake by symlink to Qt5.4 qmake
- run cmake:
cmake-3 -DQTONLY=TRUE -DQT_IMPORTS_DIR=/opt/qt5/5.4/gcc_64/qml/
-DCMAKE_PREFIX_PATH=/opt/qt5/5.4/gcc_64/lib/cmake
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ../marble
- make && sudo make install
- the marble declarative files are installed to /org/kde/marble , but it
should be installed to /opt/qt5/5.4/gcc_64/qml/ (I have copyed it manually).

marble-qt and marble-mobile apps work OK.

Then I create a QtQuick2.3 application width declarative MarbleWidget, but
when I run this application, it does not start with trace:

QML debugging is enabled. Only use this in a safe environment.

Module 'org.kde.edu.marble' does not contain a module identifier directive
- it cannot be protected from external registrations.

QObject: Cannot create children for a parent that is in a different thread.

(Parent is MarbleDeclarativePlugin(0x7f0d2809a140), parent's thread is
QThread(0x22f82f0), current thread is QThread(0x2272610)

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QIODevice::write: device not open

QWidget: Cannot create a QWidget without QApplication


Can I do something wrong in build with Qt5?
Why cmake ignore -DQT_IMPORTS_DIR in Qt5?
Has anybody run declarative MarbleWidget on QtQuick 2.x  aplication ?

--
Best regards
Oleg Lyubimov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20141211/db1e0244/attachment.html>


More information about the Marble-devel mailing list