ubuntu 14.0.4 ARToolKit 配置

1 opengl配置

 sudo apt-get install build-essential
sudo apt-get install libgl1-mesa-dev

 sudo apt-get install libglu1-mesa-dev

sudo apt-get install libglut-dev  /  sudo apt-get install freeglut3-dev

2 4vl2 配置

sudo apt-get install libv4l-dev

3 安装gstreamer

sudo apt-get install libgstreamer0.10-dev gstreamer-tools gstreamer0.10-tools gstreamer0.10-doc

sudo apt-get install gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse


4 编译

cd {ARToolKit}


./Configure



./Configure里选择5GStreamer

即5 y y


make


会出现错误

error1:

#include <linux/videodev.h>

代码,改为下面这行

#include <libv4l1-videodev.h>




修改example simpletest.c为

char            *vconf = "Data\\WDM_camera_flipV.xml";
#else
char            *vconf = "v4l2src device=/dev/video0 use-fixed-fps=false ! ffmpegcolorspace ! capsfilter caps=video/x-raw-rgb,width=640,height=480 ! identity name=artoolkit ! fakesink";


进入bin

./simpleTest

你可能感兴趣的:(ubuntu 14.0.4 ARToolKit 配置)