Cmake Compile Error for Eigen including Sophus
- Dominant language
- C++
- Stars
- 11
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to install this package on Arch Linux Kernel Version 6.14.9 to run monado, but in the middle of the build process using the command given on the github page, there is a Cmake compatibility issue that halts the installation process. Unfortunately I'm not very linux savvy, so I'm very wary of trying to modify any of the files that are cloned. Here is the error in it's entirety.
Every test and compilation before this point does not throw an error, or halt cloning/building.
Adding that my CMake version is version 4.0.2-dirty.
```
-- Looking for hwloc_bitmap_free in hwloc
-- Looking for hwloc_bitmap_free in hwloc - found
-- A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend.
--
-- Configured Eigen 3.4.0
--
-- Available targets (use: cmake --build . --target TARGET):
-- ---------+--------------------------------------------------------------
-- Target | Description
-- ---------+--------------------------------------------------------------
-- install | Install Eigen. Headers will be installed to:
-- | /
-- | Using the following values:
-- | CMAKE_INSTALL_PREFIX: /usr/local
-- | INCLUDE_INSTALL_DIR: include/eigen3
-- | Change the install location of Eigen headers using:
-- | cmake . -DCMAKE_INSTALL_PREFIX=yourprefix
-- | Or:
-- | cmake . -DINCLUDE_INSTALL_DIR=yourdir
-- doc | Generate the API documentation, requires Doxygen & LaTeX
-- blas | Build BLAS library (not the same thing as Eigen)
-- uninstall| Remove files installed by the install target
-- ---------+--------------------------------------------------------------
--
-- Using Eigen3 from: /home/pika/basalt/thirdparty/basalt-headers/thirdparty/eigen (include: $;$)
-- Including internal Sophus from submodule
CMake Error at thirdparty/basalt-headers/thirdparty/Sophus/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
ninja: error: loading 'build.ninja': No such file or directory
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with thirdparty/basalt-headers/thirdparty/Sophus/CMakeLists.txt, where CMake 4.0.2 stops at the minimum-version declaration. Review the repository's build instructions and CMake configuration, then rerun the reported build command to confirm configuration completes and build.ninja is generated without the compatibility error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100