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

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

@maq33

Description

@maq33

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions