- libuv dependency is added

Ozan Aydin
2025-01-30 17:30:14 +01:00
parent 2483655da7
commit 6b34a9e1c8

@ -25,6 +25,34 @@
1. Install [Rust](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe)
1. Building [libuv](https://github.com/libuv/libuv.git) (v1.39.0) from source (we'll use the folder path in [Build](#build))
- Open `ARM64 Native Tools Command Prompt for VS2022` from start menu
- Change path to the suitable folder
- Run following command to build `libuv`
```cmd
git clone https://github.com/libuv/libuv.git -b v1.39.0
cd libuv
echo Clean folder...
git clean -fxd
echo Configuring libuv...
mkdir libuv\build
cd libuv\build
cmake .. -DBUILD_TESTING=OFF
echo Building libuv...
cmake --build . --config Release
echo Installing libuv...
cmake --install . --prefix ../install
pause
```
1. **(OPTIONAL)** You may install [sccache](https://github.com/mozilla/sccache/releases) for speeding up future builds by cache support.
- You need to add `sccache` to your `PATH` **manually**.
@ -82,7 +110,7 @@
> "C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary\Build\vcvarsarm64.bat" arm64
## Setting Environment Variables
1. Set the following environment variables:
@ -92,6 +120,14 @@
set USE_LAPACK=1
set MSSdk=1
set DISTUTILS_USE_SDK=1
:: please change {YOUR_LIBUV_FOLDER} to the your libuv folder
set libuv_ROOT={YOUR_LIBUV_FOLDER}\install
```
1. Copy `libuv` dll to the `lib` folder to include it for packaging (please check: [Prerequisites](#prerequisites))
```cmd
copy %libuv_ROOT%\lib\Release\uv.dll torch\lib\uv.dll
```
1. **(OPTIONAL)** If you want to use `sccache` for speeding up your future build by cache also set following.