0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

11/20 zlibのインストール

0
Last updated at Posted at 2024-11-20

11/20日記

zlibのインストール

このページを参考にしている
https://www.kkaneko.jp/tools/win/cuda.html#cudnn84

cd /d c:%HOMEPATH%
rmdir /s /q zlib
git clone https://github.com/madler/zlib
cd zlib
del CMakeCache.txt
rmdir /s /q CMakeFiles\
cmake . -G "Visual Studio 17 2022" -A x64 -T host=x64 -DCMAKE_INSTALL_PREFIX=c:/zlib
cmake --build . --config RELEASE --target INSTALL
powershell -command "$oldpath = [System.Environment]::GetEnvironmentVariable(\"Path\", \"Machine\"); $oldpath += \";c:\zlib\bin\"; [System.Environment]::SetEnvironmentVariable(\"Path\", $oldpath, \"Machine\")"
powershell -command "[System.Environment]::SetEnvironmentVariable(\"ZLIB_HOME\", \"C:\zlib\", \"Machine\")"

このコマンドを順に実行した。

cmake --build . --config RELEASE --target INSTALL

このコマンドでエラーが出る。

一時ファイルの保存先は、このように変更した。
スクリーンショット 2024-11-20 145606.png

今出ているエラーは、おそらくvscoden関連のパスに日本語が含まれているからだと思う。

C:\Users\Ec5-30ec32116l(長岡高専)\AppData\Local\Programs\Microsoft VS Code\bin

改善方法として、vscodeを別のディレクトリに再インストールしてみる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?