[Marble-bugs] [marble] [Bug 345321] New: Build errors on Mac OS X: Missing required packages in CMakeLists.txt
Jessica Leigh
blackwednesday at gmail.com
Thu Mar 19 00:59:03 UTC 2015
https://bugs.kde.org/show_bug.cgi?id=345321
Bug ID: 345321
Summary: Build errors on Mac OS X: Missing required packages in
CMakeLists.txt
Product: marble
Version: 1.8 (KDE 4.13)
Platform: Other
OS: other
Status: UNCONFIRMED
Severity: grave
Priority: NOR
Component: general
Assignee: marble-bugs at kde.org
Reporter: blackwednesday at gmail.com
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Marble-bugs
mailing list