Mar 30, 2009

Package config

pkg-config --cflags gsl
pkg-config --cflags ImageMagick
By providing the --cflags option, we get all necessary include files for gsl or ImageMagick


pkg-config --libs gsl
pkg-config --libs ImageMagick
Similarly, we get all libraries with the --libs option. Notice that we might not need all libs. The math library (-lm) is not needed, unless we do some mathematical computations.

Inorder to get see the library paths and the library files that are needed to given on g++ command we have to copy the particular .pc file into the pkgconfig folder under ..

No comments:

Carlo Cipolla's Laws of Stupidity

    "By creating a graph of Cipolla's two factors, we obtain four groups of people. Helpless people contribute to society but are...