[yocto] Opencv headers
Gabriele Zampieri
gabbla.malist at gmail.com
Mon Aug 19 04:20:17 PDT 2019
Hi,
you need to add
DEPENDS = "opencv"
to your recipe. This will import the needed header in your recipe sysroot.
Best regards,
Gabriele
Il giorno lun 19 ago 2019 alle ore 13:09 Ekaterini Voulgari <
sdi1100002 at di.uoa.gr> ha scritto:
> Hello all,
> I'm trying to add a program to my image that uses opencv (#include
> <opencv2/opencv.hpp>), but I get compile error "fatal error:
> opencv2/opencv.hpp: No such file or directory"
>
> The file opencv.hpp exists in workdir
> /build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-musleabi/opencv/3.4.5-r0/image/usr/include/opencv2/opencv.hpp.
>
> Can anyone help on where are the headers located in crossbuilds? Any
> help appreciated.
> The recipe:
>
> SRC_URI = "file://capture.cpp"
>
> do_compile () {
> ${CC} capture.cpp -lopencv_core -lopencv_imgproc -lopencv_highgui
> -lopencv_videoio
> }
>
> do_install () {
>
> install -d -m 0755 ${D}/${bindir}
> install -m 0755 prog_kameras ${D}/${bindir}/prog_kameras
> }
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190819/66564cfc/attachment.html>
More information about the yocto
mailing list