Difference between revisions of "Compiling Player Code"

From MurrayWiki
Jump to: navigation, search
 
 
Line 7: Line 7:
 
Makefiles may be useful for more complicated projects.
 
Makefiles may be useful for more complicated projects.
 
[[Category:PlayerStage]]
 
[[Category:PlayerStage]]
 +
[[Category:MVWTfest]]

Latest revision as of 16:57, 19 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.