[yocto] Opencv headers
Ekaterini Voulgari
sdi1100002 at di.uoa.gr
Mon Aug 19 05:42:43 PDT 2019
Indeed.Grazie.
On 19/8/19 2:20 μ.μ., Gabriele Zampieri wrote:
> 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 <mailto: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 <mailto: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/19f9a1a2/attachment.html>
More information about the yocto
mailing list