Prerequisites

If you haven’t yet done so, please install the application package and the SDK.

Copy the example files

We recommend creating a copy of the examples directory tree provided with the SDK so you can easily edit and build the example programs.

Let’s assume you’ve installed the SDK as described under point 2 above. The examples directory tree can now be found as <instdir>/share/examples/. To create a copy of it to, for instance, eyevec/examples/ proceed as follows:

mkdir eyevec
cp -a <instdir>/share/eyevec/examples eyevec

The examples directory is organized like this:

Files Description

examples/

Top-level directory

examples/README

Brief README

examples/Makefile

Top-level makefile for building all examples

examples/linux.mk

Symbols and rules for compiling under/for Linux

examples/window.mk

Symbols and rules for compiling under/for Windows

examples/linux-mingw.mk

Symbols and rules for compiling under Linux for Windows

examples/setup.mk

Defines which of the above *.mk to be used

example<n>/README

Brief README for example <n>

example<n>/Makefile

Makefile for example <n>

example<n>/*.c, *.cpp, *.h

Source file(s) for example <n>

utils/Makefile, *.c, *.h

Source files and Makefile for utility functions shared by the examples

Select the target platform

Edit examples/setup.mk and uncomment the line that applies. The default choice assumes you’re working under Linux:

include $(EXAMPLES_DIR)/linux.mk
#include $(EXAMPLES_DIR)/windows.mk
#include $(EXAMPLES_DIR)/linux-mingw.mk

So if you’re on Windows comment out the 'linux' line and uncomment the 'windows' line.

Define where to find the EyeVec library

Edit examples/linux.mk, examples/windows.mk or examples/linux-mingw.mk (whichever applies) and set the EYEVEC_INCDIR, EYEVEC_LIBDIR and EYEVEC_BINDIR symbols as appropriate. The default definitions are:

EYEVEC_INCDIR = $(BASEDIR)/include
EYEVEC_LIBDIR = $(BASEDIR)/lib
EYEVEC_BINDIR = $(BASEDIR)/bin

This means that for a standard installation simply defining the BASEDIR symbol to the installation location might suffice too.

If everything has been installed properly you should be able to build example 1. See Initialization and cleanup to find out.