bakape / shamichan

anonymous realtime imageboard focused on high performance and transparent moderation
Other
441 stars 74 forks source link

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

Open maq33 opened 2 years ago

maq33 commented 2 years ago

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 commented 2 years ago

This is a known issue. v6 currently does not compile on Debian stable. It is recommended to use the docker container as an alternative.

On Mon, 25 Oct 2021 at 04:20, Maquinista33 @.***> wrote:

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

@.***:/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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bakape/meguca/issues/1294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB347MAYOGG4SEL3V5GGK2TUISWFTANCNFSM5GUCZ5NQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.