Compiling Player Code

From MurrayWiki
Jump to: navigation, search

A piece of Player source code can be compiled using the following command:

g++ -Wall -fpic -g3 -o `pkg-config --cflags player` `pkg-config --libs player` -c example

This command uses the PKG_CONFIG_PATH to define the include and lib directories generically. PKG_CONFIG_PATH should have been set when Player was installed (see [1] for more details)

Makefiles may be useful for more complicated projects.