How to Build Dora SSR EngineOn this pageHow to Build Dora SSR Engine 1. Get the Source GitHubGiteeGitCodegit clone https://github.com/ippclub/Dora-SSR.gitgit clone https://gitee.com/ippclub/Dora-SSR.gitgit clone https://gitcode.com/ippclub/Dora-SSR.git 2. Build Game Engine Runtime Please select the target platform you want to build for. WindowsmacOSiOSAndroidLinux Install Rust, xmake, and Visual Studio Community 2022 with MSBuild tools. Build bgfx libraries first, the same way as GitHub Actions. Tools\build-scripts\build_lib_bgfx_windows.bat Build the Windows runtime and solution. Tools\build-scripts\build_windows.bat For local debugging, open Projects/Windows/Dora.sln in Visual Studio and run the Debug configuration. Install Rust, xmake, and the latest Xcode. Build bgfx libraries, matching the CI workflow. Tools/build-scripts/build_lib_bgfx.sh macos Generate Lua bindings. cd Tools/tolua++./build.sh Build the Rust runtime for macOS and copy the generated library. cd Source/Rustrustup target add x86_64-apple-darwincargo build --target x86_64-apple-darwincp target/x86_64-apple-darwin/debug/libdora_runtime.a lib/macOS/libdora_runtime.a Build and run the app locally. xcodebuild ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -project Projects/macOS/Dora.xcodeproj -target Dora -configuration Debug For IDE debugging, open Projects/macOS/Dora.xcodeproj in Xcode and run the Dora target. Install Rust, xmake, and the latest Xcode. Build bgfx libraries first. Tools/build-scripts/build_lib_bgfx.sh ios Generate Lua bindings. cd Tools/tolua++./build.sh Build the Rust runtime for the iOS simulator. cd Source/Rustrustup target add aarch64-apple-ios-simcargo build --target aarch64-apple-ios-simcp target/aarch64-apple-ios-sim/debug/libdora_runtime.a lib/iOS-Simulator/libdora_runtime.a Build the simulator target. xcodebuild ARCHS=arm64 ONLY_ACTIVE_ARCH=NO -project Projects/iOS/Dora.xcodeproj -configuration Debug -target Simulator -sdk iphonesimulator For IDE debugging, open Projects/iOS/Dora.xcodeproj in Xcode and run the Simulator target. tipLocal Android builds require JDK 17 in addition to Android Studio. Install Rust, xmake, and the latest Android Studio. Generate Lua bindings first. # Build on Ubuntusudo apt-get install lua5.1sudo apt-get install -y luarockssudo luarocks install luafilesystemcd Tools/tolua++lua tolua++.lua# Build on macOScd Tools/tolua++./build.sh# Build on Windowscd Tools\tolua++build.bat Build bgfx libraries for Android. Tools/build-scripts/build_lib_bgfx.sh android Build the Rust runtime for Android ABIs. Tools/build-scripts/build_lib_android.sh Build the Android app locally. cd Projects/Android/Dora./gradlew assembleDebug For IDE debugging, open Projects/Android/Dora in Android Studio and run the app module. tipLocal Linux builds also use pkg-config and the dbus-1 development package. On typical desktop Linux environments, they are usually already installed, so no extra setup is normally needed. Install Rust and xmake. Ubuntu/DebianArch Linux Install dependent packages. sudo apt-get updatesudo apt-get install -y libsdl2-dev libgl1-mesa-dev libssl-dev libx11-dev lua5.1 luarocks Manually generate Lua bindings. sudo luarocks install luafilesystemcd Tools/tolua++lua tolua++.lua Install dependent packages. sudo pacman -S lua51 luarocks sdl2 openssl gcc make cmake --needed# Because the lua version must be 5.1,you need to use lua 5.1 instead of the newest version of lua# The easiest way is using 'ln' to create a soft linksudo ln -s /usr/bin/lua5.1 /usr/local/bin/lua Manually generate Lua bindings. sudo luarocks --lua-version 5.1 install luafilesystemcd Tools/tolua++lua5.1 tolua++.lua Build bgfx libraries, matching the Linux GitHub Action. cd Source/3rdParty/bgfxxmake f -p linux -a x86_64 -m release -yxmake -v Build the Rust runtime. For x86_64 architectureTools/build-scripts/build_lib_linux_x86_64.sh For ARM64 architectureTools/build-scripts/build_lib_linux_aarch64.sh Run the compile scripts. For the first time build For ARM architecturecd Projects/Linuxmake arm For x86_64 architecturecd Projects/Linuxmake x86_64 For incremental build cd Projects/Linuxmake Run the generated software. cd Assets../Projects/Linux/build/dora-ssr# Or specify the resource directory with command line arguments./Projects/Linux/build/dora-ssr --asset Assets 3. Build Web IDE Compile and run the Dora SSR engine. Install the latest version of Node.js and pnpm. Initialize the project and enter the Dora Dora editor development mode. Please select the platform you are building with. macOSLinuxWindowscd Tools/dora-dora && pnpm installpnpm build-yarn-editorpnpm startAlternatively, you can generate the Web IDE release files for the full Dora SSR project. pnpm build now automatically builds and copies YarnEditor, then syncs the final Web IDE output to project folder Assets/www.cd Tools/dora-dorapnpm buildcd Tools/dora-dora && pnpm installpnpm build-yarn-editorpnpm startAlternatively, you can generate the Web IDE release files for the full Dora SSR project. pnpm build now automatically builds and copies YarnEditor, then syncs the final Web IDE output to Assets/www.# `pnpm build` also syncs the final output to Assets/www automaticallycd Tools/dora-dorapnpm buildcd Tools\dora-dora && pnpm installpnpm build-yarn-editorpnpm startAlternatively, you can generate the Web IDE release files for the full Dora SSR project. pnpm build now automatically builds and copies YarnEditor, then syncs the final Web IDE output to Assets/www.# `pnpm build` also syncs the final output to Assets/www automaticallycd Tools\dora-dorapnpm build