Opencv4.6 compitible problem with opencv4.11

vita
Wed, 16 Jul 2025 15:13:00 +0000
C++

Our program is developed under opencv 4.6, now the new environment is opencv 4.11 installed. It shows 127 error when i run the code.
I assume it is mixing library problem. how can i make the independent library 406 substituted library 411?

$ ldd xxxx | grep opencv
libopencv_aruco.so.406 => /usr/local/lib/libopencv_aruco.so.406 (0x0000ffffa0ab0000)
libopencv_objdetect.so.406 => /usr/local/lib/libopencv_objdetect.so.406 (0x0000ffffa0990000)
libopencv_calib3d.so.406 => /usr/local/lib/libopencv_calib3d.so.406 (0x0000ffffa0760000)
libopencv_imgcodecs.so.406 => /usr/local/lib/libopencv_imgcodecs.so.406 (0x0000ffffa0680000)
libopencv_features2d.so.406 => /usr/local/lib/libopencv_features2d.so.406 (0x0000ffffa05c0000)
libopencv_imgproc.so.406 => /usr/local/lib/libopencv_imgproc.so.406 (0x0000ffffa0140000)
libopencv_core.so.406 => /usr/local/lib/libopencv_core.so.406 (0x0000ffff9f5c0000)
libopencv_dnn.so.411 => /usr/local/lib/libopencv_dnn.so.411 (0x0000ffff9c8b0000)
libopencv_flann.so.411 => /usr/local/lib/libopencv_flann.so.411 (0x0000ffff9c820000)

5 posts - 2 participants