geniusdo / opencv-_starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenCV starter

author: geniusdo

make sure that you have installed all pkg you need and correct environment settings

To use this example code, you only have to follow the steps below.

remember to install libgtk2.0-dev before cmake . The command is as bellow

sudo apt install libgtk2.0-dev  

then do

`cmake . && make`

To compile a .cpp file you code

  1. Create a .cpp file, finish your code.

  2. Use the terminal in vscode or create a new terminal in the same place where you put your code. Use the command below to create a Cmake generating file.

    cat > CMakeLists.txt

  3. Setup your CMakeLists file. In this session, you'd have to link the libs you need and define the excutable file, which you could learn in this website:

    Cmake tutorial

  4. Open the terminal, start building your code. Follow steps as blow:

    cmake .

    make

  5. After compiling finished, run the excutable file generated automatically by camke, using:

    ./"name of your excutable file" parameters

About


Languages

Language:Makefile 25.8%Language:C++ 25.6%Language:C 25.2%Language:CMake 23.3%