在MAC OS X中安装:
安装前的准备:
Camera driver
Mac OS X 10.3或更新的版本中已经包含IIDC和DV FireWire摄像头驱动。USB摄像头驱动(或者10.3之前版本的Firewire摄像头驱动)可以在下面的连接下在:
http://www.ioxperts.com/
(可选项,用于VRML渲染)Apple X11 and Fink
从MAC OS X的CD3中安装X11或者在下面连接里下载安装镜像:
http://www.apple.com/downloads/macosx/apple/x11formacosx.html.
在下面的连接里下载Fink (and optionally, FinkCommander)
http://fink.sourceforge.net/download/.
在XCode IDE中编译(略,因为没用过):
- Unpack the archive to a convenient location using StuffIt Expander, and open the ARToolKit.xcodeproj.
- Builds include a script target "Configure" which enables accelerated and rectangular texturing by default. If you wish to change these defaults, manually run the ./Configure script from Terminal as for a command-line build (below).
- Executables are built as bundled applications into ARToolKit/bin, with the Data/ directory copied into the application bundle so that they may be moved from this location to other locations.
The VRML renderering library and example (libARvrml & simpleVRML) are optional builds:
- Using FinkCommander, do a binary install of mozilla-dev, followed by an install of openvrml4-dev and openvrml-gl5-dev.
- Select the ARToolKit extensions target, and build.
Alternately, ARToolKit can be built from the Terminal, using the Unix makefiles.
Drop the ARToolKit into a convenient location, e.g. your Desktop, then open a Terminal window and type:
cd ~/Desktop
tar zxvf ARToolKit-2.71.tgz
Configure and build
cd ~/ARToolKit
./Configure
make
Following a successful build, to run a binary such as simpleTest, add these commands:
cd bin
./simpleTest
The VRML renderering library and example (libARvrml & simpleVRML) are optional builds:
fink -b install mozilla-dev
fink install openvrml4-dev openvrml-gl5-dev
cd ~/Desktop/ARToolKit/lib/SRC/ARvrml
make
cd ~/Desktop/ARToolKit/examples/simpleVRML
make
cd ~/Desktop/ARToolKit/bin
./simpleVRML
(原文链接) |