@vfbsilva I believe you only need to do that if you are using just the Makefile. This package uses darknet's CMakeLists.txt which does properly find opencv.
Search Criteria
Package Details: darknet-alexeyab-git r2214.eaee5060-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/darknet-alexeyab-git.git (read-only, click to copy) |
---|---|
Package Base: | darknet-alexeyab-git |
Description: | YOLO: Real Time Object Detection Neural Network Library (AlexeyAB fork) |
Upstream URL: | https://github.com/AlexeyAB/darknet |
Keywords: | computer-vision |
Licenses: | YOLO |
Provides: | darknet |
Submitter: | acxz |
Maintainer: | acxz |
Last Packager: | acxz |
Votes: | 0 |
Popularity: | 0.000000 |
First Submitted: | 2019-06-10 21:41 (UTC) |
Last Updated: | 2022-07-01 13:22 (UTC) |
acxz commented on 2019-06-16 14:29 (UTC)
vfbsilva commented on 2019-06-16 06:50 (UTC)
Opencv was not being properly found. I did a dirty hack I'm not even sure is right:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig sudo cp -p /usr/lib/pkgconfig/opencv4.pc /usr/lib/pkgconfig/opencv.pc
I think I could have modified the makefile but my test did work so I kept it.
acxz commented on 2019-06-15 22:13 (UTC) (edited on 2019-06-15 22:16 (UTC) by acxz)
Is it possible to do a clean build of a package using yaourt? If not can you manually build the package without using an AUR helper or use one that does allow you to do that like yay
?
vfbsilva commented on 2019-06-15 22:02 (UTC)
extra/opencv 4.1.0-2 [instalado] Open Source Computer Vision Library
extra/opencv-samples 4.1.0-2 Open Source Computer Vision Library (samples)
vfbsilva commented on 2019-06-15 22:02 (UTC)
extra/opencv 4.1.0-2 [instalado] Open Source Computer Vision Library extra/opencv-samples 4.1.0-2 Open Source Computer Vision Library (samples)
acxz commented on 2019-06-15 21:50 (UTC)
@vfbsilva What is the output of pacman -Ss opencv
?
vfbsilva commented on 2019-06-15 21:28 (UTC)
Oki I had to fix my opencv import so I would fall on the opencv case of the make file but then it does not build:
=> Installing files cp: não foi possível obter estado de '/tmp/yaourt-tmp-imanewbie/aur-darknet-alexeyab-git/src/darknet/build-release/uselib_track': Arquivo ou diretório inexistente ==> ERRO: Uma falha ocorreu em package(). Abortando... ==> ERRO: Makepkg não conseguiu compilar darknet-alexeyab-git. ==> Reiniciar a compilação de darknet-alexeyab-git ? [s/N]
imanewbie@mordor pkg-config --modversion opencv 4.1.0
vfbsilva commented on 2019-06-15 21:14 (UTC)
It does install but does not worK: sh image_yolov2.sh ./darknet: error while loading shared libraries: libopencv_stitching.so.3.4: cannot open shared object file: No such file or directory
acxz commented on 2019-06-15 03:59 (UTC)
Added vtk as a make dependency to suppress issues that are due to either upstream darknet or opencv. Should install successfully now.
acxz commented on 2019-06-13 23:54 (UTC)
I was able to replicate the issue with opencv 4.1 as well. Since this is an upstream version, we should get the developers in loop as well. I see an issue has been posted there: https://github.com/AlexeyAB/darknet/issues/3406
Pinned Comments
acxz commented on 2020-02-03 02:03 (UTC)
Development is on Github: https://github.com/acxz/pkgbuilds Please open issues and PRs there instead of commenting.