opencv icon indicating copy to clipboard operation
opencv copied to clipboard

Suggested changes to the OpenCV Linux Installation Manual v1.7

Open TL-4319 opened this issue 1 year ago • 0 comments

This outlines some problems and solution I found when installing E-con System OpenCV patch on an NVIDIA Jetson Orin with Jetpack 5.1.2. I ran into some problems installing your patch of OpenCV following the provided guide. Some of the problem that I encountered and resolved by doing the following.

First I need to ensure that the current machine does not have any other OpenCV installations (suggest to remove libopencv-dev in list of dependencies)

Another problem I encounter is during the make process of the custom OpenCV. Following this guide, I need to add

-D OPENCV_GENERATE_PKGCONFIG=YES -D WITH_GENERATE_PKGCONFIG=YES

Resulting in cmake command of

cmake ..  -D BUILD_TIFF=ON -D WITH_CUDA=OFF -D WITH_OPENGL=OFF -D WITH_OPENCL=OFF -D WITH_IPP=OFF -D WITH_TBB=OFF -D BUILD_TBB=OFF -D WITH_EIGEN=OFF -D WITH_V4L=ON -D WITH_VTK=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D WITH_GSTREAMER=OFF -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_opencv_world=ON -D OPENCV_GENERATE_PKGCONFIG=YES -D WITH_GENERATE_PKGCONFIG=YES -D CMAKE_INSTALL_PREFIX=/usr/local

Finally, I ran into an issue with loading from libopencv_world.so. Following your guide wasn't working but I resolved it by following the guide here, essentially making new file name opencv.conf in /etc/ld.so.conf.d/. Then add "/usr/local/lib" in the file and run

sudo ldconfig -v

TL-4319 avatar Aug 23 '24 20:08 TL-4319