Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Error compiling: opencv.pc file not found. #1294

Open
maq33 opened this issue Oct 25, 2021 · 1 comment
Open

Error compiling: opencv.pc file not found. #1294

maq33 opened this issue Oct 25, 2021 · 1 comment

Comments

@maq33
Copy link

maq33 commented Oct 25, 2021

I tried to compile the v6 branch inside a container using Debian stable and I got the following error:

root@localhost:/opt/meguca# make
go build -v
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:129019:10: warning: function may return address of local variable [-Wreturn-local-addr]
129019 |   return pNew;
       |          ^~~~
sqlite3-binding.c:128979:10: note: declared here
128979 |   Select standin;
       |          ^~~~~~~
github.com/bakape/captchouli/v2
# pkg-config --cflags  -- opencv
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
pkg-config: exit status 1
make: *** [Makefile:30: server] Error 2

I searched for this file "opencv.pc" in Debian repositories:

https://packages.debian.org/search?searchon=contents&keywords=opencv.pc&mode=exactfilename&suite=stable&arch=any

This file is not found in the stable version of this package, but is found in oldstable:

https://packages.debian.org/search?searchon=contents&keywords=opencv.pc&mode=path&suite=oldstable&arch=any

This should be fixed.

@bakape
Copy link
Owner

bakape commented Oct 27, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants