Replies: 6 comments 4 replies
-
This option is not available for all the configuration but it is possible to statically build onnxruntime: https://github.com/microsoft/onnxruntime/blob/main/tools/ci_build/build.py#L286C28-L286C44. The flag |
Beta Was this translation helpful? Give feedback.
-
The script is written in python but it is used to build any version of onnxruntime. The python build is enabled with option --build_wheel. If not present, python bindings is not built. It builds the full command line for cmake and then calls cmake. |
Beta Was this translation helpful? Give feedback.
-
It would require to change the cmake file to produce one file or maybe you can insert the command you need in the makefile to produce one. The list you need is defined here: https://github.com/microsoft/onnxruntime/blob/main/cmake/onnxruntime.cmake#L195. |
Beta Was this translation helpful? Give feedback.
-
@xadupre I managed to create a static onnxruntime library. Can you please tell me if it is possible to create a static version of onnxruntime with DirectML EP? If it's so, any hints would help me a lot. |
Beta Was this translation helpful? Give feedback.
-
I assume you added |
Beta Was this translation helpful? Give feedback.
-
I'm curious, in what scenario would you be unable to use a .so file? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to build static library of libOnnxruntime if somebody is aware? We are stuck. As per our business use case we can not use .so library.
Feeling really stuck on the same.
Beta Was this translation helpful? Give feedback.
All reactions