Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are 2 ways to install and link opencv-2.4.2 to XCode

  1. following the steps mentioned in the question to install, and following this to link XCode. But honestly this way didn't work with me !! it generated an armv7 architecture error !!!

  2. Just an easy, pure way :

    • Download opencv2.framework from opencv.org (it's a prebuilt framework -ready to use directly- )
    • Add it to xcode project as adding any library. if you don't know about that, don't worry :) read the content under the title "Adding the OpenCV Framework" here
    • Add headers >> Follow the steps under the title "Include the OpenCV headers" here
    • Write your test code and Run.

Enjoy :)