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

Run export / version pinning missing for cpp package #76

Closed
1 task done
kuepe-sl opened this issue Oct 10, 2023 · 0 comments · May be fixed by #78
Closed
1 task done

Run export / version pinning missing for cpp package #76

kuepe-sl opened this issue Oct 10, 2023 · 0 comments · May be fixed by #78
Labels
bug Something isn't working

Comments

@kuepe-sl
Copy link

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

When building a Conda package that links against onnxruntime-cpp and installing it later, it will NOT install onnxruntime-cpp due to the run export setting being missing.

I also noticed, that the version pinning has different requirements depending on the platform:

  • Windows: output library files are bin/onnxruntime_conda.dll and lib/onnxruntime_conda.lib.
    • run export {{ pin_subpackage('onnxruntime-cpp', max_pin='x') }} is sufficient
  • Linux: output library files are lib/libonnxruntime.so.1.16.0 and lib/libonnxruntime.so. The latter file is a copy of the former file and not a symlink.
    • run export {{ pin_subpackage('onnxruntime-cpp', max_pin='x.x.x') }} is required
    • Reason: The internal SONAME refers to libonnxruntime.so.1.16.0 in both files. This causes the linker to use the .so.1.16.0 files, even if you explicitly link to the version-less .so file.

Installed packages

N/A

Environment info

N/A
@kuepe-sl kuepe-sl added the bug Something isn't working label Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant