Cesium for Unreal 2.12.0
|
Detailed instructions for setting up a Cesium for Unreal development environment on macOS. Please see the Developer Setup page for an overview of the process.
The following illustrates the recommended directory layout for developers:
~/dev
- Your own root directory for development.~/dev/cesium-unreal-samples
- The directory for the Unreal project that will use the plugin.~/dev/cesium-unreal-samples/Plugins/cesium-unreal
- The directory for the actual Cesium for Unreal plugin.~/dev/cesium-unreal-samples/Plugins/cesium-unreal/extern/cesium-native
- The directory for the base libraries project.You may use any directory for the project, but the directory for the actual Cesium for Unreal plugin MUST be in a subdirectory Plugins/cesium-unreal
of the project directory. This way, Unreal will automatically find the Plugin when running the project, and pick up any changes that have been made to the plugin.
This can be set up with the following sequence of commands, on the console, starting in the ~/dev
directory:
cesium-native
submodule and its dependencies. If you forget the --recursive
option, you will see many compiler errors later in this process. If this happens to you, run the following in the Plugins\cesium-unreal
directory to update the submodules in the existing clone: The cesium-native libraries and their dependencies use CMake and must be built separately from Cesium for Unreal. There are a number of ways to do this, but typically on macOS.
First, configure the CMake project in the ~/dev/cesium-unreal-samples/Plugins/cesium-unreal/extern
directory by following the instructions below.
extern
directory, and not the cesium-native
subdirectory!Change to the ~/dev/cesium-unreal-samples/Plugins/cesium-unreal/extern
directory, and execute the following commands to build and install a Debug version of cesium-native:
To build a Release version, do the following:
Note: It is recommended that the build steps for CMake command-line for macOS (above) be completed first. Unreal Engine Editor will not launch without the host side binaries compiled as well.
Configure the CMake project in the ~/dev/cesium-unreal-samples/Plugins/cesium-unreal/extern
directory by following the instructions below. Use a different build directory than the one use for macOS as this will require compiling for a different architecture.
extern
directory, and not the cesium-native
subdirectory!Change to the ~/dev/cesium-unreal-samples/Plugins/cesium-unreal/extern
directory, and execute the following commands to build and install a Release version of cesium-native:
You can also build and install the debug version by using Debug
or RelWithDebInfo
instead of Release
.