gpt4 book ai didi

opencv - 在 ARM Docker 容器中构建 OPENCV 时出现问题

转载 作者:数据小太阳 更新时间:2023-10-29 03:22:25 26 4
gpt4 key购买 nike

我在 ARM Docker 容器中构建 OPENCV 时遇到问题:

-- Configuring incomplete, errors occurred!
See also "/tmp/opencv/opencv-3.4.2/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/opencv/opencv-3.4.2/build/CMakeFiles/CMakeError.log".
The command '/bin/sh -c cd /tmp/opencv/opencv-3.4.2 && mkdir build && cd build && cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/tmp/opencv/opencv_contrib-3.4.2/modules -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=OFF -D BUILD_opencv_python=OFF -D BUILD_opencv_python2=OFF -D BUILD_opencv_python3=OFF .. && make -j1 && make install && rm -rf /tmp/opencv' returned a non-zero code: 1

这是我使用的 Dockerfile:

FROM armhf/ubuntu
LABEL maintainer="Xxxxx XXXX <xxxx.xxxx@xxxx.com>"

# Dependencies
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y wget unzip build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev

# Download OPENCV
RUN mkdir -p /tmp/opencv && \
cd /tmp/opencv && \
wget --show-progress --quiet -O opencv.zip https://github.com/opencv/opencv/archive/3.4.2.zip && \
unzip -o -q opencv.zip && \
wget --show-progress --quiet -O opencv_contrib.zip https://github.com/opencv/opencv/archive/3.4.2.zip && \
unzip -o -q opencv_contrib.zip && \
rm opencv.zip opencv_contrib.zip

# Build OPENCV
RUN cd /tmp/opencv/opencv-3.4.2 && \
mkdir build && \
cd build && \
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_EXTRA_MODULES_PATH=/tmp/opencv/opencv_contrib-3.4.2/modules \
-D BUILD_DOCS=OFF \
-D BUILD_EXAMPLES=OFF \
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
-D BUILD_opencv_java=OFF \
-D BUILD_opencv_python=OFF \
-D BUILD_opencv_python2=OFF \
-D BUILD_opencv_python3=OFF .. && \
make -j1 && \
make install && \
rm -rf /tmp/opencv

ADD go-coop-camera /usr/bin

WORKDIR /usr/bin

EXPOSE 8000
CMD [ "/usr/bin/go-coop-camera", "--logging", "info" ]

您是否发现了可能出错的地方?我尝试应用此修复程序:https://github.com/opencv/opencv/issues/6027

但它不起作用。

最佳答案

我猜它太明显了,我被下载了两次相同的 ZIP..

https://github.com/opencv/opencv/archive/3.4.2.zip

代替

https://github.com/opencv/opencv_contrib/archive/3.4.2.zip

关于opencv - 在 ARM Docker 容器中构建 OPENCV 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51455801/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com