1 | These instructions are for UNIX-like systems (including Linux, Cygwin |
---|
2 | and MSys) only. If Microsoft Developer Studio projects are |
---|
3 | maintained for this package, you can find instructions at |
---|
4 | |
---|
5 | https://projects.coin-or.org/MSVisualStudio |
---|
6 | |
---|
7 | ********************************************************************** |
---|
8 | *** DOWNLOAD *** |
---|
9 | ********************************************************************** |
---|
10 | |
---|
11 | You can obtain the source code for the Cbc package in two ways: |
---|
12 | |
---|
13 | 1. Obtain the source directly from the COIN-OR subversion repository |
---|
14 | (recommended). For this you needs the program 'svn' installed on |
---|
15 | your machine, and output of "svn --version" must contain |
---|
16 | "handles 'https' scheme". |
---|
17 | |
---|
18 | Assuming that you want to download the 'trunk' (where the |
---|
19 | development happens) version of the code into a subdirectory |
---|
20 | named "Cbc", you type |
---|
21 | |
---|
22 | svn co https://projects.coin-or.org/svn/Cbc/trunk Cbc |
---|
23 | |
---|
24 | To download stable/2.0 you'd type: |
---|
25 | |
---|
26 | |
---|
27 | svn co https://projects.coin-or.org/svn/Cbc/stable/2.0 Cbc |
---|
28 | |
---|
29 | |
---|
30 | etc. |
---|
31 | |
---|
32 | 2. Download the tarball from http://www.coin-or.org/download/source/Cbc |
---|
33 | and extract it. For example, for the release 2.0.0 you type |
---|
34 | |
---|
35 | gunzip Cbc-2.0.0.tgz |
---|
36 | tar xvf Cbc-2.0.0.tar |
---|
37 | |
---|
38 | More detailed download instructions can be found at |
---|
39 | |
---|
40 | https://projects.coin-or.org/BuildTools/wiki/user-download |
---|
41 | |
---|
42 | ********************************************************************** |
---|
43 | *** CONFIGURATION *** |
---|
44 | ********************************************************************** |
---|
45 | |
---|
46 | Go into the directory that you just downloaded or extracted (e.g., |
---|
47 | Cbc or Cbc-2.0.0). Then create a build directory and |
---|
48 | configure the package by typing |
---|
49 | |
---|
50 | mkdir build |
---|
51 | cd build |
---|
52 | ../configure |
---|
53 | |
---|
54 | Note that you might have to specify additional options, in case you |
---|
55 | don't want to use the default choices that configure makes (e.g., |
---|
56 | compilers). Please visit |
---|
57 | |
---|
58 | https://projects.coin-or.org/BuildTools/wiki/user-configure |
---|
59 | |
---|
60 | and the Cbc Trac page |
---|
61 | |
---|
62 | https://projects.coin-or.org/Cbc |
---|
63 | |
---|
64 | for more information. |
---|
65 | |
---|
66 | If everything went fine, you will see at the end of the output |
---|
67 | |
---|
68 | "Main configuration of Cbc successful" |
---|
69 | |
---|
70 | ********************************************************************** |
---|
71 | *** COMPILATION AND INSTALLATION *** |
---|
72 | ********************************************************************** |
---|
73 | |
---|
74 | In the directory where you ran the configure script: |
---|
75 | |
---|
76 | 1. Compile the code by typing |
---|
77 | |
---|
78 | make |
---|
79 | |
---|
80 | 2. To test if the code works, you can type |
---|
81 | |
---|
82 | make test |
---|
83 | |
---|
84 | 3. To install the code, you type |
---|
85 | |
---|
86 | make install |
---|
87 | |
---|
88 | After this, you will find the executables, libraries and header |
---|
89 | files in the "bin", "lib" and "include" subdirectory, respectively. |
---|
90 | |
---|
91 | More information on the compilation and installation can be found at |
---|
92 | |
---|
93 | https://projects.coin-or.org/BuildTools/wiki/user-compile |
---|
94 | |
---|
95 | ********************************************************************** |
---|
96 | *** USING THE LIBRARIES *** |
---|
97 | ********************************************************************** |
---|
98 | |
---|
99 | Now you can link your own code with the installed libraries. You can |
---|
100 | find examples in the |
---|
101 | |
---|
102 | Cbc/examples/ |
---|
103 | |
---|
104 | subdirectory, see also the information at |
---|
105 | |
---|
106 | https://projects.coin-or.org/BuildTools/wiki/user-examples |
---|