-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathbuildCBCLinuxARM.sh
More file actions
executable file
·75 lines (59 loc) · 2.37 KB
/
Copy pathbuildCBCLinuxARM.sh
File metadata and controls
executable file
·75 lines (59 loc) · 2.37 KB
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
export CFLAGS="-Ofast -fPIC -flto -DNDEBUG -fprefetch-loop-arrays -I/opt/gcc/include/"
export FFLAGS="-Ofast -fPIC -flto -DNDEBUG -I/opt/gcc/include/"
export CXXFLAGS="-Ofast -fPIC -flto -fprefetch-loop-arrays -DNDEBUG -I/opt/gcc/include/"
export LDFLAGS="-Ofast -fPIC -L/opt/gcc/lib -flto -static-libgcc -static-libstdc++ -static-libgfortran"
dir=`pwd`
mkdir -p ~/prog
cd ~/prog
IDIR=`pwd`
export PKG_CONFIG_PATH=${IDIR}/lib/pkgconfig/:${PKG_CONFIG_PATH}
#cd $dir/ThirdParty-Metis
#./configure --prefix=$IDIR --enable-cbc-parallel --enable-static --disable-shared --enable-gnu-packages
#make -j 6
#make -j 6 install
cd $dir/ThirdParty-Blas
./configure --prefix=$IDIR --enable-cbc-parallel --enable-static --disable-shared --enable-gnu-packages
make -j 6
make -j 6 install
cd $dir/ThirdParty-Lapack
./configure --prefix=$IDIR --enable-cbc-parallel --enable-static --disable-shared --enable-gnu-packages
make -j 6
make -j 6 install
#cd $dir/ThirdParty-Mumps
#./configure --prefix=$IDIR --enable-cbc-parallel --enable-static --disable-shared --enable-gnu-packages
#make -j 6
#make -j 6 install
cd $dir/ThirdParty-Glpk
./configure --prefix=$IDIR --enable-cbc-parallel --enable-static --disable-shared --enable-gnu-packages
make -j 6
make -j 6 install
cd $dir/CoinUtils
./configure --prefix=$IDIR --enable-cbc-parallel --enable-static --disable-shared --enable-gnu-packages
make -j 6
make -j 6 install
cd $dir/Osi
./configure --prefix=$IDIR --enable-cbc-parallel --enable-static --disable-shared --enable-gnu-packages
make -j 6
make -j 6 install
cd $dir/Clp
./configure --prefix=$IDIR --enable-cbc-parallel --enable-static --disable-shared --enable-gnu-packages
make -j 6
make -j 6 install
cd $dir/Cgl
./configure --prefix=$IDIR --enable-cbc-parallel --enable-static --disable-shared --enable-gnu-packages
make -j 6
make -j 6 install
cd $dir/Cbc
./configure --prefix=$IDIR --enable-cbc-parallel --enable-static --disable-shared --enable-gnu-packages
make -j 6
make -j 6 install
cd $IDIR
patch -p1 < $dir/../scripts/coinutils-glpk.patch
cd $dir
g++ -shared -Ofast -fPIC -o ../mip/libraries/cbc-c-linux-aarch64.so \
-I${IDIR}/include/coin-or/ \
-DCBC_THREAD \
./Cbc/src/Cbc_C_Interface.cpp \
-L/opt/gcc/lib64/ -L${IDIR}/lib/ \
-lCbc -lpthread -lrt -lCgl -lOsiClp -lClp -lOsi -lCoinUtils -lreadline -lz -lbz2 \
-lcoinlapack -lcoinblas -lgfortran -lm -static-libgcc -static-libstdc++ -static-libgfortran -lcoinglpk