OpenCV installation on Mac OS X

前端 未结 2 744
深忆病人
深忆病人 2020-12-05 07:39

I have trawled through all of Google\'s and Stack Overflow\'s search results in order to install stupid OpenCV on my Mac and all the methods have been completely useless.

2条回答
  •  离开以前
    2020-12-05 08:38

    There is a great tutorial located here. It highlights that the version you are trying to use "is not compatible". I am thinking that you should try installing the version stated in those instructions and see how you go.

    The following instructions are taken directly from that link:

    INSTALLING CMAKE

    1. First you need to download the .dmg file under Binary Distribution of CMake here. At the time of I installed this, the file name is cmake-2.8.11.2-Darwin64-universal.dmg.

    2. Upon completion of the installation you will be prompted whether to put CMake in /usr/bin, select Yes and finish installation

    3. To ensure that CMake has been successfully installed, type cmake -version in Terminal

    INSTALLING OPENCV

    1. First, download the tar file of OpenCV 2.4.3 stable version here and DO NOT use the latest version. I struggled with the installation because I used OpenCV 2.4.6.1 and it's not yet compatible.

    2. Extract the tar file in a folder and go to that folder through the terminal, e.g. cd Downloads/OpenCV-2.4.3

    3. Now, each of the following line is to be executed in Terminal and must be executed successfully (no error)

      1. mkdir build
      2. cd build
      3. cmake -G "Unix Makefiles" ..
      4. make -j8
      5. sudo make install
    4. You are all set to use OpenCV!

提交回复
热议问题