我通过克隆https://github.com/microsoft/onnxruntime并运行脚本从头构建了适用于 Windows 的 ONNX Runtime build.bat
。它成功调用了 CMake 并编译并生成了一堆文件到build/Windows/RelWithDebInfo
目录中。
现在我想将该库安装到我的系统中。
我习惯于 Linux 世界,那里通常有一个 Makefile,然后我就可以运行sudo make install
。
我已经cmake --install .
从RelWithDebInfo
目录中运行了,但是这产生了
cmake --install .
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:36 (file):
file cannot create directory: C:/Program
Files/onnxruntime/include/onnxruntime. Maybe need administrative
privileges.
这很奇怪,因为配置错误。它不应该是“Release”,而应该是“RelWithDebInfo”。
如何安装正确的配置?