opencv for python on mavericks

后端 未结 1 1537
花落未央
花落未央 2021-01-07 01:41

I know its too soon, but ive upgraded to OSX mavericks and I\'m unable to install opencv using Homebrew.

    ==> Installing dependencies for opencv: cmake         


        
相关标签:
1条回答
  • 2021-01-07 02:21

    I was able to install opencv on a fresh install of mavericks by installing the command line tools provided by apple (either via Xcode or via the developer's site), using the cmake installer to install cmake, then grabbing the opencv2.4.3 source and running the following:

    tar -xf opencv-2.4.3.tar.gz
    cd opencv-2.4.3
    echo "#define GTEST_USE_OWN_TR1_TUPLE 1" | cat > temp1
    cat modules/ts/include/opencv2/ts/ts_gtest.h > temp2
    cat temp1 temp2 > modules/ts/include/opencv2/ts/ts_gtest.h
    mkdir build
    cd build
    cmake .. -Wno-dev
    make -j8 && sudo make install
    
    0 讨论(0)
提交回复
热议问题