Compiling For FreeBSD - Epic Wiki
# Compiling For FreeBSD
Rate this Article:
0.00
Approved for Versions:(please verify)
# Contents
- 1 Why cross-compilation
- 2 Getting the source
- 3 Getting the toolchain and dependencies
- 4 Using the toolchain
# Why cross-compilation
As required libraries for the editor are not available on FreeBSD, it is not possible to compile or use the editor natively. Cross-compilation for FreeBSD works similarly to cross-compilation for Linux. The cross-compilation toolchain is currently targeted for FreeBSD 11.
# Getting the source
The FreeBSD fork resides in an external repository at https://github.com/UE4-FreeBSD/UE4-FreeBSD. The FreeBSD code is located in the release_freebsd branch. To get the source use the following command.
git clone -b release_freebsd [https://github.com/UE4-FreeBSD/UE4-FreeBSD.git](https://github.com/UE4-FreeBSD/UE4-FreeBSD.git)
# Getting the toolchain and dependencies
The cross-compilation toolchain for Windows and precompiled dependencies for FreeBSD can be downloaded from the latest -freebsd release on the releases page of the FreeBSD repository at https://github.com/UE4-FreeBSD/UE4-FreeBSD/releases. The dependencies must be extracted to the engine source directory.
# Using the toolchain
# Setup
Add an environment variable (Control Panel->System->Advanced system settings->Advanced->Environment variables) named FREEBSD_MULTIARCH_ROOT. The value should be the path to the toolchain directory downloaded from the releases page. Make sure the new environment variable has been registered to the system / application (MSVC) by rebooting the machine or restarting the app before continuing to the build step.
# Packaging
Packaging for FreeBSD follows the same rules as Packaging for Linux except with FreeBSD as the target platform.
Retrieved from "https://wiki.unrealengine.com/index.php?title=Compiling_For_FreeBSD&oldid=25300"