mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 09:07:47 +08:00
jammy-deps: build opencv with same soname than system binaries to correctly overshadow them in ros
This commit is contained in:
@@ -68,9 +68,12 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then echo "Installing zed-open-cap
|
||||
cd && \
|
||||
rm -r zed-open-capture; fi
|
||||
|
||||
# Ubuntu 22.04 is the only release whose OpenCV carries an ABI suffix in its SONAME:
|
||||
# libopencv_core.so.4.5d.
|
||||
RUN git clone --branch 4.5.4 https://github.com/opencv/opencv.git && \
|
||||
git clone --branch 4.5.4 https://github.com/opencv/opencv_contrib.git && \
|
||||
cd opencv && \
|
||||
sed -i '/OPENCV_SOVERSION/s/}")/}d")/' cmake/OpenCVVersion.cmake && \
|
||||
mkdir build && \
|
||||
cd build && \
|
||||
cmake -DWITH_TBB=ON -DWITH_OPENMP=ON -DBUILD_opencv_python3=OFF -DBUILD_opencv_python_bindings_generator=OFF -DBUILD_opencv_python_tests=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DOPENCV_ENABLE_NONFREE=ON -DOPENCV_EXTRA_MODULES_PATH=/root/opencv_contrib/modules .. && \
|
||||
|
||||
Reference in New Issue
Block a user