Marble can be built for macOS (originally Mac OS X) platforms. Currently, as of 4th January 2017, however, there are no current or supported official binaries available. Patches are available that support building portable Marble app bundles and the DMG packaging for macOS are available on Phabricator; they have not yet been imported in to the main repository.
Installing Marble requires the following libraries and utilities available on your system:
|A paid 'developer' subscription is unnecessary to compile Marble.|
|You will need to accept the Xcode license agreement before you compile Marble on macOS. A license text is available, as well as the choice to accept it, from the following command, once Xcode has been installed:
sudo xcodebuild -licenseAdministrator privileges are necessary for
If you wish to compile the KDE version,
marble-kde, then you will need extra KDE libraries installed on your computer:
Following this guide, retrieve the source code by tarball or from the anonymous
Create a new
build directory inside the new clone, then change to it, and run CMake in it, like so:
$ mkdir build $ cd build $ cmake -DCMAKE_BUILD_TYPE=release -DWITH_KF5=FALSE -DCMAKE_INSTALL_PREFIX=<a user defined prefix> ..
<a user defined prefix> is replaced with your chosen prefix folder.
|What's wrong with using |
You can then use GNU Make to compile Marble, then install the bundle and libraries to the prefix:
$ make install
You may choose to use more than one thread (specified by
X is the amount of threads to use in compilation). For example, to use the same amount of threads as the number of logical CPU cores on your computer, and assumes you use
bash or another
$ make install -j$(sysctl -n hw.ncpu)
fish as your shell:
$ make install -j(sysctl -n hw.ncpu)
Alternatively, you can use CMake to create an Xcode project for Marble:
$ mkdir build $ cd build $ cmake -DCMAKE_BUILD_TYPE=release -DWITH_KF5=FALSE -DCMAKE_INSTALL_PREFIX=<a user defined prefix> -G 'Xcode' ..
Then, either open the Xcode project:
$ open Marble.xcodeproj
|You can then specify that you wish to only build and run the Marble.app bundle's target in Xcode by selecting it from the contextual menu appearing on right-clicking the |
or use xcodebuild:
$ xcodebuild -project Marble -target Marble.app
|If you are contemplating contributing to Marble, be aware that some changes to the Xcode project in Xcode may not affect the Marble project, like creating or adding a file. Manual changes to some CMakeLists.txt files may be needed: the conversion from CMake script to Xcode project is not bilateral.|
This application, however, is not portable: if you would like to create a system library independent app bundle, and a distributable disk image, see Marble/MacPackaging.