source: trunk/Clp/INSTALL @ 778

Last change on this file since 778 was 754, checked in by andreasw, 13 years ago

first version

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1Prerequisites for installation:
2- at the moment on (*)nix platforms you must use g++ 2.95.2 or higher.
3- must use gnu make
4- to make the documentation doxygen must be installed
5
6Targets are put in subdirectories, whose name is derived from the
7platform name (as returned by `uname`) and the optimization level
8(e.g., Linux-g).
9
10To build Clp library and unitTest
11  - read and edit the top of Makefile to select
12      - whether shared or static library should be built
13      - optimization level
14      - where the compiled library should be installed
15  - read and edit ../Common/make/Makefile.locations to uncomment Clp lines
16  - 'make' to build and install the library.
17  - 'make unitTest' to create the unitTest program. It will be placed
18    in the target subdirectory.
19
20  - 'make doc' to create the html documentation of the classes in the
21    library and place them in doc/html.
22
23To run Clp unitTest
24  - clp -unitTest from Clp directory
25To run Clp on netlib
26  - clp -netlib from Clp directory (or -netlibp for primal).
27
28To build Clp executable (after Clp libraries)
29  In This directory 'make unitTest'.  This actually creates and executable
30    clp in this directory which can both do unit test and act as simple
31    Clp driver
32
33Tuning information.  On Intel Linux I modified Makefiles/Makefile.Linux to add:
34
35ifeq ($(OptLevel),-O1)
36     CXXFLAGS += -DNDEBUG
37     CXXFLAGS += -ffast-math -fomit-frame-pointer
38     CXXFLAGS += -march=i686
39endif
40
41in Coin/Makefile I added the following to get dense code handling
42
43CXXFLAGS += -DDENSE_CODE=1
44
45and change Optimization level to -O1 (same level in Clp/Makefile.Clp).
46
47and finally in Clp/Test/Makefile.test I added
48
49#if DENSE and using given libraries
50LDFLAGS += -llapack -lblas -lg2c
51
52If you have not got these libraries then leave out dense code flags
53
54For more information see README and files in Samples
55
56IMPORTANT new note
57To address the problem of stability I have gone over to a new system of releases.
58Now a new release is a more minor thing but has its own snapshot.  To find out what
59releases have snapshots just do
60
61make restore
62
63To restore Clp and Coin files to that snapshot do
64
65make restore BACKUP=xxxx where a snapshot Clp_xxxx.tar or Clp_xxxx.tar.gz is available
66and check that it looks OK.  Then do make restore BACKUP=xxxx CONFIRM=YES to actually
67overwrite files.  Then do make unitTest.
68
69You can also create your own snapshots with make dist or make backup.  BUT use great care.
Note: See TracBrowser for help on using the repository browser.