Debian Codegraph @

INSTALL

raw
1 The instructions here are somewhat outdated. See also README.md.
2
3 These instructions are for UNIX-like systems (including Linux, Cygwin
4 and MSys) only. If Microsoft Developer Studio projects are
5 maintained for this package, you can find instructions at
6
7 https://projects.coin-or.org/MSVisualStudio
8
9 **********************************************************************
10 *** DOWNLOAD ***
11 **********************************************************************
12
13 You can obtain the source code for the Osi package in two ways:
14
15 1. Obtain the source directly from the COIN-OR subversion repository
16 (recommended). For this you needs the program 'svn' installed on
17 your machine, and output of "svn --version" must contain
18 "handles 'https' scheme".
19
20 Assuming that you want to download the code into a subdirectory
21 "COIN-Osi", you type
22
23 svn co https://projects.coin-or.org/svn/Osi/trunk Coin-Osi
24
25 2. Download the tarball from http://www.coin-or.org/Tarballs/Osi and
26 extract it, for example, with
27
28 gunzip Osi_2006Jun07.tgz
29 tar xvf Osi_2006Jun07.tar
30
31 (Here "2006Jun07" is of course replaced by the string in the
32 tarball you downloaded.)
33
34 More detailed download instructions can be found at
35
36 https://projects.coin-or.org/BuildTools/wiki/user-download
37
38 **********************************************************************
39 *** CONFIGURATION ***
40 **********************************************************************
41
42 Go into the directory that you just downloaded or extracted (e.g.,
43 Coin-Osi or Osi_2006Jun07). Then you type
44
45 ./configure
46
47 Note that you might have to specify additional options, in case you
48 don't want to use the default choices that configure makes (e.g.,
49 compilers). Please visit
50
51 https://projects.coin-or.org/BuildTools/wiki/user-configure
52
53 and the Osi Trac page
54
55 https://projects.coin-or.org/Osi
56
57 for more information.
58
59 If everything went fine, you will see at the end of the output
60
61 "Main configuration of Osi successful"
62
63 **********************************************************************
64 *** COMPILATION AND INSTALLATION ***
65 **********************************************************************
66
67 In the directory where you ran the configure script:
68
69 1. Compile the code by typing
70
71 make
72
73 2. To test if the code works, you can type
74
75 make test
76
77 3. To install the code, you type
78
79 make install
80
81 After this, you will find the executables, libraries and header
82 files in the "bin", "lib" and "include" subdirectory, respectively.
83
84 More information on the compilation and installation can be found at
85
86 https://projects.coin-or.org/BuildTools/wiki/user-compile
87
88 **********************************************************************
89 *** USING THE LIBRARIES ***
90 **********************************************************************
91
92 Now you can link your own code with the installed libraries. You can
93 find examples in the
94
95 Osi/examples/
96
97 subdirectory, see also the information at
98
99 https://projects.coin-or.org/BuildTools/wiki/user-examples
100
101
102
103 ==== 8< ======================================================
104
105 From here on you find the original installation instructions for the
106 previous GNU Makefile build system. Most details have changed, but
107 for now we keep it here so that possibly missing items might be found
108 here.
109
110 Prerequisites for installation:
111 - at the moment on (*)nix platforms you must use g++ 2.95.2 or higher.
112 - must use gnu make
113 - to make the documentation doxygen must be installed
114
115 Targets are put in subdirectories, whose name is derived from the
116 platform name (as returned by `uname`) and the optimization level
117 (e.g., Linux-g).
118
119 To build Osi library and unitTest
120 - read and edit the top of Makefile to select
121 - whether shared or static library should be built
122 - optimization level
123 - where the compiled library should be installed
124 - which solvers you want to compile in.
125 If you want to use the Volume Algorithm as a solver then first
126 you must build and install libvol. See Vol/INSTALL in the COIN
127 root directory.
128 - 'make' to build and install the library.
129 - 'make unitTest' to create the unitTest program. It will be placed
130 in the target subdirectory.
131
132 - 'make doc' to create the html documentation of the classes in the
133 library and place them in doc/html.
134
135 To run Osi unitTest
136 - ./TARGET_SUBDIRECTORY/unitTest
137 where TARGET_SUBDIRECTORY is the name of the subdirectory
138 containing the unitTest executable.
139