Proper use of pkg-config in XCode

kyle at canvasfoundation.org kyle at canvasfoundation.org
Sat May 22 20:12:25 PDT 2010


I can write a little makefile, no problem, that works with:

`pkg--config --cflags --libs cairo librsvg-2.0`

But, I have been trying to figure out how to properly use pkg-config in XCode's GCC 4.0 "Other C++ flags" field under Project Settings. 

`pkg-config\ --cflags\ --libs\ cairo\ librsvg-2.0`
"`pkg-config --cflags --libs cairo librsvg-2.0`"

returns gcc command error.

pkg-config --cflags --libs cairo librsvg-2.0

returns unrecognized command --fcflags.

It should be possible to use the output from pkg-config somewhere in XCode, right? Should I use this command in Terminal and then copy-paste that output into the Other Flags field?


More information about the macports-users mailing list