-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_script_ubuntu.sh
38 lines (31 loc) · 956 Bytes
/
build_script_ubuntu.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
#!/bin/sh
DEV_DIR="$HOME/dev"
mkdir $DEV_DIR
SCRIPT_DIR=$(cd $(dirname $0); pwd)
cd $DEV_DIR
git clone https://github.com/glfw/glfw.git -b 3.3.2 --depth 1
cd glfw
mkdir build && cd build
cmake -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_DOCS=OFF -DBUILD_SHARED_LIBS=ON ..
make -j8
sudo make install
cd $DEV_DIR
git clone https://github.com/assimp/assimp.git -b v5.0.1 --depth 1
cd assimp
mkdir build && cd build
cmake -DASSIMP_BUILD_TESTS=OFF -DASSIMP_BUILD_ASSIMP_TOOLS=OFF -DASSIMP_NO_EXPORT=ON -DASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT=OFF -DASSIMP_BUILD_PLY_IMPORTER=ON -DASSIMP_BUILD_STL_IMPORTER=ON ..
make -j8
sudo make install
#cd $DEV_DIR
#git clone https://github.com/gabime/spdlog.git -b v1.8.1 --depth 1
#cd spdlog
#mkdir build && cd build
#cmake -DSPDLOG_BUILD_SHARED=ON ..
#make -j8
#sudo make install
# ROS2 uses libspdlog-dev
sudo apt-get install libspdlog-dev
cd $SCRIPT_DIR
mkdir build && cd build
cmake ..
make -j8