LAZI-2240 / opencv

Open Source Computer Vision Library
opencv.org
Other
0 stars 0 forks source link

Fall 2016 CSE 2040 Group Project (Open CV) Members: Liandra, Abdul, Zhi, Ilya

Handling Git

!Always Pull Before!

add files or paths to .gitignore to make git ignore them

don't commit trash!

  1. Install git

  2. go into/create your future parent directory of opencv repo

  3. git clone where is address of our team repository

  4. After repository is downloaded go to it and make sure it's the same(ls, tree)

  5. create a text file named after you and add some text to it

    echo 'it's my first commit!' >>

  6. add that to git tracking

    git add

  7. make a commit

    git commit -m ' commit'

  8. push your commit to master branch

    git push origin master

Note: if you have troubles with our remote repo url use:

  git remote set-url URL

Building opencv

  mkdir build

  cd build

  cmake -D BUILD_EXAMPLES=ON  ../

(add all needed flags)

Alternatively cmake-gui: sources: ../opencv build: ../opencv/build

check all needed flags and add your own(BUILD_EXAMPLES)

dont build java, cuda, etc it WILL slow the build!

after success
  make 

(make -jx faster with >=x processors)

  sudo make install

##########TO CHECK THE BUILD############

set needed Environmental variables: LD_LIBRARY_PATH, etc

compile with pkg-config for convienience:

 g++ -o out.exe sourcefile `pkg-config --cflags --libs opencv`