Registered Member
|
I'm trying to compile Marble on a Mac, just pulled the sources down from git, with Qt 5.4.1.
The error I get is:
I've looked for this file, it's definitely present in /usr/local/Qt-5.4.1/lib/QtQml.framework/Versions/5/Headers There was no warning from cmake about this. There was a message that said "Found unsuitable Qt version "5.4.1" from /usr/local/Qt-5.4.1/bin/qmake", but it didn't look like a warning, and lots of other Marble source files compiled fine up to the point where it failed. If I run `make VERBOSE=1` I can see that the QtQml framework header directory above is not included in the compiler command. If I run the compiler command, explicitly including both the QtQml and QtQuick framework header directories I can continue with just running make, until linking when I run into similar errors about QtQuick, QtQml, and QtPrintSupport. I can resolve the linking errors by editing one of the link.txt files (/marble/download/path/marble/build/src/lib/marble/CMakeFiles/marblewidget.dir/link.txt). But then there are other compiler errors about the same frameworks, and I'm not sure when it will end. I believe this is a CMake issue, not a Marble issue, but I'm not sure how to resolve it. I had CMake 3.1.1 installed, and I've just upgraded to the latest CMake (3.2.1) but I'm still running into the same problem. Could someone confirm for me whether what I'm observing is something I need to report to CMake? Is there a simple way to work around this? I'm not very comfortable with CMake, but I'm pretty good at bash scripting, so I could always do an ugly hack of the necessary CMake-generated files (e.g. depend.make) that tell me not to edit them! |
Registered Member
|
I've solved my problem. There were a couple lines missing in CMakeLists.txt checked out from git (the main CMakeLists.txt, in the top level source directory). In the section with all the find_package commands, Qt5Quick and Qt5Qml were missing. I've added these lines:
The whole thing now compiles with no problems. |
Registered Member
|
I've tried to do the same but with no success Maybe it's because of the particular configuration I've been using : - Mac OS 10.10.2 - MacPorts 2.3.3 - the procedure given here : https://marble.kde.org/sources.php Would you give us more details on how you come to succeed in compiling the sources on OS X ? Thank you |
KDE Developer
|
Could someone submit a tested patch for this to https://git.reviewboard.kde.org/dashboard/ ?
That would be awesome! |
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]