Hello everyone,

I have problems building oiio on macOS. I have installed the dependencies
via fink.

This is the bit that fails (at 93% :/):

Linking CXX executable imagebuf_test
cd /seb/code/oiio/build/macosx/src/libOpenImageIO && /sw/bin/cmake -E
cmake_link_script CMakeFiles/imagebuf_test.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
  -O3 -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names
 CMakeFiles/imagebuf_test.dir/imagebuf_test.cpp.o  -o imagebuf_test
 -L/sw/opt/boost-1_55/lib  libOpenImageIO.a
/sw/opt/boost-1_55/lib/libboost_filesystem-mt-1_55.dylib
/sw/opt/boost-1_55/lib/libboost_regex-mt-1_55.dylib
/sw/opt/boost-1_55/lib/libboost_system-mt-1_55.dylib
/sw/opt/boost-1_55/lib/libboost_thread-mt-1_55.dylib /sw/lib/libHalf.dylib
/sw/lib/libIex.dylib /sw/lib/libImath.dylib /sw/lib/libIlmThread.dylib
-lopencv_core -lopencv_highgui /sw/lib/libpng.dylib /usr/lib/libz.dylib
/sw/lib/libtiff.dylib /sw/lib/libjpeg.dylib /usr/lib/libz.dylib
/sw/lib/libtiff.dylib /sw/lib/libjpeg.dylib /sw/lib/libwebp.dylib
/sw/lib/libIlmImf.dylib /sw/lib/libgif.dylib /sw/lib/libraw_r.dylib
/sw/lib/libHalf.dylib /sw/lib/libIex.dylib /sw/lib/libImath.dylib
/sw/lib/libIlmThread.dylib -Wl,-rpath,/sw/opt/boost-1_55/lib
ld: library not found for -lopencv_core
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[3]: *** [src/libOpenImageIO/imagebuf_test] Error 1
make[2]: *** [src/libOpenImageIO/CMakeFiles/imagebuf_test.dir/all] Error 2
make[1]: *** [all] Error 2


I ran this to build:
make USE_OPENGL=0 USE_QT=0 USE_PYTHON=0 BUILDSTATIC=1 USE_FIELD3D=0
USE_FFMPEG=0 USE_NUKE=0 USE_OCIO=0  VERBOSE=1


It seems the library for opencv is missing but I do have
libopencv_core.dylib
and others in /sw/lib

Thinking it maybe doesn't have that path I tried adding below
project (OpenImageIO)

set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "/sw/lib")

into CMakeLists.txt
but that did not really help.


I don't know what else to try and I'd be super grateful for any hints into
the right direction!

Thanks much in advance,
Seb
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to