-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRoutePlanner.def
More file actions
99 lines (86 loc) · 2.15 KB
/
RoutePlanner.def
File metadata and controls
99 lines (86 loc) · 2.15 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
BootStrap: library
From: ubuntu:22.04
%post
cd
apt -y update
DEBIAN_FRONTEND=noninteractive \
apt -y install \
micro \
git \
curl \
wget \
zip \
cmake \
ninja-build \
build-essential \
libboost-program-options-dev \
libboost-filesystem-dev \
libboost-graph-dev \
libboost-system-dev \
libeigen3-dev \
libflann-dev \
libfreeimage-dev \
libmetis-dev \
libgoogle-glog-dev \
libgtest-dev \
libsqlite3-dev \
libglew-dev \
qtbase5-dev \
libqt5opengl5-dev \
libcgal-dev \
libceres-dev
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
dpkg -i cuda-keyring_1.1-1_all.deb
DEBIAN_FRONTEND=noninteractive \
apt update \
apt -y install cuda-toolkit-12-6
git clone https://github.com/othiagos/COPS.git
git clone https://github.com/profDarlanBrito/RoutePlanner.git
wget https://github.com/colmap/colmap/archive/refs/tags/3.9.1.zip
chmod 755 RoutePlanner/scripts/RouteOptimization.sh
export PATH=$PATH:/usr/local/cuda/bin
unzip 3.9.1.zip
cd colmap-3.9.1
mkdir build
cd build
cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=70
ninja
ninja install
cd
DEBIAN_FRONTEND=noninteractive \
apt -y install \
make \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
llvm \
libncursesw5-dev \
xz-utils \
tk-dev \
libxml2-dev \
libxmlsec1-dev \
libffi-dev \
liblzma-dev
wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tar.xz
tar -xvf Python-3.11.0.tar.xz
cd Python-3.11.0
./configure
make
make install
cd
pip3 install -r RoutePlanner/requirements.txt
cd RoutePlanner
gdown 1w1AdYegAplRWNPhswgpy8qSmuBjSTAc4
unzip mesh_obj.zip
cd
# remove arquivos de instalações
rm -rf colmap-3.9.1/ 3.9.1.zip Python-3.11.0/ Python-3.11.0.tar.xz cuda-keyring_1.1-1_all.deb
# limpar cache das instalações
rm -rf /var/lib/apt/lists/*
apt clean
%environment
export PATH=$PATH:/usr/local/cuda/bin
%labels
Author VeRlab