forked from colmap/glomap
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpixi.toml
75 lines (69 loc) · 1.7 KB
/
pixi.toml
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
[project]
channels = ["conda-forge"]
name = "glomap"
platforms = ["linux-64"]
version = "0.1.0"
[activation]
scripts = [".pixi.sh"]
[tasks]
clean = "rm -rf build"
[tasks.download-example-data]
cmd = """
test -e "data/south-building/"
|| (
mkdir -p checkpoints/
&& wget https://demuc.de/colmap/datasets/south-building.zip
&& unzip south-building.zip -d data/
)
"""
[tasks.example]
cmd = """
glomap mapper \
--database_path data/south-building/database.db \
--image_path data/south-building/images \
--output_path data/south-building/sparse
"""
depends-on = ["download-example-data", "build"]
[tasks._apply-patch]
cmd = """
git apply --check colmap-310-compat.patch 2>/dev/null && \
git apply colmap-310-compat.patch || \
echo "Patch already applied or cannot be applied"
"""
[tasks._prepare]
cmd = """
cmake -B build -S . -GNinja \
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
-DCMAKE_EXE_LINKER_FLAGS="-L$CONDA_PREFIX/lib" \
-DFETCH_COLMAP=OFF \
-DFETCH_POSELIB=OFF \
-DFETCH_RERUN=OFF
"""
depends-on = ["_apply-patch"]
[tasks.build]
cmd = "ninja -C build && ninja -C build install"
depends-on = ["_prepare"]
[dependencies]
cmake = ">=3.30.5,<4"
make = ">=4.4.1,<5"
pkg-config = ">=0.29.2,<0.30"
ninja = ">=1.12.1,<2"
libgomp = ">=14.2.0,<15"
eigen = ">=3.4.0,<4"
libblas = ">=3.9.0,<4"
libcblas = ">=3.9.0,<4"
suitesparse = ">=7.8.3,<8"
ceres-solver = ">=2.2.0,<3"
libboost-devel = ">=1.86.0,<2"
glog = ">=0.7.1,<0.8"
poselib = ">=2.0.4,<3"
colmap = ">=3.10,<4"
cgal-cpp = ">=6.0.1,<7"
freeimage = ">=3.18.0,<4"
sqlite = ">=3.47.0,<4"
gflags = ">=2.2.2,<3"
rerun-sdk = "==0.17.0"
librerun-sdk = ">=0.17.0,<0.18"
unzip = ">=6.0,<7"
wget = ">=1.21,<2"