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.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to