gocv
gocv copied to clipboard
Error on installing by make install (Unable to locate package libdc1394-22-dev)
Hi. Lately, I wanted to use gocv in my project and tried to install the package but I couldn't because this error: E: Unable to locate package libdc1394-22-dev
Description
I followed the installing instruction but it failed after I hit the make install
.
Steps to Reproduce
- go get -u -d gocv.io/x/gocv
- cd $GOPATH/pkg/mod/gocv.io/x/[email protected]
- make install
- And after that this error comes up:
sudo apt-get -y update
sudo apt-get -y install unzip wget build-essential cmake curl git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:7 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 InRelease
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease' doesn't support architecture 'i386'
W: https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic/dists/pgadmin4/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libdc1394-22-dev
make: *** [Makefile:51: deps_debian] Error 100
Your Environment
- Operating System and version: Ubuntu 22.04 LTS
- OpenCV version used: 4.5.5
- How did you install OpenCV? ptyhon-opencv
- GoCV version used: v0.30.0
- Go version: go1.18.2 linux/amd64
- Did you run the
env.sh
orenv.cmd
script before trying togo run
orgo build
? No
Edit Makefile and replace libdc1394-22-dev with libdc1394-dev