Saturday, June 18, 2011

[OS X] Could not find install_name_tool, please check your installation…

I’ve been (re)setting up my android development environment and, as expected, things aren’t as straightforward on a mac as expected. The last step has been to setup the latest ndk and android-opencv. This required me to install and configure the latest android cmake. All was going fine until I hit the following snag while trying to test out everything…

talmai@~/android-cmake/samples/hello-cmake/androidbuild: cmake -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN ..
-- Found SWIG: /opt/local/bin/swig (found version "2.0.1")
-- The C compiler identification is GNU
CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeFindBinUtils.cmake:71 (MESSAGE):
Could not find install_name_tool, please check your installation.



Solution? Run ‘ccmake’ instead of ‘cmake’ and update your ‘install_name_tool’ entry to ‘/usr/bin/install_name_tool’ (or wherever it is in your system).

No comments:

Post a Comment