Opencv compiling error in docker image

Hi

I’ve installed nvcr.io/nvidia/l4t-base:r32.4.3 docker image on my ubuntu18.04 and try to compile opencv. I’ve several times compiled on bare tx2 with the same CMake command but when I try to do on docker image I got the error when it was so near to finish cmake.

error like these all errors seems to linked problem but I have no idea to solve it.

I am also attached CMakeOutput.log ,CMakeError.log. I didn’t take a speacial volume for image. I hope this is not related with it.

linked by target “example_gpu_morphology” in directory /root/opencv/samples/gpu
linked by target “example_gpu_multi” in directory /root/opencv/samples/gpu
linked by target “example_gpu_stereo_multi” in directory /root/opencv/samples/gpu
linked by target “example_gpu_surf_keypoint_matcher” in directory /root/opencv/samples/gpu
linked by target “example_gpu_super_resolution” in directory /root/opencv/samples/gpu
linked by target “example_tapi_clahe” in directory /root/opencv/samples/tapi
linked by target “example_tapi_hog” in directory /root/opencv/samples/tapi
linked by target “example_tapi_opencl_custom_kernel” in directory /root/opencv/samples/tapi
linked by target “example_tapi_camshift” in directory /root/opencv/samples/tapi
linked by target “example_tapi_bgfg_segm” in directory /root/opencv/samples/tapi
linked by target “example_tapi_dense_optical_flow” in directory /root/opencv/samples/tapi
linked by target “example_tapi_pyrlk_optical_flow” in directory /root/opencv/samples/tapi
linked by target “example_tapi_squares” in directory /root/opencv/samples/tapi
linked by target “example_tapi_ufacedetect” in directory /root/opencv/samples/tapi

CMakeError.log (53.5 KB) CMakeOutput.log (68.1 KB)

As you can see in CMakeError.log there are several fatal errors related with only video.h and opengl even though I removed the symbolic link and I gave with cmake parameter OpenGl OFF. BTW I have sucessfuly configured with only cmake … command but its not coming with cuda and contrib library

OpenGL error SOLVED with

cd /usr/lib/aarch64-linux-gnu/
sudo ln -sf tegra/libGL.so libGL.so

but one more /sys/videoio can not found. Any idea ?