Jump to content

RidgeRun Video Stabilization Library/Getting Started/Building the Library: Difference between revisions

no edit summary
No edit summary
Line 61: Line 61:
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
sudo apt install libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev libopencv-imgcodecs-dev
sudo apt install libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev libopencv-imgcodecs-dev
</syntaxhighlight>
Also, there is an issue in Ubuntu 22 regarding the <code>pkgconfig/opencv.pc</code> file. The include path is wrong; it is <code>/usr/include/opencv4/</code>. So, in edit the <code>/usr/lib/pkgconfig/opencv4.pc</code> as:
<syntaxhighlight lang=bash>
- prefix=/usr/local
+ prefix=/usr
</syntaxhighlight>
</syntaxhighlight>


Line 241: Line 234:
</syntaxhighlight>
</syntaxhighlight>
For additional customization, you may refer to the following table of options:
For additional customization, you may refer to the following table of options:
If you encounter the following issue with <code>opencv</code> in Ubuntu 22:
<syntaxhighlight lang="bash">
fatal error: opencv2/opencv.hpp: No such file or directory
  19 | #include <opencv2/opencv.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~
</syntaxhighlight>
Apply the following to the <code>pkgconfig/opencv.pc</code> file. The include path is wrong; it is <code>/usr/include/opencv4/</code>. So, in edit the <code>/usr/lib/pkgconfig/opencv4.pc</code> as:
<syntaxhighlight lang=bash>
- prefix=/usr/local
+ prefix=/usr
</syntaxhighlight>


<center>`
<center>`
246

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.