opencv安装

2018/03/25 opencv

mac

# 从github下载源码
git clone https://github.com/opencv/opencv.git

# 切换到指定版本
git checkout 2.4

# 创建并进入构建目录
mkdir build
cd build

# 前提先安装cmake以及jdk(忽略)
cmake -DBUILD_SHARED_LIBS=OFF ..
make -j8

Buildfile: /Users/fengjianxin/worlspaces/git/github/opencv/build/modules/java/test/.build/build.xml

build:

compile:
    [mkdir] Created dir: /Users/fengjianxin/worlspaces/git/github/opencv/build/modules/java/test/.build/build/classes
    [javac] Compiling 104 source files to /Users/fengjianxin/worlspaces/git/github/opencv/build/modules/java/test/.build/build/classes

jar:
    [mkdir] Created dir: /Users/fengjianxin/worlspaces/git/github/opencv/build/modules/java/test/.build/build/jar
      [jar] Building jar: /Users/fengjianxin/worlspaces/git/github/opencv/build/modules/java/test/.build/build/jar/opencv-test.jar

BUILD SUCCESSFUL
Total time: 5 seconds
[100%] Built target opencv_test_java
[100%] Linking CXX shared library ../../lib/cv2.so
[100%] Built target opencv_python

Search

    Table of Contents