$treeview $search $mathjax
`pkg-config' command (see http://pkgconfig.freedesktop.org/), whereas the second one uses `travelccm-config' script. These methods are shortly described below.`stdair.m4'), from the configuration script (generated thanks to `configure.ac').
TravelCCM Dependencies
`pkg-config' is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler and linker options. The syntax of the `pkg-config' is as follows:
pkg-config <options> <library_name>
For instance, assuming that you need to compile an TravelCCM based program `my_prog.cpp', you should use the following command:
g++ `pkg-config --cflags travelccm` -o my_prog my_prog.cpp `pkg-config --libs travelccm`
For more information see the `pkg-config' man pages.
`travelccm-config`, which is installed by default in `$prefix/bin' (`/usr/local/bin') directory. It can be used to simplify compilation and linking of TravelCCM based programs. The usage of this script is quite similar to the usage of the `pkg-config' command.
Assuming that you need to compile the program `my_prog.cpp' you can now do that with the following command:
g++ `travelccm-config --cflags` -o my_prog_opt my_prog.cpp `travelccm-config --libs`
A list of `travelccm-config' options can be obtained by typing:
travelccm-config --help
If the `travelccm-config' command is not found by your shell, you should add its location `$prefix/bin' to the PATH environment variable, e.g.:
export PATH=/usr/local/bin:$PATH
`AM_PATH_TravelCCM' macro (specified in the M4 macro file), the following Makefile variables are then defined:`TravelCCM_VERSION' (e.g., defined to 0.23.0)`TravelCCM_CFLAGS' (e.g., defined to `-I${prefix}/include')`TravelCCM_LIBS' (e.g., defined to `-L${prefix}/lib -ltravelccm')`LD_LIBRARY_PATH' environment variable might be used to inform the linker of the dynamic library location, e.g.: export LD_LIBRARY_PATH=<TravelCCM installation prefix>/lib:$LD_LIBRARY_PATH
1.4.7
Generated on Sun Jun 21 20:33:13 2015 for TravelCCM by
1.4.7