First Page
News
Forum
In a Nutshell
About OGDF
FAQs
Key Features
Publications
Documentation
Overview Pages
How-Tos
Developer Resources
Reference Documentation
Get OGDF
Download
System Requirements
Installation (Linux/Mac)
Installation (Windows)
Projects
By OGDF Team
External
Team & Contact
Imprint
makeMakefile.config for your configuration (if necessary): check the [GENERAL] section. If you do not use Coin, the default parameters should be suitable.makeMakefile.sh to generate a suitable Makefile.make to build the OGDF library (you may also call make debug to generate a debuggable version).Some algorithms in OGDF require additional LP-solver libraries. These algorithms will not be compiled by default. If you want to use them, you need to install
and switch compiling on by editing makeMakefile.config and setting the variable useCoin to true. The [COIN] section of your config file should look like this:
[COIN]
useCoin = true # turn Coin-support on
coinIncl = /???/COIN/include # path to Coin include-directory (adapt)
solver_name = COIN_OSI_??? # which LP-solver shall Coin use: use any of
# COIN_OSI_CLP = Coin's own LP-solver
# COIN_OSI_CPX = CPLEX solver
# COIN_OSI_SYM = Coin's Symphony framework
solver_incl = /???/include # path to the LP-solver's include-directory (adapt)
If you want to use ABACUS as well, the [ABACUS] section of your config file should look like this:
[ABACUS] useAbacus = true abacusDef = -DABACUS_COMPILER_GCC abacusIncl = /somewhere/abacus/include
The compilation of OGDF does not require the actual libraries. However, when compiling your own program with gcc against OGDF, you need to specify the according paths and settings!
If you want to use the OGDF library in your own projects, proceed as follows.
ogdf.OGDF_DEBUG (-D option of the gcc).For linking OGDF with the COIN libraries, you need to compile the COIN libraries for the same target platform as your project (x86/x86_64, Debug/Release). See https://projects.coin-or.org/Osi#BackgroundDownload for additional help.
To build a program that shall link against OGDF and COIN, proceed as described above and do the following additional steps:
USE_COIN;COIN_OSI_CLP to the preprocessor definitionslibClp.lib libCoinUtils.lib libOsi.lib libOsiClp.lib in the <osi-install-dir>/lib directory
The steps described above assume that you want to use Osi's own LP-solver (CLP); if you want to use a different LP-solver (e.g. CPLEX) further steps are required (please consult corresponding LP-solver documentation). You will also have to use the correct LP-solver flag (COIN_OSI_CLP in the description above):
| LP-solver | preprocessor definition |
|---|---|
| Coin's CLP | COIN_OSI_CLP |
| Coin's Symphony | COIN_OSI_SYM |
| CPLEX | COIN_OSI_CPX |
It is also possible to create the source code documentation directly from the source files if you have Doxygen installed. You will also need to have LaTeX and Ghostscript installed so that Doxygen can create images from formulas. To build the OGDF HTML documentation, type
make doxy
in the root directory of the OGDF installation. The documentation will then be written to doc/html.
