mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 08:14:20 +00:00
Fix python installation docs (#1153)
This commit is contained in:
parent
5233221ad9
commit
5b7a0c6466
@ -56,7 +56,7 @@ To get started you are encouraged to use the following resources:
|
||||
Vulkano uses [shaderc-rs](https://github.com/google/shaderc-rs) for shader compilation. In order to
|
||||
build the shaderc-rs crate the following tools must be installed and available on `PATH`:
|
||||
- [CMake](https://cmake.org/)
|
||||
- [Python](https://www.python.org/) (works with both Python 2.x and 3.x)
|
||||
- [Python](https://www.python.org/) (works with both Python 2.x and 3.x, on windows the executable must be named `python.exe`)
|
||||
|
||||
These requirements can be either installed with your favourite package manager or with installers
|
||||
from the projects' websites. Below are some example ways to get setup.
|
||||
@ -66,7 +66,7 @@ from the projects' websites. Below are some example ways to get setup.
|
||||
1. `rustup default stable-x86_64-pc-windows-msvc`
|
||||
2. Install [Build Tools for Visual Studio 2017](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017). If you have already been using this toolchain then its probably already installed.
|
||||
3. Install [msys2](http://www.msys2.org/), following ALL of the instructions.
|
||||
4. Then in the msys2 terminal run: `pacman --noconfirm -Syu mingw-w64-x86_64-cmake mingw-w64-x86_64-python3`
|
||||
4. Then in the msys2 terminal run: `pacman --noconfirm -Syu mingw-w64-x86_64-cmake mingw-w64-x86_64-python2`
|
||||
5. Add the msys2 mingw64 binary path to the PATH environment variable.
|
||||
|
||||
### Windows-gnu Specific Setup
|
||||
@ -81,7 +81,7 @@ Steps 1 and 2 are to workaround https://github.com/rust-lang/rust/issues/49078 b
|
||||
4. Run the command: `rustup target install x86_64-pc-windows-gnu`
|
||||
5. Install [Build Tools for Visual Studio 2017](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017). If you have already been using this toolchain then its probably already installed.
|
||||
6. Install [msys2](http://www.msys2.org/), following ALL of the instructions.
|
||||
7. Then in the msys2 terminal run: `pacman --noconfirm -Syu mingw64/mingw-w64-x86_64-pkg-config mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-make mingw-w64-x86_64-python3`
|
||||
7. Then in the msys2 terminal run: `pacman --noconfirm -Syu mingw64/mingw-w64-x86_64-pkg-config mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-make mingw-w64-x86_64-python2`
|
||||
8. Add the msys2 mingw64 binary path to the PATH environment variable.
|
||||
9. Any cargo command that builds the project needs to include `--target x86_64-pc-windows-gnu` e.g. to run: `cargo run --target x86_64-pc-windows-gnu`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user