I have Raspberry Pi 3B+, Lazarus 2.0.0, OpenCV 3.4.0, Pi Camera
I've got OpenCv and the camera working in Python. I can do face detection. Now I'd like to get it to work in Lazarus.
I downloaded OpenCV.pas from here
https://github.com/zbyna/opencv-lazarus/blob/master/OpenCV.pasAnd tried to compile a "hello world" program that calls nothing in OpenCV but includes it in a "Uses" line to force it to compile.
There was a small problem with the undeclared CopyMemory procedure which I guess I've fixed.
It all compiles but won't link. It gives the error:
/usr/bin/ld: cannot find -lcv
/usr/bin/ld: cannot find -lhighgui
I tried the suggestion from 2017 of
sudo apt-get update && sudo apt-get install libopencv libopencv-dev
but it gives the error
Unable to locate package libopencv
Calling
sudo apt-get install libopencv-dev
seems to work OK but doesn't install cv and highgui
It doesn't fix the Lazarus linker error.
Any thoughts?