Skip to content

v1.2.x.8

Choose a tag to compare

@github-actions github-actions released this 23 Jan 18:07

iOS

工程根目录下执行如下命令
生成工程
bash [Arm64]
cmake -G Xcode -B build -S src -DCMAKE_TOOLCHAIN_FILE=../toolchain/ios.toolchain.cmake -DPLATFORM=OS64 -DCMAKE_BUILD_TYPE=Release
编译
bash [Release]
cmake --build build --config Release
bash [Debug]
cmake --build build --config Debug

Mac

工程根目录下执行如下命令
生成工程
bash [Apple Silicon]
cmake -G Xcode -B build -S src -DCMAKE_TOOLCHAIN_FILE=../toolchain/ios.toolchain.cmake -DPLATFORM=MAC_ARM64 -DCMAKE_BUILD_TYPE=Release
bash [Intel]
cmake -G Xcode -B build -S src -DCMAKE_TOOLCHAIN_FILE=../toolchain/ios.toolchain.cmake -DPLATFORM=MAC -DCMAKE_BUILD_TYPE=Debug
编译
bash [Release]
cmake --build build --config Release
[Debug]
cmake --build build --config Debug

Android

使用Android Studio打开目录 src/android/java, 开始自动下载 gradle 等依赖
工程结构
包含demo和 gpupixel module, 如下

编译
双击右侧 gradle -> gpupixel -> build -> assemble 开始编译

Windows

Windows编译需要安装 Cmake 和 MinGW64.
生成工程
bash [Release]
cmake -G "MinGW Makefiles" -B build -S src -DCMAKE_BUILD_TYPE=Release
bash [Debug]
cmake -G "MinGW Makefiles" -B build -S src -DCMAKE_BUILD_TYPE=Debug
编译
bash [Release]
cmake --build build --config Release
bash [Debug]
cmake --build build --config Debug

Linux (Test On Ubuntu)

环境配置
bash
install cmake
sudo apt-get install cmake pkg-config
install dependent lib
sudo apt-get install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev libglfw3-dev
生成工程
bash [Release]
cmake -B build -S src -DCMAKE_BUILD_TYPE=Release
bash [Debug]
cmake -B build -S src -DCMAKE_BUILD_TYPE=Debug
编译
bash [Release]
cmake --build build --config Release
bash [Debug]
cmake --build build --config Debug