DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2180
Version: 1.3-feature


pkg-config is today de-facto standard for library config files. Besides it
unifies correct flags and library fetching, it intoduces one important
feature: dependency resolving, which simplifies cases when one library is
used by another.

For example, edelib (EDE library) uses FLTK in some parts, so to compile
sample programs from command line, one should type:

g++ sample.cpp -o sample `pkg-config edelib --cflags --libs` `fltk-config
--cxxflags` `fltk-config --ldflags`

For these cases, pkg-config introduce "Requires" key that will
automatically load required libraries. If fltk.pc, fltk-imags.pc and/or
fltk-opengl.pc existed, it could be used as this:

g++ sample.cpp -o sample `pkg-config edelib --cflags --libs`

and pkg-config will fill needed parts.

fltk-config could/should be retained, because pkg-config is not available
on all platforms.


Link: http://www.fltk.org/str.php?L2180
Version: 1.3-feature

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to