-
Notifications
You must be signed in to change notification settings - Fork 2
/
compile.sh
executable file
·89 lines (89 loc) · 1.91 KB
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
mkdir build
cd build
build_dir=$PWD
inc_dir=${build_dir%%/}/include
lib_dir=${build_dir%%/}/lib
pkg_dir=${lib_dir%%/}/pkgconfig
PKG_CONFIG_PATH=${pkg_dir}:$PKG_CONFIG_PATH
export CXXFLAGS="-std=c++11 -g"
# configure and install ThirdParty
mkdir -p ThirdParty/Blas
cd ThirdParty/Blas
../../../ThirdParty/Blas/configure --prefix=$build_dir
make -j 10 install
cd ..
mkdir Lapack
cd Lapack
../../../ThirdParty/Lapack/configure --prefix=$build_dir
make -j 10 install
cd ..
mkdir HSL
cd HSL
../../../ThirdParty/HSL/configure --prefix=$build_dir
make -j 10 install
cd ..
mkdir Metis
cd Metis
../../../ThirdParty/Metis/configure --prefix=$build_dir
make -j 10 install
cd ..
mkdir Mumps
cd Mumps
../../../ThirdParty/Mumps/configure --prefix=$build_dir
make -j 10 install
cd ../..
# configure and install CoinUtils
mkdir CoinUtils
cd CoinUtils
../../CoinUtils/configure --prefix=$build_dir
make -j 10 install
cd ..
# configure and install Osi
mkdir Osi
cd Osi
../../Osi/configure --prefix=$build_dir
make -j 10 install
cd ..
# configure and install Clp
mkdir Clp
cd Clp
../../Clp/configure --prefix=$build_dir
make -j 10 install
cd ..
#configure and install OsiConic
mkdir OsiConic
cd OsiConic
../../OsiConic/configure --prefix=$build_dir
make -j 10 install
cd ..
#configure and install Ipopt
mkdir Ipopt
cd Ipopt
../../Ipopt/configure --prefix=$build_dir
make -j 10 install
cd ..
#configure and install Ipopt
mkdir OsiIpopt
cd OsiIpopt
../../OsiIpopt/configure --prefix=$build_dir
make -j 10 install
cd ..
### configure and install OsiMosek, uncomment if you have mosek
# mkdir OsiMosek
# cd OsiMosek
# ../../OsiMosek/configure --prefix=$build_dir
# make -j 10 install
# cd ..
### configure and install OsiCplex, uncomment if you have cplex
# mkdir OsiCplex
# cd OsiCplex
# ../../OsiCplex/configure --prefix=$build_dir
# make -j 10 install
# cd ..
#configure and install Cola
mkdir Cola
cd Cola
../../configure --prefix=$build_dir
make -j 10 install
cd ..