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 9054543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:42:57+00:00 2026-06-16T13:42:57+00:00

My project was working just fine until this morning. I was using xcode 4.3,

  • 0

My project was working just fine until this morning. I was using xcode 4.3, and an older version of OpenCV (I’m not sure about the exact version). OSX was already 10.7.x, but not 10.7.5

Today, after upgrading OSX to 10.7.5, xcode to 4.5.2, and downloading OpenCV 2.4.3, I am getting the following linker errors when trying to build the project:

Undefined symbols for architecture armv7:
“_OBJC_CLASS_$_ALAssetsLibrary”, referenced from:
objc-class-ref in opencv2(cap_ios_video_camera.o)
“cv::FeatureDetector::create(std::string const&)”, referenced from:
-[ImageAnalyzer detectBlobs:] in ImageAnalyzer.o
“cv::FeatureDetector::detect(cv::Mat const&, std::vector >&, cv::Mat const&) const”, referenced from:
-[ImageAnalyzer detectBlobs:] in ImageAnalyzer.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

In order to use the new opencv framework I removed the reference to the old framework, and referenced the project to the official prebuilt opencv2.framework downloaded from here.
I also removed the reference to libz.dylib, and added a reference to libc++.dylib instead.
Last step was to update the prefix file to the new framework. The relevant part in the prefix file now looks like this:

#ifdef __cplusplus
#import <opencv2/opencv.hpp>
#endif

It all narrowed down to these 4 linker errors I can’t seem to get rid of. I tried using libstdc++.dylib, but I am getting even more errors. I also tried building OpenCV myself as explained here, but I am still getting the same errors as the prebuilt framework.

What did I miss? Is there anything else I need to change in my project?

UPDATE:
As seen here, setting the “C++ Standard Library” to “libc++ (LLVM C++ standard libray with C++ 11 support” yielded only one error:

clang: error: invalid deployment target for -stdlib=libc++ (requires iOS 5.0 or later)

Changing the deployment target to iOS 5 finally got my project to run again.
Does this mean OpenCV 2.4.3 doesn’t work on iOS versions older than 5?

  • 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-06-16T13:42:58+00:00Added an answer on June 16, 2026 at 1:42 pm

    Since I can’t seem to get an answer regarding the versions (neither here nor at the OpenCV Q&A site), I’m going to post this as an answer, as it at least solved the issue. This is described here.

    In your project’s Build Settings, go down to the section Apple LLVM compiler 4.1-Language.
    There:
    Set C++ Language Dialect to Compiler Default
    Set C++ Standard Libray to libc++ (LLVM C++ standard libray with C++ 11 support

    After doing the above, I stopped getting those linker errors, and only got one error instead, which stated that only iOS 5 and above is supported. Changing the Deployment Target to 5.0 in the project summery did the trick.

    On a final note, I’m still not sure what it means, regarding OpenCV 2.4.3’s compatibility with iOS versions older than 5.

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

Sidebar

Related Questions

I have just begun working on a project which uses Mercurial as a version
I've got an existing EF4.1 project which is working just fine. I've added a
I am creating a template factory for my project, everything was working fine until
Okay, so my application was working just fine until I decided to clean up
I have an iPhone (Xcode) Project that was working fine. Something must have been
I was developing an app in Xcode and everything was working just fine. I
So I just finished working the project at http://msdn.microsoft.com/en-us/data/gg685489 . I am trying to
So I'm working on just a learning project to expose myself to doing some
I've just started working on an existing CakePHP project. I will be developing a
I just started working on my first Visual Studio project, and I imported all

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.