-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dpkg: error processing package opencv-python:armhf #6
Comments
UPDATE ` RUN apt-get install -y libavcodec58 RUN apt-get install -y libcairo2 RUN apt-get install -y libjpeg62-turbo `Step 35/49 : RUN cd Faster_OpenCV_4_Raspberry_Pi/debs && dpkg -i OpenCV*.deb && ldconfig dpkg: error processing package opencv-dev:armhf (--install): dpkg: error processing package opencv-libs:armhf (--install): dpkg: error processing package opencv-main:armhf (--install): dpkg: error processing package opencv-python:armhf (--install): |
Step on same problem.
to
will allow you to install
^ Did the trick for my on raspbian 11. |
I am building a docker using raspberrypi base image
https://hub.docker.com/r/dtcooper/raspberrypi-os
first issue I was getting is failing to install these libs
libjasper1 libjasper-dev
spend some hours finding a workaround without luck.
so I have skipped that part from your manual.
then when running
dpkg -i OpenCV*.deb &&
I have got this
`Unpacking opencv-scripts:armhf (4.4.0) ...
dpkg: dependency problems prevent configuration of opencv-dev:armhf:
opencv-dev:armhf depends on libc6 (>= 2.4).
opencv-dev:armhf depends on libgcc1 (>= 1:3.5).
opencv-dev:armhf depends on libstdc++6 (>= 5.2).
dpkg: error processing package opencv-dev:armhf (--install):
dependency problems - leaving unconfigured
Setting up opencv-licenses:armhf (4.4.0) ...
dpkg: dependency problems prevent configuration of opencv-libs:armhf:
opencv-libs:armhf depends on libavcodec58 (>= 7:4.0).
opencv-libs:armhf depends on libavformat58 (>= 7:4.1).
opencv-libs:armhf depends on libavutil56 (>= 7:4.0).
opencv-libs:armhf depends on libc6 (>= 2.28).
opencv-libs:armhf depends on libcairo2 (>= 1.2.4).
opencv-libs:armhf depends on libfreetype6 (>= 2.2.1).
opencv-libs:armhf depends on libgcc1 (>= 1:4.0).
opencv-libs:armhf depends on libgdk-pixbuf2.0-0 (>= 2.22.0).
opencv-libs:armhf depends on libglib2.0-0 (>= 2.31.8).
opencv-libs:armhf depends on libgtk-3-0 (>= 3.0.0).
opencv-libs:armhf depends on libharfbuzz0b (>= 0.9.9).
opencv-libs:armhf depends on libjasper1.
opencv-libs:armhf depends on libjpeg62-turbo (>= 1.3.1).
opencv-libs:armhf depends on libpng16-16 (>= 1.6.2-1).
opencv-libs:armhf depends on libstdc++6 (>= 7).
opencv-libs:armhf depends on libswscale5 (>= 7:4.0).
opencv-libs:armhf depends on libtbb2.
opencv-libs:armhf depends on libtiff5 (>= 4.0.3).
opencv-libs:armhf depends on zlib1g (>= 1:1.2.0).
dpkg: error processing package opencv-libs:armhf (--install):
dependency problems - leaving unconfigured
Setting up opencv-scripts:armhf (4.4.0) ...
dpkg: dependency problems prevent configuration of opencv-main:armhf:
opencv-main:armhf depends on libc6 (>= 2.4).
opencv-main:armhf depends on libgcc1 (>= 1:3.5).
opencv-main:armhf depends on libstdc++6 (>= 5.2).
dpkg: error processing package opencv-main:armhf (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of opencv-python:armhf:
opencv-python:armhf depends on libc6 (>= 2.4).
opencv-python:armhf depends on libgcc1 (>= 1:3.5).
opencv-python:armhf depends on libstdc++6 (>= 5.2).
dpkg: error processing package opencv-python:armhf (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
opencv-dev:armhf
opencv-libs:armhf
opencv-main:armhf
opencv-python:armhf
The command '/bin/sh -c cd Faster_OpenCV_4_Raspberry_Pi/debs && dpkg -i OpenCV*.deb && ldconfig' returned a non-zero code: 1
`
ca you please help ?
Dockerfile
FROM dtcooper/raspberrypi-os:bullseye
RUN apt-get update && sudo apt-get upgrade -y && apt-get -y install libglib2.0-0; apt-get clean
RUN apt install -y python2
RUN apt-get install -y curl
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
RUN python2.7 get-pip.py
RUN apt-get install -y python2-dev
RUN apt-get install -y zip
RUN apt-get install -y wget
RUN apt-get install -y
libjpeg-dev libpng-dev libtiff-dev libgtk-3-dev
libavcodec-extra libavformat-dev libswscale-dev libv4l-dev
libxvidcore-dev libx264-dev
libatlas-base-dev gfortran libeigen3-dev libtbb-dev
RUN apt-get install -y libatlas-base-dev gfortran
RUN pip2 install numpy
RUN apt-get install -y git
RUN git clone https://github.com/dlime/Faster_OpenCV_4_Raspberry_Pi.git
RUN cd Faster_OpenCV_4_Raspberry_Pi/debs &&
dpkg -i OpenCV*.deb &&
ldconfig`
I am desperately trying to build a docker for a big program I have build years ago
It runs python2.7 and opencv 4 over raspberry pi 3+.
After a week of failing to build or finding any ready source I cam across your git
please help
The text was updated successfully, but these errors were encountered: