Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not complete compilation #25

Open
matresnan opened this issue Dec 3, 2024 · 1 comment
Open

Could not complete compilation #25

matresnan opened this issue Dec 3, 2024 · 1 comment

Comments

@matresnan
Copy link

PS C:\Users\admin\Desktop\yolov5-onnxruntime> cd .\build
PS C:\Users\admin\Desktop\yolov5-onnxruntime\build> ls
PS C:\Users\admin\Desktop\yolov5-onnxruntime\build> cmake .. -DONNXRUNTIME_DIR=D:\Downloads\onnxruntime-win-x64-1.20.1 -DCMAKE_BUILD_TYPE=Release
-- Building for: Visual Studio 17 2022
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.40.33811.0
-- The CXX compiler identification is MSVC 19.40.33811.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ONNXRUNTIME_DIR: D:\Downloads\onnxruntime-win-x64-1.20.1
-- OpenCV ARCH: x64
-- OpenCV RUNTIME: vc16
-- OpenCV STATIC: OFF
-- Found OpenCV: C:/Program Files/opencv/build (found version "4.10.0")
-- Found OpenCV 4.10.0 in C:/Program Files/opencv/build/x64/vc16/lib
-- You might need to add C:\Program Files\opencv\build\x64\vc16\bin to your PATH to be able to run your applications.
-- Configuring done (17.5s)
-- Generating done (0.4s)
CMake Warning:
Manually-specified variables were not used by the project:

CMAKE_BUILD_TYPE

-- Build files have been written to: C:/Users/admin/Desktop/yolov5-onnxruntime/build
PS C:\Users\admin\Desktop\yolov5-onnxruntime\build> cmake --build .
适用于 .NET Framework MSBuild 版本 17.10.4+10fbfbf2e

1>Checking Build System
Building Custom Rule C:/Users/admin/Desktop/yolov5-onnxruntime/CMakeLists.txt
main.cpp
C:\Users\admin\Desktop\yolov5-onnxruntime\include\cmdline.h(544,20): warning C4267: “参数”: 从“size_t”转换到“int”,可能 丢失数据 [C:
Users\admin\Desktop\yolov5-onnxruntime\build\yolo_ort.vcxproj]
C:\Users\admin\Desktop\yolov5-onnxruntime\include\cmdline.h(732,35): warning C4101: “e”: 未引用的局部变量 [C:\Users\admin\Deskt
op\yolov5-onnxruntime\build\yolo_ort.vcxproj]
detector.cpp
C:\Users\admin\Desktop\yolov5-onnxruntime\src\detector.cpp(51,34): error C2039: "GetInputName": 不是 "Ort::Session" 的成员 [
C:\Users\admin\Desktop\yolov5-onnxruntime\build\yolo_ort.vcxproj]
C:\Users\admin\Desktop\yolov5-onnxruntime\src\detector.cpp(52,35): error C2039: "GetOutputName": 不是 "Ort::Session" 的 成员
[C:\Users\admin\Desktop\yolov5-onnxruntime\build\yolo_ort.vcxproj]
utils.cpp
正在生成代码...
PS C:\Users\admin\Desktop\yolov5-onnxruntime\build>

@itsnine
Copy link
Owner

itsnine commented Jan 1, 2025

@matresnan hello. The current code hasn't been updated in a long time, you probably have newer version of onnxruntime library that has different api than old versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants