Installation error on intel-based Mac

Hi!

When I am trying to install otb7.4.1 on Intel-based Macbook, it shows that:

Python 3.7.2 (default, Dec 29 2018, 00:00:04)

[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin

Type “help”, “copyright”, “credits” or “license” for more information.

import otbApplication

zsh: segmentation fault python

ctest gave no error but one warning:

– Found PythonInterp: /opt/anaconda3/envs/otb74/bin/python3 (found version “3.7.2”)
– Found PythonLibs: /opt/anaconda3/envs/otb74/lib/libpython3.7m.dylib (found version “3.7.2”)
– Found Numpy: /opt/anaconda3/envs/otb74/lib/python3.7/site-packages/numpy/core/include
– Configuring done
CMake Warning at CMakeLists.txt:63 (add_library):
Cannot generate a safe runtime search path for target PythonWrapperLib
because there is a cycle in the constraint graph:

dir 0 is [/opt/anaconda3/envs/otb74/lib]
  dir 1 must precede it due to runtime library [libz.dylib]
dir 1 is [/Users/wenzhejiao/otb74/OTB-7.4.1-Darwin64/lib]
  dir 0 must precede it due to runtime library [libpython3.7m.dylib]

Some of these libraries may not be found correctly.

Thank you very much!!

Hi @jiaowz

it looks like there is a problem with conda which “takes the place in prority” of some libs that are also in OTB install. I would recommend using OTB binaries without your conda environment activated if possible. Let me know if it works better. It seems you have an environment with otb 7.4, and also binaries of OTB 7.4. You can’t use both at the same time

Thanks for your reply! But it seems otb binary for intel-based mac is not provided. Is there any way that i can solve this problem? Thanks again.

The binary are made only for intel-based macs from MacOS 10.14 to MacOS 12, so it should work with your macbook. In case you don’t succeed, you can try the docker image, available for OTB 8.0.1 :
docker pull orfeotoolbox/otb:8.0.1