【ARM-Linux开发】使用QT和Gstreanmer 遇到的一些问题

1、如果出现错误,可能是在安装UCT PCRF时,相关组件不全,略举两个碰到的错误。
1)curl/curl.h:No such file or directory
——可能原因是libcurl及相关未安装完全,我出现此错误时是因为缺libcurl4-gnutls-dev
2)src/includes.h:28:37: error: gst/interfaces/xoverlay.h: No such file or directory

——缺libgstreamer相关组件,在安装libgstreamer-plugins-base0.10-dev后,编译时没有再出现此错误。

# apt-get install libgstreamer-plugins-base0.10-dev

2.在使用Gstreamer时遇到

Undefined reference to `gst_x_overlay_set_xwindow_id'

问题的原因是 :
 

gst_x_overlay_set_xwindow_id 所在的头文件 为 #include<gst/interfaces/xoverlay.h>
  该文件包含于动态库libgstinterfaces-0.10.so没有显式地加载

在Code::Blocks 中的解决方法:
 Settings==> Compiler and debugger ==> Linkersettings ==> Linker libraries
  ==> Add ==>/usr/lib/libgstinterfaces-0.10.so

或者:

在。.pro文件中添加:LIBS +=/usr/lib/libgstinterfaces-0.10.so

原文地址:https://www.cnblogs.com/huty/p/8517526.html