<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 3.4.6</li>
<li>Operating System / Platform =&gt; centos6.3</li>
<li>Compiler =&gt; 4.8.2</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I try to build opencv3.4.6 but the below errors occurs:</p>
<p dir="auto">[ 57%] Built target opencv_imgcodecs<br>
[ 57%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o<br>
BullseyeCoverage Compile C++ 8.13.21 Linux-x64 License 3179<br>
Copyright (c) Bullseye Testing Technology 1990-2017<br>
BullseyeCoverage Compile C++ 8.13.21 Linux-x64 License 3179<br>
Copyright (c) Bullseye Testing Technology 1990-2017<br>
/home/work/meicheng/opencv/opencv-3.4.6/modules/videoio/src/cap_v4l.cpp: In function 'int cv::capPropertyToV4L2(int)':<br>
/home/work/meicheng/opencv/opencv-3.4.6/modules/videoio/src/cap_v4l.cpp:1614:9: error: 'V4L2_CID_ROTATE' was not declared in this scope<br>
return V4L2_CID_ROTATE;<br>
^<br>
/home/work/meicheng/opencv/opencv-3.4.6/modules/videoio/src/cap_v4l.cpp:1616:9: error: 'V4L2_CID_IRIS_ABSOLUTE' was not declared in this scope<br>
return V4L2_CID_IRIS_ABSOLUTE;<br>
^<br>
BullseyeCoverage error: status 1 from /opt/compiler/gcc-4.8.2/bin/c++<br>
make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/build.make:154: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o] Error 1<br>
make[1]: *** [CMakeFiles/Makefile2:2515: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2<br>
make: *** [Makefile:163: all] Error 2</p>
<p dir="auto">My cmake command is:<br>
cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_opencv_dnn=OFF -DBUILD_opencv_contrib=OFF -DBUILD_opencv_video=OFF -DBUILD_opencv_photo=OFF  ..</p>
<p dir="auto">I execlude some modules because some compile errors happens.<br>
But I can not exclude opencv_imgcodecs, so what's the solution?<br>
Thanks in advance.</p>
<h5 dir="auto">Steps to reproduce</h5>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 3.4.7</li>
<li>Operating System / Platform =&gt; ubuntu18.04 x86_64</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">When I try to run my program which can be compiled without error,  it said:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error while loading shared libraries: libopencv_world.so.3.4: cannot open shared object file: No such file or directory"><pre class="notranslate">error <span class="pl-k">while</span> loading shared libraries: libopencv_world.so.3.4: cannot open shared object file: No such file or directory</pre></div>
<p dir="auto">When I have installed opencv (nothing error happened while compiling)， I try to exec opencv_test_core and errors happen.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[ RUN      ] Core_InputOutput.filestorage_base64_basic_read_XML
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure
Expected equality of these values:
  (int)rawdata[i].u1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure
Expected equality of these values:
  (int)rawdata[i].u2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure
Expected equality of these values:
  (int)rawdata[i].i1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure
Expected equality of these values:
  (int)rawdata[i].i2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure
Expected equality of these values:
  (int)rawdata[i].i3
    Which is: 0
  3
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure
Expected equality of these values:
  rawdata[i].d1
    Which is: 0
  0.1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure
Expected equality of these values:
  rawdata[i].d2
    Which is: 0
  0.2
i = 0
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure
Expected equality of these values:
  (int)rawdata[i].u1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure
Expected equality of these values:
  (int)rawdata[i].u2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure
Expected equality of these values:
  (int)rawdata[i].i1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure
Expected equality of these values:
  (int)rawdata[i].i2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure
Expected equality of these values:
  (int)rawdata[i].i3
    Which is: 0
  3
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure
Expected equality of these values:
  rawdata[i].d1
    Which is: 0
  0.1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure
Expected equality of these values:
  rawdata[i].d2
    Which is: 0
  0.2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:781: Failure
Expected equality of these values:
  (int)rawdata[i].i4
    Which is: 0
  i
    Which is: 1
i = 1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure
Expected equality of these values:
  (int)rawdata[i].u1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure
Expected equality of these values:
  (int)rawdata[i].u2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure
Expected equality of these values:
  (int)rawdata[i].i1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure
Expected equality of these values:
  (int)rawdata[i].i2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure
Expected equality of these values:
  (int)rawdata[i].i3
    Which is: 0
  3
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure
Expected equality of these values:
  rawdata[i].d1
    Which is: 0
  0.1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure
Expected equality of these values:
  rawdata[i].d2
    Which is: 0
  0.2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:781: Failure
Expected equality of these values:
  (int)rawdata[i].i4
    Which is: 0
  i
    Which is: 2
i = 2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:798: Failure
Expected equality of these values:
  _2d_in.rows
    Which is: 0
  _2d_out.rows
    Which is: 10
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:799: Failure
Expected equality of these values:
  _2d_in.cols
    Which is: 0
  _2d_out.cols
    Which is: 20
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:800: Failure
Expected equality of these values:
  _2d_in.dims
    Which is: 0
  _2d_out.dims
    Which is: 2
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
*** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated
[1]    25343 segmentation fault (core dumped)  ./bin/opencv_test_core
"><pre class="notranslate">[ RUN      ] Core_InputOutput.filestorage_base64_basic_read_XML
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure
Expected equality of these values:
  (int)rawdata[i].u1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure
Expected equality of these values:
  (int)rawdata[i].u2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure
Expected equality of these values:
  (int)rawdata[i].i1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure
Expected equality of these values:
  (int)rawdata[i].i2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure
Expected equality of these values:
  (int)rawdata[i].i3
    Which is: 0
  3
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure
Expected equality of these values:
  rawdata[i].d1
    Which is: 0
  0.1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure
Expected equality of these values:
  rawdata[i].d2
    Which is: 0
  0.2
i = 0
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure
Expected equality of these values:
  (int)rawdata[i].u1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure
Expected equality of these values:
  (int)rawdata[i].u2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure
Expected equality of these values:
  (int)rawdata[i].i1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure
Expected equality of these values:
  (int)rawdata[i].i2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure
Expected equality of these values:
  (int)rawdata[i].i3
    Which is: 0
  3
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure
Expected equality of these values:
  rawdata[i].d1
    Which is: 0
  0.1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure
Expected equality of these values:
  rawdata[i].d2
    Which is: 0
  0.2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:781: Failure
Expected equality of these values:
  (int)rawdata[i].i4
    Which is: 0
  i
    Which is: 1
i = 1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure
Expected equality of these values:
  (int)rawdata[i].u1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure
Expected equality of these values:
  (int)rawdata[i].u2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure
Expected equality of these values:
  (int)rawdata[i].i1
    Which is: 0
  1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure
Expected equality of these values:
  (int)rawdata[i].i2
    Which is: 0
  2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure
Expected equality of these values:
  (int)rawdata[i].i3
    Which is: 0
  3
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure
Expected equality of these values:
  rawdata[i].d1
    Which is: 0
  0.1
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure
Expected equality of these values:
  rawdata[i].d2
    Which is: 0
  0.2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:781: Failure
Expected equality of these values:
  (int)rawdata[i].i4
    Which is: 0
  i
    Which is: 2
i = 2
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:798: Failure
Expected equality of these values:
  _2d_in.rows
    Which is: 0
  _2d_out.rows
    Which is: 10
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:799: Failure
Expected equality of these values:
  _2d_in.cols
    Which is: 0
  _2d_out.cols
    Which is: 20
/home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:800: Failure
Expected equality of these values:
  _2d_in.dims
    Which is: 0
  _2d_out.dims
    Which is: 2
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
<span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated
[1]    25343 segmentation fault (core dumped)  ./bin/opencv_test_core
</pre></div>