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"




你可能感兴趣的:(Ubuntu16.04安装ARToolKit v5的问题)