You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First I have downloaded the binary package from the github release page (version 1.20.1). After that I have unzipped the contents. Creating a directory called onnxruntime-linux-x64-gpu-1.20.1. Them I have created a simple CMakeLists.txt
cmake_minimum_required(VERSION 3.28)
project(onnx-test LANGUAGES C CXX CUDA VERSION 0.0.1)
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS NO)
find_package(onnxruntime REQUIRED)
CMake Error at onnxruntime-linux-x64-gpu-1.20.1/lib/cmake/onnxruntime/onnxruntimeTargets.cmake:84 (message):
The imported target "onnxruntime::onnxruntime" references the file
"/workspaces/onnx-cpp/onnxruntime-linux-x64-gpu-1.20.1/lib64/libonnxruntime.so.1.20.1"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/workspaces/onnx-cpp/onnxruntime-linux-x64-gpu-1.20.1/lib/cmake/onnxruntime/onnxruntimeTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
onnxruntime-linux-x64-gpu-1.20.1/lib/cmake/onnxruntime/onnxruntimeConfig.cmake:26 (include)
CMakeLists.txt:29 (find_package)
I them copied all files from the lib directory to a newly created lib64 directory. This change fix the previous error message but throw another one.
CMake Error in csrc/CMakeLists.txt:
Imported target "onnxruntime::onnxruntime" includes non-existent path
"/workspaces/onnx-cpp/onnxruntime-linux-x64-gpu-1.20.1/include/onnxruntime"in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
Creating an empty onnruntinme at the error path, "fix the cmake error", to throw another one during compilation:
When trying to compile a simple example (only including the header onnxruntime_cxx_api.h)
Describe the issue
First I have downloaded the binary package from the github release page (version 1.20.1). After that I have unzipped the contents. Creating a directory called
onnxruntime-linux-x64-gpu-1.20.1
. Them I have created a simpleCMakeLists.txt
I proceeded to configure the cmake project
Them I got this error
I them copied all files from the lib directory to a newly created lib64 directory. This change fix the previous error message but throw another one.
Creating an empty onnruntinme at the error path, "fix the cmake error", to throw another one during compilation:
When trying to compile a simple example (only including the header
onnxruntime_cxx_api.h
)the CMake try to use the fullpath (with onnxruntime).
I believe that are some problem with the exported targets trying to use a older configuration
Urgency
No response
Target platform
x64-cuda
Build script
binary release from github
Error / output
CMake detection error of these binary release
Visual Studio Version
No response
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: