amd / RyzenAI-SW

MIT License
380 stars 63 forks source link

problem about example\yolov8:CMAKE Error:Not a file #114

Open leconvo opened 2 months ago

leconvo commented 2 months ago

I configed my environment referring to Ryzen™ AI Software for installation, and I followed the README.md in "example\yolov8"。 when I commanded ".\build.bat" in conda prompt, errors occur:

`PS D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8> .\build.bat

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8>set CMAKE_INSTALL_PREFIX=D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8..

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8>set CMAKE_PREFIX_PATH=D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8..

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8>set ONNXRUNTIME_ROOTDIR=D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8..

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8>cd yolov8

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8>set buildType=Release

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8>set src=D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8>set dst=D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8\build

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8>set "defaultArg=-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON"

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8>set "buildTypeOption=-DCMAKE_CONFIGURATION_TYPES=Release"

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8>set "generatorOption=-A x64 -T host=x64 "Visual Studio 16 2019""

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8>set "prefix=-DCMAKE_INSTALL_PREFIX=D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8.. -DCMAKE_PREFIX_PATH=D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8.. -DONNXRUNTIME_ROOTDIR=D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8.."

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8>cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CONFIGURATION_TYPES=Release -A x64 -T host=x64 "Visual Studio 16 2019" -DCMAKE_INSTALL_PREFIX=D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8.. -DCMAKE_PREFIX_PATH=D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8.. -DONNXRUNTIME_ROOTDIR=D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8.. -B D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8\build -S D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8 CMake Warning: Ignoring extra path from command line:

"D:/PyProject/RyzenAI-SW/tutorial/yolov8_e2e/yolov8/yolov8/Visual Studio 16 2019"

-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.26100. CMake Error at CMakeLists.txt:49 (find_package): By not providing "Findglog.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "glog", but CMake did not find one.

Could not find a package configuration file provided by "glog" with any of the following names:

glogConfig.cmake
glog-config.cmake

Add the installation prefix of "glog" to CMAKE_PREFIX_PATH or set "glog_DIR" to a directory containing one of the above files. If "glog" provides a separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8>cmake --build D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8\build --config Release --clean-first -- /p:CL_MPcount= /nodeReuse:False 适用于 .NET Framework MSBuild 版本 17.10.4+10fbfbf2e MSBUILD : error MSB1009: 项目文件不存在。 开关:yolov8.sln 适用于 .NET Framework MSBuild 版本 17.10.4+10fbfbf2e MSBUILD : error MSB1009: 项目文件不存在。 开关:ALL_BUILD.vcxproj

D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8>cmake --install D:\PyProject\RyzenAI-SW\tutorial\yolov8_e2e\yolov8\yolov8\build --config Release CMake Error: Not a file: D:/PyProject/RyzenAI-SW/tutorial/yolov8_e2e/yolov8/yolov8/build/cmake_install.cmake CMake Error: Error processing file: D:/PyProject/RyzenAI-SW/tutorial/yolov8_e2e/yolov8/yolov8/build/cmake_install.cmake`

how can I figure it out?

cyndwith commented 2 months ago

We are on changes in the yolov8 example in the upcoming update, which should fix this issue.

cyndwith commented 2 months ago

@leconvo Latest changes in the onnx-benchmark should fix this issue.