Gsteamer conflicting declaration in opencv

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Gsteamer conflicting declaration in opencv

528 次查看
ilya1
Contributor I

Hello, I am building Yocto 2.5(Sumo) with Gstreamer 1.14 and OpenCV 3.4.5

I am getting this error while compiling Gstreamer:

build_xwayland_mq/tmp/work/aarch64-mx8m-poky-linux/gstreamer1.0-plugins-bad/1.14.4.imx-r0/recipe-sysroot/usr/include/opencv2/imgproc/types_c.h:445:21: error: conflicting declaration of C function 'CvMoments cvMoments(const cv::Moments&)'
 CV_INLINE CvMoments cvMoments(const cv::Moments& m)

same error in imgproc_c.h:360:13

I saw someone solved this by building with OpenCV 4 instead, but we need OpenCV 3.4.5 for our own project.

Did anyone encounter this issue or know how to resolve it?

Thanks.

0 项奖励
1 回复

468 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Ilya,

The NXP realease includes opencv 3.4.2 don´t know about future releases, but your problem looks like a bad opencv installation.

Regards

0 项奖励