gocv
gocv copied to clipboard
Error installing OpenCV on RPi running Ubuntu
Description
I have a Raspberry Pi 4 running ubuntu 20.04. I tried using the make file to install OpenCV and keep getting this error
/usr/bin/ld: $WORK/b044/_cgo_.o: hidden symbol `opj_stream_default_create' isn't defined
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
Steps to Reproduce
- Get RPi 4
- Install Ubuntu
- Clone gocv
-
make install BUILD_SHARED_LIBS=OFF
Your Environment
- Operating System and version:
Linux ubuntu 5.4.0-1045-raspi #49-Ubuntu SMP PREEMPT Wed Sep 29 17:49:16 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
- OpenCV version used: 4.6.4?
- How did you install OpenCV? n/a
- GoCV version used: v0.31.0
- Go version: 1.18.3
- Did you run the
env.sh
orenv.cmd
script before trying togo run
orgo build
? No
Any help would be appreciated. I got this to work once before but I am struggling to get GoCV to work on a Pi now. I was hoping ot also build opencv as a static file to build it into my binary.