-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
27 lines (14 loc) · 1.21 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
You run the binary by typing ARMinis <terrain file> <model file>
You can use multiple model files or the same one multiple times.
Here are the packages we're using:
sudo apt-get install mesa-common-dev mesademos libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev
sudo apt-get install libglut3-dev libjpeg62-dev
sudo apt-get install libxi-dev libxmu-dev
sudo apt-get install libgconf2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
You need this env variable for ARTOOLKIT to work properly w/ gstreamer:
export ARTOOLKIT_CONFIG="v4l2src device=/dev/video0 use-fixed-fps=false ! ffmpegcolorspace ! capsfilter caps=video/x-raw-rgb,bpp=24 ! identity name=artoolkit ! fakesink"
Here's how we compile ARMinis (depends on where glut.h and libglut live)
g++ -o ../bin/ARMinis main.cpp -I /usr/include/ -L /usr/lib/ -lglut -lGL -lGLU -lX11 -lXmu -lXi -lm -lARgsub -lARvideo -lAR -lglut -lGLU -lGL -lXi -lX11 -lm -lpthread -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0
* make sure include contents are inside your include directory
* make sure lib contents are inside your lib directory
src/make-map.c is the thing that makes our default minis board (a bunch of square polygons)