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?
- To create a folder when we're going to keep all files our project, (main.cpp, compiler.sh, ejemplo.exe, images)
- # mkdir Compiler
- In Compliar folder saves the Script compilar.sh
- To Open terminal. We're going to write the route when we created the Compiler folder
- # cd /home/root/Desktop/Compiler/
- To execute the script.
- # sh ./compilar.sh main.cpp ejemplo
- To run ejemplo.exe
- # ./ejemplo
Now, We have the firts program OpenCV running on BBB .
nive
ReplyDelete