This works okay with cuda 12 btw I use the following somewhat hacky and modified scipt to get the build working. Maybe I should just do cuda < 13.
#!/bin/hint/bash
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
-check_option "debug" "y" && BUILD_TYPE=Debug || BUID_TYPE=Release
-
## Configuration env vars:
_BUILD_CUDA="${BUILD_CUDA:-ON}"
_CUDA_ARCHITECTURES="${CUDA_ARCH:-native}"
@@ -13,7 +11,7 @@
_name=colmap
#fragment="#commit=5bea89263bf5f3ed623b8e6e6a5f022a0ed9c1de"
pkgname=${_name}-git
-pkgver=3.8.r219.g6eb27c01
+pkgver=3.8.r224.gc0d89268
pkgrel=1
pkgdesc="General-purpose Structure-from-Motion (SfM) and Multi-View Stereo (MVS) pipeline with a graphical and command-line interface."
arch=('i686' 'x86_64')
@@ -25,7 +23,7 @@
depends=('cgal' 'ceres-solver' 'gflags' 'metis' 'suitesparse' 'freeglut' 'glew' 'google-glog' 'freeimage' 'libjpeg' 'boost-libs' 'qt5-base' 'flann')
makedepends=('boost' 'cmake' 'eigen' 'git' 'ninja' 'python-sphinx' )
if [ "$_BUILD_CUDA" == "ON" ] ; then
- makedepends+=('cuda<12')
+ makedepends+=('cuda>=12')
optdepends+=('libcudart.so: required for dense reconstruction')
fi
source=("${pkgname}::git+https://github.com/colmap/colmap.git${_fragment}"
@@ -42,9 +40,6 @@
git -C "$pkgname" describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
-prepare() {
-: # git -C "$pkgname" apply -v "$srcdir"/*.patch
-}
build() {
# determine whether we can precompile CUDA kernels
@@ -62,7 +57,7 @@
fi
_CMAKE_FLAGS+=( -DTESTS_ENABLED=OFF
- -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
+ -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/usr )
cmake "${_CMAKE_FLAGS[@]}" -G Ninja -S "$pkgname" -B build
# shellcheck disable=SC2046 # allow MAKEFLAGS to carry multiple flags.
@@ -83,4 +78,4 @@
install -m644 "${vocab_tree}" "${pkgdir}/usr/share/${_name}/${vocab_tree##*/}"
done
}
Pinned Comments
bartus commented on 2019-04-10 11:42 (UTC) (edited on 2024-02-12 15:16 (UTC) by bartus)
This package is also hosted on GitHub.
issues
andpatches
at GitHub.Use env vars to control build process:
BUILD_CUDA=ON|OFF
to skip cuda kernel build (default 'ON')CUDA_ARCH="5.2,7.2"
to build for a specific Cuda arch, supports multiple values.MAKEFLAGS="xxx:yyy"
to override default make flags (colon-separated list)Usage cases:
export BUILD_CUDA=OFF
before buildBUILD_CUDA=OFF ~your-aur-helper~
makepkg BUILD_CUDA=OFF
yay -S colmap-git --mflags "BUILD_CUDA=OFF"
bartus commented on 2017-03-21 11:02 (UTC) (edited on 2017-04-25 08:04 (UTC) by bartus)