Issue 1:
System information (version)

OpenCV => 3.4.6

Operating System / Platform => centos6.3

Compiler => 4.8.2

Detailed description

I try to build opencv3.4.6 but the below errors occurs:

[ 57%] Built target opencv_imgcodecs

[ 57%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o

BullseyeCoverage Compile C++ 8.13.21 Linux-x64 License 3179

Copyright (c) Bullseye Testing Technology 1990-2017

BullseyeCoverage Compile C++ 8.13.21 Linux-x64 License 3179

Copyright (c) Bullseye Testing Technology 1990-2017

/home/work/meicheng/opencv/opencv-3.4.6/modules/videoio/src/cap_v4l.cpp: In function 'int cv::capPropertyToV4L2(int)':

/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

return V4L2_CID_ROTATE;

^

/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

return V4L2_CID_IRIS_ABSOLUTE;

^

BullseyeCoverage error: status 1 from /opt/compiler/gcc-4.8.2/bin/c++

make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/build.make:154: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o] Error 1

make[1]: *** [CMakeFiles/Makefile2:2515: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2

make: *** [Makefile:163: all] Error 2

My cmake command is:

cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_opencv_dnn=OFF -DBUILD_opencv_contrib=OFF -DBUILD_opencv_video=OFF -DBUILD_opencv_photo=OFF ..

I execlude some modules because some compile errors happens.

But I can not exclude opencv_imgcodecs, so what's the solution?

Thanks in advance.

Steps to reproduce

Issue 2:
System information (version)

OpenCV => 3.4.7

Operating System / Platform => ubuntu18.04 x86_64

Detailed description

When I try to run my program which can be compiled without error, it said:

error while loading shared libraries: libopencv_world.so.3.4: cannot open shared object file: No such file or directory

When I have installed opencv (nothing error happened while compiling)， I try to exec opencv_test_core and errors happen.

[ 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