-
Notifications
You must be signed in to change notification settings - Fork 29
Building ARToolKit
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.
Microsoft Visual Studio 2013 and Microsoft Visual Studio 2010 SP1 are supported. The free Microsoft Visual Studio Express Edition will also work.
Xcode tools v5.1.1 under Mac OS X 10.9 or later is required. 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.
Windows/Mac OS X: libjpeg headers and libraries are supplied with ARToolKit.
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.
Windows: By default, on Windows ARToolKit's video library (libARvideo) uses Microsoft's DirectShow libraries. Unfortunately, this requires an installation of the DirectX SDK and either the Windows SDK or the DirectShow package from the Microsoft Platform SDK to compile libARvideo. Please see the separate page Building libARvideo. Alternative video sources on Windows include: QuickTime, either using the VideoDigitizer or movie files or streams. Please see the separate page Building libARvideo. Thomas Pintaric's DSVideoLib, which was the default video source for ARToolKit v2.x, is now LGPL licensed and may be used in proprietary software. Point Grey's flycapture SDK (only for use with Point Grey Cameras). 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.
For details see OSG
Windows: ARToolKit supplies binaries of OSG 3.0.1
Mac OS X: ARToolKit supplies binaries of OSG 3.2.2 ARToolKit uses the Setting an Environment Variable OSG_ROOT to find your OpenSceneGraph installation:
- Mac OS X: OSG_ROOT=/Library/Frameworks
Windows: OSG_ROOT=Path to where you extracted OSG files to
After unpacking ARToolKit, run the configure-win32 script. This generates AR/config.h for Windows builds. If you wish to change the default video library, or enable extra video libraries such as QuickTime, see Building libARvideo. Open the ARToolKit5.sln file inside the appropriate directory inside of the “VisualStudio” directory. Build the ToolKit and the sample applications. The VRML and OSG renderers are not built by default, but can be manually selected and built.
Open the ARToolKit5.xcodeproj, found inside the Xcode folder. The configure step (which creates AR/config.h) will be run automatically during the build process. If you wish to override the defaults, you may manually edit AR/config.h after this. Select a target to build. The default target builds the complete toolkit with the exception of the OpenVRML and OSG-dependent projects, which can be manually selected and built.
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 simpleLite - The First Example Application to Look At. More detailed information about the techniques demonstrated in each example can be found on the page simpleLite - The First Example Application to Look At.
Windows: simpleLite can be opened by double-clicking its icon in the ARToolKit4\bin directory. Alternately, you can run it from the command line:
Open a command-line window (cmd.exe). Navigate to your ARToolKit4\bin directory. Type: simpleLite.exe
Mac OS X: Bundled applications are generated for the examples. The utilities are generated as command-line tools. Both can be run in the Finder (with output in Console) or from within Xcode or a Terminal window.
Setting up the ARTOOLKIT5_ROOT environment variable