ubuntu16.04安装artoolkit笔记

先看githup上的教程:

Linux:

g++ with libstdc++, or Clang and LLVM's libc++ are required. For the latter, install Packages: 'clang', 'libc++-dev'.

Where ARToolKit libraries require external DLLs, these are generally supplied with ARToolKit. Exceptions are listed below.

需要 sudo apt install clang 

        sudo apt install libc++-dev

Linux

ARToolKit follows the Linux model whereby required software is externally installed. The following packages are required to be installed in your package manager to run the ARToolKit examples. (Additional packages required to build ARToolKit from source are listed on that help page.)

  • C++ runtime: use the standard libstdc++ or install the package 'libc++1'.
  • OpenGL: Package 'xorg'
  • OpenCV (unless building with Clang). Packages: 'libopencv-dev'.
  • GLUT: Package 'freeglut3'. Alternatively, GLUT can be built from source and is also included in the MESA 3D libraries:
  • Video4Linux, lib1394dc, or GStreamer. Packages: 'libv4l2-0', 'libdc1394-22' (for lib1394 version 2.x) or 'libdc1394-13' (for lib1394 version 1.x), and 'libgstreamer1.0' or 'libgstreamer0.10'.
  • OpenSceneGraph (optional; The ARToolKit OSG renderer requires OpenSceneGraph). Package 'openscenegraph'.

安装需要 OpenGL  OpenCV  Video4Linux  可选OpenSceneGraph

sudo apt install libc++1

sudo apt install libopencv-dev

sudo apt-get install libdc1394-22 libraw1394-dev

sudo apt-get install libv4l-dev

sudo apt-get install libgstreamer1.0

sudo apt-get install libgstreamer0.10

解压文件:

tar xzvf ARToolKit5-bin-*.tar.gz

可以再这里下载 zip 文件: https://github.com/artoolkit/artoolkit5

解压使用unzip ARToolKit5-bin-*.zip 就可以了 ,提示没找到命令 sudo apt install zip 就好

cd 到目录下执行命令 

./share/artoolkit5-setenv

./Configure


一路 y

然后要注意 它还有可能提示有一些东西没有安装 所以要回去找找看 有没有 提示;

比如:


所以得看看然后根据提示 继续安装 相关的依赖

make 


中途可能会有这样的提示 ;可以先使用 sudo find / -name 'xxx.h'来找找看 你的系统有没有这一个文件

如果有, 比如是提示包含某个<xxx.h>的文件没找到 ,那就是路径问题 可以 拷贝到 usr/include 目录下

没有的话 就使用 apt-file search XXX.h 来看看 这个文件相关的库 安装一下

继续make

好了之后 就会发现有一个bin目录:


再跑它的例子的时候要注意一下:

Linux:

simpleLite can be launched from a terminal window thus:

  • First, set the environment variable ARTOOLKIT5_VCONF to indicate the video device to be used; for example, to use a Video4Linux2 camera, do: export ARTOOLKIT5_VCONF="-module=V4L2" or to use a camera driven via GStreamer, do export ARTOOLKIT5_VCONF="-module=GStreamer"
  • then cd to the bin directory and do ./simpleLite

也可以参考一下 他的博文:https://blog.csdn.net/sinat_37335165/article/details/73467764


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值