Debian Codegraph @

INSTALL

raw
1 CUT GENERATION LIBRARY INSTALLATION
2 ===================================
3
4 The instructions here are somewhat outdated. See also README.md.
5
6 The instruction in this file are useful only if you downloaded the
7 Cgl package. If you dowloaded another package, Cgl should be installed
8 as part of that package. See the INSTALL file in the main directory
9 of the package.
10
11 In this document, the following names are used:
12
13 1. 'coin-Cgl' is the full path to the directory in which you have
14 dowloaded Cgl.
15
16 2. 'build' is the full path to the directory used for the installation
17 of Cgl. It might be coin-Cgl or any other directory of your choosing.
18
19
20 OVERVIEW
21 ========
22
23 More information, including current stable version number and current release
24 number, is available on the Cut Generation Library (Cgl)
25 Trac page at:
26
27 https://projects.coin-or.org/Cgl
28
29 The instructions below are for UNIX-like systems (including Linux, Cygwin
30 and MSys) only. If Microsoft Developer Studio projects are
31 maintained for this package, you can find instructions at
32
33 https://projects.coin-or.org/MSVisualStudio
34
35 For other systems or for more information about dowloading and installing
36 go to:
37
38 https://projects.coin-or.org/CoinHelp
39
40
41 DOWNLOADING CGL
42 ===============
43
44 You can obtain the source code for the Cgl package as follow:
45
46 Download the most recent tarball from
47 http://www.coin-or.org/download/source/Cgl. Its name should be
48 Cgl-x.y.x.tgz where x, y, and z are three numbers.
49
50 Extract the code, for example, with
51
52 gunzip Cgl-x.y.z.tgz
53 tar xvf Cgl-x.y.z.tar
54
55 (Here "x.y.z" is of course replaced by the string in the
56 tarball you downloaded.)
57
58 To match the description in the remainder of this installation file,
59 rename the directory "Cgl-x.y" to "coin-Cgl" using
60
61 mv Cgl-x.y coin-Cgl
62
63
64 More detailed download instructions can be found at
65
66 https://projects.coin-or.org/CoinHelp
67
68
69
70 CONFIGURATION OF CGL
71 ====================
72
73 Go into the directory 'build' where you want to install Cgl. There, type
74
75 coin-Cgl/configure
76
77 Note that you might have to specify additional options, in case you
78 don't want to use the default choices that configure makes (e.g.,
79 compilers). Please visit
80
81 https://projects.coin-or.org/CoinHelp
82
83 and the Cgl Trac page for more information.
84
85 If everything went fine, you will see at the end of the output
86
87 "Main configuration of Cgl successful"
88
89
90 COMPILATION AND INSTALLATION
91 ============================
92
93 In the directory 'build':
94
95 1. Compile the code by typing
96
97 make
98
99 2. To test if the code works, type (this is optional)
100
101 make test
102
103 The typical output of the test is available from the Cgl Trac page.
104
105 3. To install the code, type
106
107 make install
108
109 The executables are installed in build/bin, the libraries in
110 build/lib and the header files in build/include.
111
112 More information on the compilation and installation can be found on
113 the Cgl Trac page and at
114
115 https://projects.coin-or.org/CoinHelp
116
117
118 DOCUMENTATION
119 =============
120
121 If you have Doxygen available, you can create the html documentation
122 by typing
123
124 make doxydoc
125
126 in the directory 'build'. Then open the file
127
128 coin-Cgl/doxydoc/html/index.html
129
130 with a browser. Note that this creates the documentation for all the
131 projects in the package. If you prefer to generate the documentation
132 only for a subset of these projects, you can edit the file
133
134 coin-Cgl/doxydoc/doxygen.conf
135
136 to exclude directories (using the EXCLUDE variable, for example).
137
138 If Doxygen is not available, the html documentation is available at:
139
140 http://www.coin-or.org/download/source/Cgl
141
142
143 USING THE LIBRARIES
144 ===================
145
146 Now you can link your own code with the installed libraries. You can
147 find examples in the
148
149 coin-Cgl/Cgl/examples/
150
151 subdirectory, see also the information at
152
153 https://projects.coin-or.org/CoinHelp
154
155