![]() Registered Member ![]()
|
Hi,
I downloaded marble sources from the git repository using QtCreator 5.2.1. I chose the qt5 branch. Cmake was fine, then I encountered a problem during compilation. This was due to redefining "pi" into the sgp4unit.h file. I corrected it, and the compilation ended without error. Then I run mingw32-make install into the build directory, and it created the marble folder in
Then, I created a QtQuick application. Here is the .pro file:
the main.cpp file:
and the main.qml file:
First, the "import org.kde.edu.marble 0.11" was underlined, and the following error message was displayed:
The qmldir file located into [url]C:\Program Files (x86)\marbleQt5\plugins\org\kde\edu\marble[/url] was
So I changed MarbleDeclarativePlugin to libMarbleDeclarativePlugin. And when I run the application, I get the following error:
And in the main.qml file, "MarbleWigdet" is underlined, and the error message is to use QtQuick1 instead of QtQuick2 Maybe the reason is that marble sources for qt5 are not ready yet to be used, otherwise I must have missed something. Thanks, Lauriane |
![]() KDE Developer ![]()
|
Hi,
The Qt5 support has been merged into master already. The Qt5 branch is discontinued. Please use Marble master instead ![]() However regarding Qt Quick bindings for Marble: Those are missing from the Qt5 port. |
![]() Registered Member ![]()
|
Hi,
I downloaded the main branch as you said, but I get an error while running CMake:
The arguments I wrote are:
I also tried
but I get the same error In this topic viewtopic.php?f=217&t=110904 they say that maybe the version of CMake is not compatible, but this post may have become obsolete. Thanks, Lauriane |
![]() KDE Developer ![]()
|
If both Qt4 and Qt5 are installed on the system, Qt4 is chosen by
default. It can be overridden using the QT5BUILD=TRUE cmake variable. When building against Qt5, cmake will emit lots of CMAKE_AUTOMOC_RELAXED_MODE related warnings. Please ignore them. |
![]() Registered Member ![]()
|
Thanks for your reply
![]() So I uninstalled Qt 4.8.5 I had on my system, and tried I again, but I still have the same error
Even if I have the argument:
Lauriane |
![]() Registered Member ![]()
|
Into the files
to
but the compilation ends at 59% while building qrc_marble.obj So I completely removed those lines, and the compilation ends without error. After that, I ran
But I still can't use the plugin. in main.cpp, I have
and in the main.qml
"MarbleWidget" is underlined, and the message is to use QtQuick1 rather than QtQuick2, and if I launch the application, I get the error:
So in the "qmldir" file I changed
to
and now the error is
Thanks, Lauriane |
![]() Registered Member ![]()
|
Does someone have an idea ? I'm really desperate...
Thanks |
![]() KDE Developer ![]()
|
Our QML support has not been ported to Qt5 yet. I'd suggest using Qt4 for the time being.
|
![]() Registered Member ![]()
|
OK, thanks
How long do you think it will take ? My application is already using QtQuick 2, I'll have to wait... Thanks again for your answer |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]