Sunday, March 6, 2011

tutorials of build tools in COIN-OR

If you are not familiar with building projects in COIN-OR, you might want to
follow the website below to study the build tools.

I did no realize that there is a good website . So now I introduce it to you.

projects.coin-or.org/BuildTools/

1. After you compiled the code successfully on a UNIX-type system, you can install the package (and automatically all its dependencies), using make install (see the Compilation and Installation page). By default, the files are installed in newly created subdirectories bin, lib, and include in the package's base directory (Coin-Clp above). If you want to install the files at a different location (such as /usr/local), you need to specify the --prefix configure script option.

2. The function of configure:
The most important thing for configure is to generate the makefile.

In addition, a configure script usually creates a header file (e.g, Coin-Pkg/Clp/inc/config_clp.h) for each included project, which contains #defines to help the source c
ode adapt to different platforms.

3. Giving options to configure:
config.site

4. Parallel compilation :
If you are using GNU make and want to use the parallel compilation feature, you can do this by specifying the -j N option to make, where N is the number of parallel compilations you want to start. A good value for N is the number of available processors plus 1.

No comments:

Post a Comment