Ubuntu16.04安装ARToolKit v5的问题

根据官网的教程,步骤非常简单,但是Ubuntu16.04下安装是有问题的。

Using default video config.
libARvideo: GStreamer 0.10.36
Parse error: no element "videotestsrc"
setupCamera(): Unable to open connection to camera.
main(): Unable to set up AR camera.


出现这样的错误原因是gstream在ubuntu16.04下有些功能不再支持

Linux
Most, if not all, Linux distributions provide packages of GStreamer. You should find these in your distribution's package repository. 
Note that some distributions split the GStreamer plugins up further than the upstream sources. Additionally, some distributions do not include the gst-plugins-bad, gst-plugins-ugly, and gst-libav packages in their main repository, for legal reasons.

这时候需要在运行./simpleLite之前,需要注意这一句

First, set the environment variable ARTOOLKIT5_VCONF to indicate the video device to be used; 
for example, to use a V4L2 camera, do: export ARTOOLKIT5_VCONF="-device=LinuxV4L2"
 or to use a camera driven via GStreamer, do export ARTOOLKIT5_VCONF="-device=GStreamer"

这里不能使用gstreamer,因而使用
export ARTOOLKIT5_VCONF="-device=LinuxV4L2"




评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值