| Summary: | Build errors on Mac OS X: Missing required packages in CMakeLists.txt | ||
|---|---|---|---|
| Product: | [Applications] marble | Reporter: | Jessica Leigh <blackwednesday> |
| Component: | general | Assignee: | marble-bugs |
| Status: | REPORTED --- | ||
| Severity: | grave | CC: | beladiyahardik7 |
| Priority: | NOR | ||
| Version First Reported In: | 1.8 (KDE 4.13) | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Other | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
you should install qt5qml -dev package (In reply to hardik beladiya from comment #1) > you should install qt5qml -dev package I'm not sure what this package is (it sounds like a Debian package... I was referring to a problem building Marble on Mac OS X). Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved. |
When building with CMake 3.2.1, build fails with the following error: /marble/download/path/marble/sources/src/lib/marble/AbstractDataPlugin.cpp:36:12: fatal error: 'QQmlComponent' file not found #include <QQmlComponent> ^ 1 error generated. Dependencies on QtQml and QtQuick were apparently not being scanned by CMake. I added two lines to CMakeLists.txt (in the toplevel source directory) and resolved the issue: find_package(Qt5Quick REQUIRED) find_package(Qt5Qml REQUIRED) Reproducible: Always Steps to Reproduce: 1. Download latest 4.13 Marble sources 2. Run cmake in a build directory: cmake -DCMAKE_BUILD_TYPE=release -DQTONLY=ON -DCMAKE_INSTALL_PREFIX=/Applications/ ../sources 3. Run make Actual Results: Compilation halts with an error when it gets to AbstractDataPlugin.cpp Expected Results: Compilation should have completed