Skip to Content
Hands-On Robotics Programming with C++
book

Hands-On Robotics Programming with C++

by Dinesh Tavasalkar
March 2019
Intermediate to advanced
312 pages
7h 37m
English
Packt Publishing
Content preview from Hands-On Robotics Programming with C++

Compiling and installing OpenCV

To compile and install OpenCV, we need to go through the following steps:

  1. Go inside the opencv-4.0.0 folder. Change the directory to the opencv-4.0.0 folder using the following command:
cd opencv-4.0.0
  1. Inside this folder, create a build folder. To do so, type the following command:
mkdir build
  1. To open the build directory, type the following command:
cd build
  1. After changing the directory to build, enter the following command:
cmake -D CMAKE_BUILD_TYPE=RELEASE \-D CMAKE_INSTALL_PREFIX=/usr/local \-D BUILD_opencv_java=OFF \-D BUILD_opencv_python2=OFF \-D BUILD_opencv_python3=ON \-D PYTHON_DEFAULT_EXECUTABLE=$(which python3) \-D INSTALL_C_EXAMPLES=ON \-D INSTALL_PYTHON_EXAMPLES=ON \-D BUILD_EXAMPLES=ON\ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming

Learn Robotics Programming

Danny Staple
C++ Reactive Programming

C++ Reactive Programming

Praseed Pai, Peter Abraham

Publisher Resources

ISBN: 9781789139006Supplemental Content