Compiling Player Code

From Murray Wiki
Revision as of 16:57, 19 January 2007 by Thorsley (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to 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.