Skip to content

CMake Error of an non-existing folder when I build the lib using WITH_ONNX option #61

Description

@yangchihyuan

I tried onnxruntime-linux-x64-gpu-1.21.0 and onnxruntime-linux-x64-gpu-1.22.0, and the same error.

My command to build the lib is
cmake -DWITH_ONNX=/home/chihyuan/RobotNurseHelper_build/onnxruntime-linux-x64-gpu-1.21.0 -D onnxruntime_DIR=/home/chihyuan/RobotNurseHelper_build/onnxruntime-linux-x64-gpu-1.21.0/lib/cmake/onnxruntime ..

My error message is
CMake Error at /home/chihyuan/RobotNurseHelper_build/onnxruntime-linux-x64-gpu-1.21.0/lib/cmake/onnxruntime/onnxruntimeTargets.cmake:83 (message):
The imported target "onnxruntime::onnxruntime" references the file

 "/home/chihyuan/RobotNurseHelper_build/onnxruntime-linux-x64-gpu-1.21.0/lib64/libonnxruntime.so.1.21.0"

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

    "/home/chihyuan/RobotNurseHelper_build/onnxruntime-linux-x64-gpu-1.21.0/lib/cmake/onnxruntime/onnxruntimeTargets.cmake"

but not all the files it references.

Call Stack (most recent call first):
/home/chihyuan/RobotNurseHelper_build/onnxruntime-linux-x64-gpu-1.21.0/lib/cmake/onnxruntime/onnxruntimeConfig.cmake:26 (include)
CMakeLists.txt:52 (find_package)

The error message confuses me because I don't have the folder /home/chihyuan/RobotNurseHelper_build/onnxruntime-linux-x64-gpu-1.21.0/lib64. The unzipped folder from onnxruntime released file is onnxruntime-linux-x64-gpu-1.21.0/lib rather than lib64.

Any suggestions? Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions