Summary: | media-libs/opencv-2.4.9 USE=cuda installs broken pkg-config opencv.pc file | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrew Savchenko <bircoph> |
Component: | [OLD] Library | Assignee: | Andreas K. Hüttel <dilfridge> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amynka, bircoph, quentin |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info opencv.pc opencv-2.4.9-cuda-pkg-config.patch |
Description
Andrew Savchenko
2014-11-30 03:08:30 UTC
Created attachment 390620 [details]
build.log
A build.log for media-plugins/frei0r-plugins-1.4[facedetect] using opencv.pc pkg-config file.
Created attachment 390622 [details]
emerge --info
Created attachment 390624 [details]
opencv.pc
Pkg-config file from opencv-2.4.9 which was configured as follows:
Installed versions: 2.4.9{tbz2}(07:38:16 AM 11/05/2014)(cuda doc eigen examples ffmpeg gstreamer gtk jpeg jpeg2k opencl openexr opengl openmp png qt4 threads tiff v4l -ieee1394 -ipp -java -pch -python -testprograms -vtk -xine ELIBC="-FreeBSD" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7")
dev-util/nvidia-cuda-toolkit-6.5.14 is installed. Can't use 6.5.19, since it requires >=x11-drivers/nvidia-drivers-343.22[uvm] which doesn't support my GPU.
The argument -L/opt/cuda/lib64 Should maybe done in src_install() or pkg_preinst()? I am sorry for the incomplete comment... The argument -L/opt/cuda/lib64 is missing in the opencv.pc file. Should maybe done in src_install() or pkg_preinst()? Probably the best way is to fix cmake files, but I get lost there... As for a workaround, src_install() looks good for me. Created attachment 398100 [details, diff]
opencv-2.4.9-cuda-pkg-config.patch
The attached patch fixes the build system to add "-L" entries to the pkg-config lib flags. On my system this resolves to "-L/opt/cuda/lib64". Afterwards, media-video/vlc[opencv] builds fine (where it would fail earlier).
(In reply to Quentin Minster from comment #7) > Created attachment 398100 [details, diff] [details, diff] > opencv-2.4.9-cuda-pkg-config.patch > > The attached patch fixes the build system to add "-L" entries to the > pkg-config lib flags. On my system this resolves to "-L/opt/cuda/lib64". > Afterwards, media-video/vlc[opencv] builds fine (where it would fail > earlier). It worked for me. I just commited it. Looks like it will be fine for now. Thanks Amy |