OPENCV

We're going to create the first program on Beaglebone Black using OpenCV.

main.cpp



We will use a script to compiler and create an executable. the script "compilar.sh" will compiler main.cpp file and will create a executable called ejemplo.exe.


How use the Script?
  1. To create a folder when we're  going to keep all files our project, (main.cpp, compiler.sh, ejemplo.exe, images)
    • # mkdir Compiler
  2. In Compliar folder  saves the Script compilar.sh
  3. To Open terminal. We're going to write the route when we created the Compiler folder
    • # cd /home/root/Desktop/Compiler/
  4. To execute the script.
    • # sh ./compilar.sh main.cpp ejemplo
  5. To run ejemplo.exe
    • # ./ejemplo

Now, We have the firts program OpenCV  running  on BBB .



1 comment: