Rust
와 wgpu
를 사용한 3차원 그래픽스 안드로이드 애플리케이션을 제작한다.
이 프로젝트를 빌드하여 애플리케이션을 생성하기 위해서는 Android Studio가 필요합니다.
다음 사이트
를 참고하여 Android Studio를 설치해 주세요.
이 프로젝트는 "NDK"와 "Android SDK Command-line Tools"가 Android Studio에 추가되어야 합니다.
Settings > Languages & Frameworks > Android SDK > SDK Tools
에서 "NDK (Side by side)"와 "Android SDK Command-line Tools (latest)"를 선택한 후 적용 버튼을 눌러 다운로드 받습니다.
생성된 Android 애플리케이션에 연결되는 라이브러리를 생성하기 위해 Rust가 필요합니다.
다음 사이트
를 참고하여 Rust를 설치해 주세요.
이 프로젝트는 x86_64
아키텍처 또는 arm64
아키텍처를 사용하는 Android 기기나 애뮬레이터에서
애플리케이션이 동작하는 것을 전재로 설계되었습니다.
터미널이나 명령 프롬프트에서 다음 명령어를 실행합니다.
rustup target add aarch64-linux-android
rustup target add x86_64-linux-android
Rust 라이브러리를 빌드할 때 Python이 사용됩니다.
다음 사이트
를 참고하여 Python을 설치해 주세요.
이 프로젝트는 python을 가리키는 환경 변수 python3
가 필요합니다.
Android Studio를 실행하여 프로젝트의 "Android" 디렉토리를 엽니다.
그 다음 빌드 대상을 선택한 후, 빌드 버튼을 눌러 Android 애플리케이션을 생성하여 실행합니다.
Create a 3D graphics Android application using Rust
and wgpu
.
Android Studio is required to build this project to create an application.
Please refer to the following site
to install Android Studio.
This project requires the "NDK" and "Android SDK Command-line Tools" to be added to Android Studio.
Go to Settings > Languages & Frameworks > Android SDK > SDK Tools
, select "NDK (Side by side)" and "Android SDK Command-line Tools (latest)" and press the Apply button to download them.
Rust is required to create the libraries that link to the generated Android application.
Please refer to the following site
to install Rust.
This project is designed entirely for applications to work on Android devices or emulators using the x86_64
architecture or arm64
architecture.
In a terminal or cmd, run the following commands
rustup target add aarch64-linux-android
rustup target add x86_64-linux-android
Python is used to build the Rust library.
Please refer to the following site
to install Python.
This project requires the environment variable python3
, which points to python.
Run Android Studio to open the "Android" directory for this project.
Next, select a build target, and then press the Build button to generate and run Android application.