I had to manually add -DCUDA_ENABLED=OFF, seems CUDA_ENABLED defaults to ON.
Search Criteria
Package Details: colmap-git 4.1.0.dev0.r64.gac6f952cb-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/colmap-git.git (read-only, click to copy) |
|---|---|
| Package Base: | colmap-git |
| Description: | General-purpose Structure-from-Motion (SfM) and Multi-View Stereo (MVS) pipeline with a graphical and command-line interface. |
| Upstream URL: | https://colmap.github.io/ |
| Keywords: | 3d multi-view-stereo reconstruction structure-from-motion |
| Licenses: | GPL |
| Conflicts: | colmap |
| Provides: | colmap |
| Submitter: | bartus |
| Maintainer: | bartus (mgrewe) |
| Last Packager: | bartus |
| Votes: | 5 |
| Popularity: | 0.000000 |
| First Submitted: | 2017-03-21 10:48 (UTC) |
| Last Updated: | 2026-04-15 14:20 (UTC) |
Dependencies (23)
- boost-libs
- ceres-solver (ceres-solver-legacyAUR, ceres-solver-cuda-gitAUR, ceres-solver-gitAUR, ceres-solver-cudaAUR, ceres-solver-lgplAUR)
- cgal (cgal-gitAUR)
- flann
- freeglut (freeglut-x11-gitAUR, freeglut-wayland-gitAUR)
- freeimageAUR (freeimage-vpinball-gitAUR)
- gflags (gflags-gitAUR)
- glew (glew-libepoxyAUR, glew-wayland-gitAUR, glew-gitAUR)
- google-glog (ng-logAUR, glog-gitAUR, glog-gitAUR)
- libjpeg (mozjpeg-gitAUR, mozjpegAUR)
- metisAUR (metis-gitAUR)
- onnxruntime-cpu
- openimageio (openimageio-gitAUR)
- protobuf (protobuf-gitAUR)
- qt5-base (qt5-base-gitAUR, qt5-base-headlessAUR)
- qt5-svg (qt5-svg-gitAUR)
- suitesparse
- boost (boost-gitAUR) (make)
- cmake (cmake3AUR, cmake-gitAUR) (make)
- eigen (eigen-gitAUR, eigen3) (make)
- Show 3 more dependencies...
Required by (0)
Sources (4)
Latest Comments
« First ‹ Previous 1 2 3
Harvie commented on 2018-04-01 00:27 (UTC)
bartus commented on 2018-03-30 04:08 (UTC)
@Harvie
PKGBUILD is cuda aware - if you build on system without cuda it won't be turned on:
52 # determine whether we can precompile CUDA kernels
53 _CUDA_PKG=`pacman -Qq cuda 2>/dev/null` || true
54 if [ "$_CUDA_PKG" != "" ]; then
55 _EXTRAOPTS="-DCUDA_ENABLED=ON -DCUDA_HOST_COMPILER=/opt/cuda/bin/gcc -DCUDA_TOOLKIT_ROOT_DIR=/opt/cuda"
56 fi
If you want to disble cuda kernel you can always comment out _EXTRAOPTS.
If you have any better ide, I'm open for patching ;)
Harvie commented on 2018-03-30 01:22 (UTC)
Please make non-CUDA version of the package. or at least simple option to disable CUDA that can be uncommented on top of the PKGBUILD.
bartus commented on 2018-01-13 22:58 (UTC) (edited on 2018-01-15 07:38 (UTC) by bartus)
@sliedes problem lays in the new directory organization, switch to master until the issue gets resolved upstream.
sliedes commented on 2018-01-13 13:13 (UTC) (edited on 2018-01-13 13:13 (UTC) by sliedes)
Currently fails the package() step:
<hr>==> Entering fakeroot environment... ==> Starting package()... [...] Install the project... -- Install configuration: "Release" CMake Error at cmake_install.cmake:41 (FILE): FILE problem creating directory: /usr/lib/colmap
make: *** [Makefile:118: install] Error 1 ==> ERROR: A failure occurred in package(). Aborting...
<hr>The offending code in src/build/cmake_install.cmake is
<hr>if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT) FILE(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/lib/colmap) endif()
<hr>My cmake-fu is not sufficient to understand how and when it takes DESTDIR into account, but here it seems to fail...
Pinned Comments
bartus commented on 2019-04-10 11:42 (UTC) (edited on 2026-04-29 21:18 (UTC) by bartus)
This package is also hosted on GitHub.
issuesandpatchesat GitHub.Use env vars to control build process:
BUILD_CUDA=ON|OFFto skip cuda kernel build (default 'ON')CUDA_ARCH="5.2,7.2"to build for a specific Cuda arch, supports multiple values.CMAKE_FLAGS="xxx:yyy"to add extra CMake switches (colon-separated list)Usage cases:
export BUILD_CUDA=OFFbefore buildBUILD_CUDA=OFF ~your-aur-helper~makepkg BUILD_CUDA=OFFyay -S colmap-git --mflags "BUILD_CUDA=OFF"