C++ library SONAME without full version number #21281
Labels
api
issues related to all other APIs: C, C++, Python, etc.
feature request
request for unsupported feature or enhancement
Describe the issue
In onnxruntime native so file, the SONAME is with version name.
why don't we maintain library version as like
Refer: baeldung.com/linux/shared-object-filenames
It required a scenario where I build a library/executable, which is used to compile with certain version, say v1.17.3. It become the user of the library/executable also must stay with v1.17.3 I they update the library to 1.18.1 it couldn't find the library libonnxruntime.so.1.17.3.
To reproduce
Download a native library tarball v1.17.3.
Create a simple cpp file with create a empty session.
compile it using g++
Use LD_LIBRARY_PATH to add the library in search path
Got output
If I run it with v1.18.1 in LD_LIBRARY_PATH, it doesn't work.
Download a tarball v1.18.1
Got error like
Urgency
No response
Platform
Linux
OS Version
Ubuntu
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
all version (tried v1.17.3, 1.15.1 and 1.18.1)
ONNX Runtime API
C++
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: