-
Notifications
You must be signed in to change notification settings - Fork 47
How to Build Engine Runtime Libraries
Seongjae Park edited this page Apr 30, 2019
·
26 revisions
You can build Blueshift Engine runtime libraries. But Blueshift Editor is not open source yet.
Note: Building from source code is intended for users who want to use/test new features or customize the C++ source code. For most users, we recommend the binary releases.
Jump to:
- CMake
- MS Visual Studio 2017 to build engine for Windows
- Xcode to build engine for macOS or iOS
- Android Studio to build engine for Android
Before we can build the engine, we need to clone the repository recursively.
git clone --recursive https://github.com/PolygonTek/BlueshiftEngine.git
- Run
Build/Build-Win64.bat
to build engine from the sources.
- Run
Build/Build-macOS.command
to build engine for macOS from the sources.
- Run
Build/Build-iOS.command
to build engine for iOS from the sources.
- Set
JAVA_HOME
environment variable to "C:\Program Files (x86)\Java\jdk1.8.0_161" - Set
ANDROID_HOME
environment variable to "%USERPROFILE%\AppData\Local\Android\Sdk" - Make sure that NDK is installed in Configure/SDK Manager/SDK Tools
- Run
Build/Build-Android.bat
orBuild/Build-Android.command
to build engine for Android from the sources. (JDK 8 Required)
- Run
cmake-vs2017-Win64.bat
to generate Visual Studio 2017 solution file. - Open
Build/msvc2017/Blueshift.sln
- Run
cmake-macOS.command
to generate XCode project file. - Open
Build/xcode-macOS/Blueshift.xcodeproj
- Run
cmake-iOS.command
to generate XCode project file. - Open
Build/xcode-iOS/Blueshift.xcodeproj
- Run Android Studio
- If you run Android Studio for the first time. Make sure that CMake is installed in
Configure/SDK Manager/SDK Tools
- Open a project folder located at
Build/Android/Blueshift
Select from View/Tool Windows/Build Variants menu Build/Make Project
- Ensure Apple's command line tools are installed (
xcode-select --install
to launch the installer).
- Check
JAVA_HOME
environment variable set correctly (test typingjava -version
in the console) - Use shorter project path instead of deep path hierarchy
Home | Copyright © 2017 - 2018 PolygonTek