Skip to content

Commit 5e875ef

Browse files
committed
try building on mac rather than brewing
1 parent d00ac19 commit 5e875ef

1 file changed

Lines changed: 44 additions & 20 deletions

File tree

Lines changed: 44 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,44 @@
1-
# prevent brew from auto cleanup
2-
export HOMEBREW_NO_INSTALL_CLEANUP=1
3-
4-
brew install fcl
5-
6-
# mkdir -p deps
7-
# cd deps
8-
# # Octomap
9-
# git clone https://github.com/OctoMap/octomap
10-
# cd octomap
11-
# git checkout tags/v1.8.0
12-
# mkdir build
13-
# cd build
14-
# cmake ..
15-
# make
16-
# sudo make install
17-
18-
# cd ..
19-
# cd ..
20-
# cd ..
1+
# exit immediately on any failed step
2+
set -xe
3+
4+
mkdir -p deps
5+
cd deps
6+
7+
curl -OL https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz
8+
tar -zxf eigen-3.3.9.tar.gz
9+
10+
rm -rf libccd
11+
git clone --depth 1 --branch v2.1 https://github.com/danfis/libccd.git
12+
13+
rm -rf octomap
14+
git clone --depth 1 --branch v1.9.8 https://github.com/OctoMap/octomap.git
15+
16+
rm -rf fcl
17+
git clone --depth 1 --branch v0.7.0 https://github.com/ambi-robotics/fcl.git
18+
19+
# Install eigen
20+
cmake -B build -S eigen-3.3.9
21+
cmake --install build
22+
23+
# Build and install libccd
24+
cd libccd
25+
cmake . -D ENABLE_DOUBLE_PRECISION=ON
26+
make -j4
27+
make install
28+
cd ..
29+
30+
# Build and install octomap
31+
cd octomap
32+
cmake . -D CMAKE_BUILD_TYPE=Release -D BUILD_OCTOVIS_SUBPROJECT=OFF -D BUILD_DYNAMICETD3D_SUBPROJECT=OFF
33+
make -j4
34+
make install
35+
cd ..
36+
37+
# Build and install fcl
38+
cd fcl
39+
cmake .
40+
make -j4
41+
make install
42+
cd ..
43+
44+
cd ..

0 commit comments

Comments
 (0)