gocv icon indicating copy to clipboard operation
gocv copied to clipboard

Error on installing by make install (Unable to locate package libdc1394-22-dev)

Open mohammad-hakimi opened this issue 2 years ago • 1 comments

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

  1. go get -u -d gocv.io/x/gocv
  2. cd $GOPATH/pkg/mod/gocv.io/x/[email protected]
  3. make install
  4. 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 or env.cmd script before trying to go run or go build? No

mohammad-hakimi avatar May 17 '22 18:05 mohammad-hakimi

Edit Makefile and replace libdc1394-22-dev with libdc1394-dev

chmj avatar Jun 07 '22 19:06 chmj