- WSLのセットアップ
- 今回はUbuntu 18.04
- Rustのセットアップ
curl https://sh.rustup.rs -sSf | sh- nightlyを入れる
rustup component add rust-srccargo install cargo-xbuild- ビルドにはCコンパイラが必要
apt-get install gcc
- ビルドにはCコンパイラが必要
- devkitproのセットアップ
- https://github.com/devkitPro/pacman/releasesから
devkitpro-pacman.debファイルをダウンロード dpkg -i ./devkitpro-pacman.debdkp-pacman -S gba-dev/opt/devkitpro/devkitARM/binと/opt/devkitpro/tools/binへのパスを通す
- https://github.com/devkitPro/pacman/releasesから
- プロジェクトを初期化する
curl https://raw.githubusercontent.com/rust-console/gba/master/init.sh -sSf | bash -s APP_NAMEAPP_NAMEは適当に決める
- ビルド
make- libcoreのsimdモジュールがコンパイルできずにエラー
- とりあえずコメントアウト
- gbaモジュール周りがエラーになる
Cargo.tomlの[dependencies]にgba = { git = "https://github.com/rust-console/gba" }を追加する
- vscodeで
panic_implのエラーがでる- “rust.all_targets”: false
- https://github.com/rust-lang/rls/issues/904
- libcoreのsimdモジュールがコンパイルできずにエラー
AGB開発環境を作る(WSL+Rust編)
·
Updated:
Share this post on: