Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3990434
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:29:38+00:00 2026-05-20T06:29:38+00:00

I tried to follow these instructions get OpenCV to compile on my MAC MINI,

  • 0

I tried to follow these instructions get OpenCV to compile on my MAC MINI, but failed at step 6:

../opencv_cmake.sh Simulator ../OpenCV-2.1.0

I got these errors, and I can’t make sense of it. Any clues?

Starting cmake...
Target SDK            = iPhoneSimulator
iOS SDK Version       = 4.1
iOS Deployment Target = 3.0
OpenCV Root           = ../OpenCV-2.1.0
OpenCV Install Prefix = /Users/haoest/Development/iphone_opencv_test/build_simulator/../opencv_simulator

-- 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/iPhoneSimulator.platform/Developer/usr/bin/gcc
-- Check for working C compiler: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -- broken
CMake Error at /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
  The C compiler
  "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc" is
  not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /Users/haoest/Development/iphone_opencv_test/build_simulator/CMakeFiles/CMakeTmp



  Run Build Command:/usr/bin/make "cmTryCompileExec/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
  CMakeFiles/cmTryCompileExec.dir/build

  "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report
  /Users/haoest/Development/iphone_opencv_test/build_simulator/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o

  /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
  -isysroot
  /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk
  -mmacosx-version-min="10.6" -o
  CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c
  /Users/haoest/Development/iphone_opencv_test/build_simulator/CMakeFiles/CMakeTmp/testCCompiler.c


  Linking C executable cmTryCompileExec

  "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_link_script
  CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

  /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
  -isysroot
  /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk
  -mmacosx-version-min="10.6" -Wl,-search_paths_first
  -Wl,-headerpad_max_install_names
  CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o cmTryCompileExec

  ld: warning: in
  /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/usr/lib/libSystem.dylib,
  file was built for i386 which is not the architecture being linked (x86_64)

  Undefined symbols:

    "_exit", referenced from:
        start in crt1.10.6.o

  ld: symbol(s) not found

  collect2: ld returned 1 exit status

  make[1]: *** [cmTryCompileExec] 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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T06:29:39+00:00Added an answer on May 20, 2026 at 6:29 am

    Try this one: http://computer-vision-talks.com/2010/12/building-opencv-for-ios/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to follow this but the default modelbinder let my array null on
I just got out of a small project and I've tried to follow a
I'm trying to follow instructions from Android developers site but I must be doing
I have tried to follow the instructions in Installing and Configuring Web Deploy for
Trying to follow these instructions: (http://dev.mysql.com/doc/refman/5.1/en/ha-memcached-interfaces-mysqludf.html) shell> tar zxf memcached_functions_mysql-1.1.tar.gz shell> cd memcached_functions_mysql-1.1 shell>
I tried to follow the instructions on JOAuth, a java-based OAuth 1 (final) and
I tried to follow many online tutorials to run kmeans example present in Mahout.
I have started using Simple-form and Bootstrap and I have tried to follow this
I want to tail multiple files (and follow them) in CentOS, I've tried this:
tried uncommenting pam_limits.so from the pam.d directory but no luck. Basic PAM seems to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.