Install this version:
emerge -a =media-gfx/colmap-4.2.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =media-gfx/colmap-4.2.1
Or alternatively:
emerge --autounmask-write -a =media-gfx/colmap-4.2.1
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake xdg-utils
DESCRIPTION="A general-purpose Structure-from-Motion and Multi-View Stereo pipeline."
HOMEPAGE="https://colmap.github.io/"
if [[ ${PV} = *9999* ]] ; then
EGIT_REPO_URI="https://github.com/colmap/colmap.git"
inherit git-r3
else
SRC_URI="https://github.com/colmap/colmap/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
https://github.com/PoseLib/PoseLib/archive/refs/tags/v2.0.4.tar.gz -> PoseLib-2.0.4.tar.gz"
S="${WORKDIR}/colmap-${PV}"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="BSD"
SLOT="4"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-libs/boost
dev-cpp/eigen
sci-libs/flann
media-libs/freeimage
sci-libs/metis
dev-db/sqlite
media-libs/glew
sci-libs/cholmod
sci-libs/onnxruntime
dev-qt/qtbase
sci-mathematics/cgal
sci-libs/ceres-solver
"
DEPEND="${RDEPEND}"
BDEPEND="
sys-devel/gcc
"
S="${WORKDIR}/colmap-${PV}"
src_prepare() {
default
cmake_src_prepare
# Apply any necessary patches here
}
src_configure() {
local mycmakeargs=(
-DPoseLib_DIR="${WORKDIR}/PoseLib-2.0.4"
# -DCMAKE_CUDA_ARCHITECTURES=75
)
cmake_src_configure
}
src_install() {
cmake_src_install
}
pkg_postinst() {
xdg_desktop_database_update
elog "Colmap has been installed."
elog "You can start using it by running the colmap command."
}
dev-libs/boost dev-cpp/eigen sci-libs/flann media-libs/freeimage sci-libs/metis dev-db/sqlite media-libs/glew sci-libs/cholmod sci-libs/onnxruntime dev-qt/qtbase sci-mathematics/cgal sci-libs/ceres-solver
dev-libs/boost dev-cpp/eigen sci-libs/flann media-libs/freeimage sci-libs/metis dev-db/sqlite media-libs/glew sci-libs/cholmod sci-libs/onnxruntime dev-qt/qtbase sci-mathematics/cgal sci-libs/ceres-solver
sys-devel/gcc
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | PoseLib-2.0.4.tar.gz | 198206 bytes | https://github.com/PoseLib/PoseLib/archive/refs/tags/v2.0.4.tar.gz |
| DIST | colmap-4.2.1.tar.gz | 4199943 bytes | https://github.com/colmap/colmap/archive/refs/tags/4.2.1.tar.gz |