Skip to content

Instantly share code, notes, and snippets.

@iley
Created March 31, 2011 11:02
Show Gist options
  • Save iley/896181 to your computer and use it in GitHub Desktop.
Save iley/896181 to your computer and use it in GitHub Desktop.
OpenCV build log
macserver:build_device iley$ SDK_VERSION=4.3 ../opencv_cmake.sh device ../OpenCV-2.1.0
Starting cmake...
Target SDK = iPhoneOS
iOS SDK Version = 4.3
iOS Deployment Target = 3.0
OpenCV Root = ../OpenCV-2.1.0
OpenCV Install Prefix = /Users/iley/Sources/iphone_opencv_test/build_device/../opencv_device
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
-- Check for working C compiler: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -- broken
CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler
"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc" is not able
to compile a simple test program.
It fails with the following output:
Change Dir: /Users/iley/Sources/iphone_opencv_test/build_device/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
/opt/local/bin/cmake -E cmake_progress_report
/Users/iley/Sources/iphone_opencv_test/build_device/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
-miphoneos-version-min=3.0 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
-mmacosx-version-min="10.6" -o
CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c
/Users/iley/Sources/iphone_opencv_test/build_device/CMakeFiles/CMakeTmp/testCCompiler.c
/Users/iley/Sources/iphone_opencv_test/build_device/CMakeFiles/CMakeTmp/testCCompiler.c:1:
error: -mmacosx-version-min not allowed with -miphoneos-version-min
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o] Error 1
make: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:39 (project)
-- Configuring incomplete, errors occurred!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment