Compiling Player Code: Difference between revisions

From Murray Wiki
Jump to navigationJump to search
No edit summary
(No difference)

Revision as of 20:13, 18 January 2007

A piece of Player source code example.cc 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.