在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
但是它不起作用。
答案 0 :(得分:0)
我想这太明显了,我两次下载了相同的ZIP。.
JO(5) = -1.775967713143382642e-01
代替
Install python plugins as https://blogs.oracle.com/geertjan/entry/python_in_netbeans_ide_81
Install python manually from https://www.python.org/downloads/
open the "New Project" window in Netbeans
Choose a Python project
After clicking "Next", click the "Manage...." button located next to the
"Python Platform" drop down menu
Click New button from the left box and then point it to the installed python.exe
All other columns will automatically fill up
Click close