cannot build oiio static #3324
Unanswered
raphaeljnwave
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I hardly tried to compile oiio using static libs, but I think I miss something.
I am compiling it on Centos 7. I use yum to install mandatory packages and use the scripts inside src/build-scripts to build OpenEXR, libtiff, pybind11, etc. For each build_....bash I export the xxx_ROOT env var.
When I run
make BUILDSTATIC=1 BUILD_SHARED_LIBS=0 OIIO_BUILD_TESTS=0
for the first time, it tell me this:CMake Error in src/libOpenImageIO/CMakeLists.txt:
Then if I run the
make BUILDSTATIC=1 BUILD_SHARED_LIBS=0 OIIO_BUILD_TESTS=0
command a second time, It compile successfully but when I try to run an executable from dist folder (e.g. oiio/dist/bin/oiiotool) It tell me/home/raphaelj/Downloads/oiio/dist/bin/oiiotool: error while loading shared libraries: libIlmImf-2_4.so.24: cannot open shared object file: No such file or directory
Which seems to be the library from OpenEXR.
Do you have any idea how to solve these ?
Thank you
Raphael
Beta Was this translation helpful? Give feedback.
All reactions