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
<sdi1100...@di.uoa.gr <mailto:sdi1100...@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@yoctoproject.org <mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto