lastrodamo n00b
Joined: 26 Jan 2023 Posts: 8
|
Posted: Sun Dec 31, 2023 2:14 pm Post subject: Success manual compilation of colmap not with custom ebuild |
|
|
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: | # 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: | -- 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] |
|