- Rust Programming By Example
- Guillaume Gomez Antoni Boucher
- 139字
- 2021-07-02 19:13:03
Windows (MSVC)
A few steps will be required in order to make all of it work. Follow the guide!
- Download MSVC development libraries from http://www.libsdl.org/ SDL2-devel-2.0.x-VC.zip.
- Unpack SDL2-devel-2.0.x-VC.zip to a folder of your choice. (You can delete it afterward.)
- Copy all lib files from the following path:
SDL2-devel-2.0.x-VC\SDL2-2.0.x\lib\x64\
The lib files will be pasted here:
C:\Program Files\Rust\lib\rustlib\x86_64-pc-windows-msvc\lib
Alternatively, they'll be pasted to your library folder of choice. Ensure that you have a system environment variable with the following:
LIB = C:\your\rust\library\folder
Here, the current toolchain is probably stable-x86_64-pc-windows-msvc.
- Copy SDL2.dll from the following code snippet:
SDL2-devel-2.0.x-VC\SDL2-2.0.x\lib\x64\
The copied SDL2.dll is pasted into your cargo project, right next to your Cargo.toml.
- When you're shipping your game, make sure that you copy SDL2.dll to the same directory that your compiled exe is in; otherwise, the game won't launch.
推薦閱讀
- 胡華文集(第一卷)
- 從私藏到公共展覽:民國時期廣州的博物館和展覽會
- 新時代檔案工作新思維
- Learning Robotics using Python
- 地方政府數字檔案集中管理模式研究(國家社會科學基金項目成果)
- 北京大學中國古文獻研究中心集刊·第十四輯
- 美華書館:檔案如是說(新聞出版博物館文庫·研究)
- 云環境下的文件檔案可信性保障
- 博物館與文化浙江建設:浙江省博物館學會2017年學術研討會論文集
- 構筑閱讀天堂:圖書館服務設計探索
- 中國古典文獻學(東北師范大學文學院學術史文庫)
- 檔案智慧化管理與開發利用的探索研究
- 國學研究文萃·文學卷
- 檔案修復與歷史資料的數字化:第六屆東亞史料研究編纂機構聯席會議論文集
- 圖書情報與圖書館服務探究