Open moondayyy opened 5 months ago
I want to build the library statically and I want to link it to my own library and use the SHARED library I created in another project.
My build code: ./build.sh --config=MinSizeRel --update --build --parallel --minimal_build --disable_ml_ops --disable_exceptions --disable_rtti --enable_reduced_operator_type_support --skip_tests --allow_running_as_root --cmake_extra_defines CMAKE_INSTALL_PREFIX=prefix --cmake_extra_defines CMAKE_POSITION_INDEPENDENT_CODE=ON make install Output lib folder:
./build.sh --config=MinSizeRel --update --build --parallel --minimal_build --disable_ml_ops --disable_exceptions --disable_rtti --enable_reduced_operator_type_support --skip_tests --allow_running_as_root --cmake_extra_defines CMAKE_INSTALL_PREFIX=prefix --cmake_extra_defines CMAKE_POSITION_INDEPENDENT_CODE=ON
make install
How can I make a static build for Linux x86_64? NOTE: https://github.com/csukuangfj/onnxruntime-libs/releases The built library in the link above works, but I could not find the build code.
No response
Linux - x86_64
./build.sh --config=MinSizeRel --update --build --parallel --minimal_build --disable_ml_ops --disable_exceptions --disable_rtti --enable_reduced_operator_type_support --skip_tests --allow_running_as_root --cmake_extra_defines CMAKE_INSTALL_PREFIX=prefix --cmake_extra_defines CMAKE_POSITION_INDEPENDENT_CODE=ON make install
I call the SHARED library I created with dlopen, but my pointer address always comes back as NULL.
Set the LD_DEBUG env var to something, then it will tell you why dlopen failed.
The build code is posted in this repo.
Describe the issue
I want to build the library statically and I want to link it to my own library and use the SHARED library I created in another project.
My build code:![image](https://github.com/microsoft/onnxruntime/assets/81816237/6007889c-387a-4dee-9580-c134520525ed)
./build.sh --config=MinSizeRel --update --build --parallel --minimal_build --disable_ml_ops --disable_exceptions --disable_rtti --enable_reduced_operator_type_support --skip_tests --allow_running_as_root --cmake_extra_defines CMAKE_INSTALL_PREFIX=prefix --cmake_extra_defines CMAKE_POSITION_INDEPENDENT_CODE=ON
make install
Output lib folder:How can I make a static build for Linux x86_64? NOTE: https://github.com/csukuangfj/onnxruntime-libs/releases The built library in the link above works, but I could not find the build code.
Urgency
No response
Target platform
Linux - x86_64
Build script
./build.sh --config=MinSizeRel --update --build --parallel --minimal_build --disable_ml_ops --disable_exceptions --disable_rtti --enable_reduced_operator_type_support --skip_tests --allow_running_as_root --cmake_extra_defines CMAKE_INSTALL_PREFIX=prefix --cmake_extra_defines CMAKE_POSITION_INDEPENDENT_CODE=ON
make install
Error / output
I call the SHARED library I created with dlopen, but my pointer address always comes back as NULL.
Visual Studio Version
No response
GCC / Compiler Version
No response