If you have been supplied with pre-built ARToolKit binaries, you will not need to build ARToolKit from source. The instructions below apply only to users who wish to modify the internals of ARToolKit. Source code and project files are supplied for all of ARToolKit. This allows you to not only see how the toolkit works, but also to modify its operation should you so wish.
External dependencies for building ARToolKit from source include all the dependencies for building your own ARToolKit-based applications (as listed on page Installing ARToolKit) but also additional dependencies required to build the utilities and libraries. Where ARToolKit libraries require external DLLs, these are generally supplied with ARToolKit. Exceptions are listed below.
The free Microsoft Visual Studio Express Edition will also work.
Xcode 6 under Mac OS X 10.10 is recommended. These may be obtained free from Apple.
Windows: OpenGL is provided as part of your graphic card diver.
Mac OS X: OpenGL is part of your OS X system.
Linux: Install libgl1-mesa-dev
in order to be able to build ARToolKit.
Windows/Mac OS X: libjpeg headers and libraries are supplied with ARToolKit.
Linux: install package libjpeg-dev
.
Required to build libARgsub and the utilities and examples. Note: libARgsub_lite provides equivalent functionality to libARgsub without requiring GLUT.
Windows: GLUT 3.7.6 is included with ARToolKit.
Mac OS X: included in OS.
Linux: GLUT should be available in your distribution (e.g. packages freeglut3-dev and xorg-dev). Otherwise, GLUT is included in the MESA 3D libraries (e.g. libgl1-mesa-dev)
Generally OpenCV headers and libraries are provided with ARToolKit.
On Linux the provided OpenCV libraries are build using Clang compiler. Using ./Configuration make
to build you have the option to choose between Clang and GNU compiler for building ARToolKit.
sudo apt-get install libopencv-dev
.libc++-dev
. Be aware that libARosg and some examples are excluded from this build because per default OpenSceneGraph comes compiled with GNU. If you would like to use them you need to compile OpenSceneGraph with Clang and then build libARosg and the examples manually.Canon’s HDCam64 camera control library (Canon HDCam64 users only).
Mac OS X: QuickTime v6.4 or later is required, and is included in all versions of Mac OS X > 10.3. For systems with QuickTime 7 or later, QTKit is also used.
If you would like to work with 3D models which are represented in a Virtual Reality Modeling Language (VRML) file then you need to install the OpenVRML SDK in order for ARToolKit to be able to render them. All the source code related to VRML is located in the ARvrml.lib.
fink -b install openvrml6-dev openvrml-gl6-dev
. Alternately, a Universal binary build of OpenVRML-0.16.6 suitable for inclusion in application bundles can be downloaded from here.In general you can find information about OpenSceneGraph (OSG) and what it does on their website. ARToolKit uses some of the features provided by OSG. All these features are available using the ARosg.lib.
In general you need to install OSG on Mac and Windows when you like to build the complete ARToolKit project. On Linux you can choose in the ./Configure
step if you would like to use OSG. ARToolKit requires version 2.6 or later, version 2.8.2 is recommended.
Windows: OSG_ROOT=Path to where you extracted OSG files to
./Configure; make
During the configure process, you will be asked to select video libraries to build against.ARToolKit includes a variety of examples demonstrating ARToolKit programming techniques. After compiling, the executables for these applications can be found in the bin
directory inside your ARToolKit directory. Running the simpleLight example is one of the most straight-forward ways to test that your ARToolKit installation is functioning correctly. An explanation of simpleLight, including how to run it, and its source code can be found on the page ARToolKit Tutorial 1: First Simple ARToolKit Scene. More detailed information about the techniques demonstrated in each example can be found on the page ARToolKit Examples.
simpleLite can be opened by double-clicking its icon in the ARToolKit4\bin directory. Alternately, you can run it from the command line:
simpleLite can be launched from a terminal window thus: ./simpleLite