Closed adryan1994 closed 5 months ago
System information (version)
Multiple errors occurring during installation process because of C++14 compiler standard instead of C++17 in CMakeLists.txt file:
/usr/local/include/ceres/product_manifold.h:274:36: note: ‘std::void_t’ is only available from C++17 onwards
Solution:
set(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -std=c++17-Wno-deprecated-declarations -ftemplate-backtrace-limit=0")
Steps to Reproduce
git clone https://github.com/strasdat/Sophus.git
cd Sophus && mkdir build && cd build
cmake ..
make
Expected behavior Successful installation
Sophus version: commit hash
61f9a98
Hi, I am facing the same issue and managed to compile the project with your suggestion. I think it would be great if you can open an PR for this issue.
System information (version)
Multiple errors occurring during installation process because of C++14 compiler standard instead of C++17 in CMakeLists.txt file:
Solution:
set(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -std=c++17-Wno-deprecated-declarations -ftemplate-backtrace-limit=0")
Steps to Reproduce
git clone https://github.com/strasdat/Sophus.git
cd Sophus && mkdir build && cd build
cmake ..
make
Expected behavior Successful installation
Sophus version: commit hash
61f9a98