[CMake] Building OpenCV on Mac OS X Yosemite with CMake

Neamah neaman at nod-labs.com
Tue Jul 7 16:41:44 EDT 2015


Hi, 

I've been set up with OpenCV for about a month now (I'm using it on Mac and
on Android too), but I recently tried rebuilding OpenCV on both Mac and
Android and I haven't been able to due to multiple CMake errors. 

Here's what I see when I try building:

cd opencv/platforms
rm -rf build_android_arm
sh ./scripts/cmake_android_arm.sh

CMake Error at platforms/android/android.toolchain.cmake:530 (message):
  It is not possible to change the path to the NDK on subsequent CMake run.
  You must remove all generated files from your build folder first.

     
Call Stack (most recent call first):
  /opt/local/share/cmake-3.2/Modules/CMakeDetermineSystem.cmake:98 (include)
  CMakeLists.txt:88 (project)


CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Could not find cmake module file:
/Users/nodlabs/nod/src/thirdparty/opencv/CMakeFiles/3.2.3/CMakeCXXCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Could not find cmake module file:
/Users/nodlabs/nod/src/thirdparty/opencv/CMakeFiles/3.2.3/CMakeCCompiler.cmake
-- Configuring incomplete, errors occurred!


Can anybody please shed light on what's going on? I'm not sure how this has
been working just fine and doesn't anymore. I tried reinstalling the
android-ndk from scratch, but that didn't work either. 




--
View this message in context: http://cmake.3232098.n2.nabble.com/Building-OpenCV-on-Mac-OS-X-Yosemite-with-CMake-tp7590991.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list