File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,14 @@ function install_conda() {
141141 if ! pip install open3d-cpu==0.17.0; then return 1; fi
142142 elif [[ " $( uname) " == " Darwin" ]]; then
143143 if ! pip install open3d==0.17.0; then return 1; fi
144- # fix hard-coded homebrew libomp.dylib
145- pushd $CONDA_PREFIX /lib/python3.9/site-packages/open3d/cpu
146- install_name_tool -change /opt/homebrew/opt/libomp/lib/libomp.dylib @rpath/libomp.dylib pybind.cpython-39-darwin.so
147- install_name_tool -add_rpath @loader_path/../../../ pybind.cpython-39-darwin.so
148- popd
144+
145+ if [[ " $( uname -m) " == " arm64" ]]; then
146+ pushd $CONDA_PREFIX /lib/python3.9/site-packages/open3d/cpu
147+ install_name_tool -change /opt/homebrew/opt/libomp/lib/libomp.dylib @rpath/libomp.dylib pybind.cpython-39-darwin.so
148+ install_name_tool -add_rpath @loader_path/../../../ pybind.cpython-39-darwin.so
149+ popd
150+ ln -sf " $CONDA_PREFIX /lib/libomp.dylib" " $CONDA_PREFIX /lib/python3.9/site-packages/open3d/cpu/../../../libomp.dylib"
151+ fi
149152 else
150153 if ! pip install open3d==0.17.0; then return 1; fi
151154 fi
You can’t perform that action at this time.
0 commit comments