Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Success manual compilation of colmap not with custom ebuild

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
lastrodamo
n00b
n00b
User avatar
Posts: 11
Joined: Thu Jan 26, 2023 12:56 pm
Contact:
Contact lastrodamo
Website

Success manual compilation of colmap not with custom ebuild

  • Quote

Post by lastrodamo » Sun Dec 31, 2023 2:14 pm

I try to compile an ebuild I have made of the software colmap 3.9 dev "A general-purpose Structure-from-Motion and Multi-View Stereo pipeline."
Here the ebuild

Code: Select all

# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake xdg-utils git-r3

DESCRIPTION="A general-purpose Structure-from-Motion and Multi-View Stereo pipeline."
HOMEPAGE="https://colmap.github.io/"
#SRC_URI="https://github.com/colmap/colmap/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
EGIT_REPO_URI="https://github.com/colmap/colmap.git"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="
    sci-libs/ceres-solver
    dev-libs/boost
    media-libs/freeimage
    sci-libs/metis"

RDEPEND="${DEPEND}"

#CMAKE_IN_SOURCE_BUILD=1

MYCMAKEARGS="-DCMAKE_CUDA_ARCHITECTURES=native"

pkg_postinst() {
    xdg_desktop_database_update
}
and the errors when I compile it

Code: Select all

-- Disabling profiling support
-- <<< Gentoo configuration >>>
Build type      RelWithDebInfo
Install path    /usr
Compiler flags:
C               -march=native -O2 -pipe -Wno-maybe-uninitialized
C++             -march=native -O2 -pipe -Wno-maybe-uninitialized
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

-- Configuring done (5.9s)
CMake Error in CMakeLists.txt:
  CUDA_ARCHITECTURES is set to "native", but no GPU was detected.


CMake Error in src/colmap/mvs/CMakeLists.txt:
  CUDA_ARCHITECTURES is set to "native", but no GPU was detected.


CMake Error in src/thirdparty/SiftGPU/CMakeLists.txt:
  CUDA_ARCHITECTURES is set to "native", but no GPU was detected.


-- Generating done (0.1s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
 * ERROR: media-libs/colmap-3.9::lastrodamo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 2733:  Called cmake_src_configure
 *   environment, line 1235:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=media-libs/colmap-3.9::lastrodamo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/colmap-3.9::lastrodamo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/colmap-3.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/colmap-3.9/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/colmap-3.9/work/colmap-3.9_build'
 * S: '/var/tmp/portage/media-libs/colmap-3.9/work/colmap-3.9'

>>> Failed to emerge media-libs/colmap-3.9, Log file:

>>>  '/var/tmp/portage/media-libs/colmap-3.9/temp/build.log'

 * Messages for package media-libs/colmap-3.9:

 * ERROR: media-libs/colmap-3.9::lastrodamo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 2733:  Called cmake_src_configure
 *   environment, line 1235:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=media-libs/colmap-3.9::lastrodamo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/colmap-3.9::lastrodamo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/colmap-3.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/colmap-3.9/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/colmap-3.9/work/colmap-3.9_build'
 * S: '/var/tmp/portage/media-libs/colmap-3.9/work/colmap-3.9'
What can I do to solve this errors ?
One detail : I have successfully compile colmap 3.9 dev manually with the argument -DCMAKE_CUDA_ARCHITECTURES=native with the source https://github.com/colmap/colmap[/code]
Top
lastrodamo
n00b
n00b
User avatar
Posts: 11
Joined: Thu Jan 26, 2023 12:56 pm
Contact:
Contact lastrodamo
Website

  • Quote

Post by lastrodamo » Mon Jan 01, 2024 9:07 am

I have add argument MYCMAKEARGS="-DCMAKE_CUDA_ARCHITECTURES=75" relative with my GPU card.
And the compilation done.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic