OpenMAX IL uses a state model for each component. Within each state certain operations can be performed, while others must be done before the next state transition can occur.
The programs in this chapter can be built using the following Makefile:
DMX_INC = -I/opt/vc/include/ -I /opt/vc/include/interface/vmcs_host/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux
OMX_INC = -I /opt/vc/include/IL
INCLUDES = $(DMX_INC) $(EGL_INC) $(OMX_INC)
CFLAGS=-g -DRASPBERRY_PI -DOMX_SKIP64BIT $(INCLUDES)