-
Notifications
You must be signed in to change notification settings - Fork 130
/
build_libs_unix.sh
executable file
·100 lines (76 loc) · 3.04 KB
/
build_libs_unix.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
90
91
92
93
94
95
96
97
98
99
ROOT=$(pwd)
echo $ROOT
git submodule update --init --recursive
pushd third_party/eigen3
mkdir build_cmake
cd build_cmake
cmake -DCMAKE_DEBUG_POSTFIX="" -DINSTALL_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=local_install ..
make -j4
make install
popd
cd $ROOT
pushd third_party/bullet3
mkdir build_cmake
cd build_cmake
cmake -DUSE_DOUBLE_PRECISION=ON -DCMAKE_DEBUG_POSTFIX="" -DINSTALL_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=local_install ..
make -j4
make install
popd
cd $ROOT
pushd third_party/gflags
mkdir build_cmake
cd build_cmake
cmake -DCMAKE_DEBUG_POSTFIX="" -DINSTALL_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=$ROOT/third_party/gflags/build_cmake/local_install ..
make -j4
make install
popd
cd $ROOT
pushd third_party/glog
mkdir build_cmake
cd build_cmake
cmake -DCMAKE_DEBUG_POSTFIX="" -DINSTALL_LIBS=ON -DCMAKE_BUILD_TYPE=Release -Dgflags_DIR=$ROOT/third_party/gflags/build_cmake -DCMAKE_INSTALL_PREFIX:PATH=$ROOT/third_party/glog/build_cmake/local_install ..
make -j4
make install
popd
cd $ROOT
pushd third_party/ceres-solver
mkdir build_cmake
cd build_cmake
cmake -DBUILD_EXAMPLES=OFF -DBUILD_BENCHMARKS=OFF -DBUILD_TESTING=OFF -Dgflags_DIR=$ROOT/third_party/gflags/build_cmake -Dglog_DIR=$ROOT/third_party/glog/build_cmake -DEigen3_DIR=$ROOT/third_party/eigen3/build_cmake -DCMAKE_DEBUG_POSTFIX="" -DINSTALL_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=$ROOT/third_party/ceres-solver/build_cmake/local_install ..
make -j4
make install
popd
cd $ROOT
pushd third_party/boost
./bootstrap.sh
./b2 --with-serialization
popd
cd $ROOT
pushd third_party/osqp
mkdir build_cmake
cd build_cmake
cmake -DCMAKE_DEBUG_POSTFIX="d" -DINSTALL_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=$ROOT/third_party/osqp/build_cmake/local_install ..
cmake --build . --target INSTALL --config Debug
cmake --build . --target INSTALL --config Release
popd
cd $ROOT
pushd third_party/qpoases
mkdir build_cmake
cd build_cmake
cmake -DCMAKE_DEBUG_POSTFIX="d" -DINSTALL_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=$ROOT/third_party/qpoases/build_cmake/local_install ..
cmake --build . --target INSTALL --config Debug
cmake --build . --target INSTALL --config Release
popd
cd $ROOT
pushd third_party/osqp
mkdir build_cmake
cd build_cmake
cmake -DINSTALL_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=$ROOT/third_party/osqp/build_cmake/local_install ..
make -j4
make install
popd
cd $ROOT
mkdir build_cmake
cd build_cmake
cmake -DBullet_DIR=$ROOT/third_party/bullet3/build_cmake -Dgflags_DIR=$ROOT/third_party/gflags/build_cmake -Dglog_DIR=$ROOT/third_party/glog/build_cmake -DEigen3_DIR=$ROOT/third_party/eigen3/build_cmake -DCeres_DIR=$ROOT/third_party/ceres-solver/build_cmake/local_install/lib/cmake/Ceres -DUSE_CPPAD=ON -DUSE_CERES=OFF -DPAGMO_WITH_EIGEN3=ON -DBoost_DIR:PATH=$ROOT/third_party/boost/stage/lib/cmake/Boost-1.75.0 -DUSE_CERES=OFF -DUSE_OSQP=ON -Dosqp_DIR=$ROOT/third_party/osqp/build_cmake ..
make -j4