I try to install OpenCV on RHEL7.4 with these instructions:
mkdir /data/opencv; cd /data/opencv
git clone https://github.com/opencv/opencv.git
cd opencv
git checkout tags/3.4.3
mkdir release; cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
cd /data/opencv/opencv/release
make
make install
This seems to went succesfull but I don't see libopencv_java343.so anywhere. (neither in /usr/local/share/OpenCV nor /usr/local/lib , /usr/local/lib64)
[root@ies-dkbench-r74 release]# /usr/local/share/OpenCV/
haarcascades/ lbpcascades/ licenses/
[root@ies-dkbench-r74 release]# /usr/local/
bin/ etc/ games/ include/ lib/ lib64/ libexec/ sbin/ share/ src/
[root@ies-dkbench-r74 release]# /usr/local/lib64/
libopencv_calib3d.so libopencv_dnn.so.3.4.3 libopencv_highgui.so.3.4 libopencv_ml.so libopencv_photo.so.3.4.3 libopencv_superres.so.3.4 libopencv_videostab.so
libopencv_calib3d.so.3.4 libopencv_features2d.so libopencv_highgui.so.3.4.3 libopencv_ml.so.3.4 libopencv_shape.so libopencv_superres.so.3.4.3 libopencv_videostab.so.3.4
libopencv_calib3d.so.3.4.3 libopencv_features2d.so.3.4 libopencv_imgcodecs.so libopencv_ml.so.3.4.3 libopencv_shape.so.3.4 libopencv_videoio.so libopencv_videostab.so.3.4.3
libopencv_core.so libopencv_features2d.so.3.4.3 libopencv_imgcodecs.so.3.4 libopencv_objdetect.so libopencv_shape.so.3.4.3 libopencv_videoio.so.3.4 pkgconfig/
libopencv_core.so.3.4 libopencv_flann.so libopencv_imgcodecs.so.3.4.3 libopencv_objdetect.so.3.4 libopencv_stitching.so libopencv_videoio.so.3.4.3
libopencv_core.so.3.4.3 libopencv_flann.so.3.4 libopencv_imgproc.so libopencv_objdetect.so.3.4.3 libopencv_stitching.so.3.4 libopencv_video.so
libopencv_dnn.so libopencv_flann.so.3.4.3 libopencv_imgproc.so.3.4 libopencv_photo.so libopencv_stitching.so.3.4.3 libopencv_video.so.3.4
libopencv_dnn.so.3.4 libopencv_highgui.so libopencv_imgproc.so.3.4.3 libopencv_photo.so.3.4 libopencv_superres.so libopencv_video.so.3.4.3
When it comes to java I have this:
[root@ies-dkbench-r74 release]# which java
/usr/bin/java
[root@ies-dkbench-r74 release]# java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)