Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing dependencies on CI #540

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pybind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-13]
os: [ubuntu-22.04, macos-13]
fail-fast: false

steps:
Expand All @@ -33,7 +33,7 @@ jobs:
sudo apt install -y libunwind-dev

# Generic dependencies
sudo apt-get install cmake
sudo apt-get install cmake libeigen3-dev libfmt-dev

# Clean APT cache
sudo apt-get clean
Expand All @@ -42,7 +42,7 @@ jobs:
# Install system deps with Homebrew
brew install cmake
# VRS dependencies
brew install fmt lz4 zstd xxhash
brew install eigen fmt lz4 zstd xxhash
else
echo "$RUNNER_OS not supported"
exit 1
Expand Down
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ if(SOPHUS_MASTER_PROJECT)
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -Wno-deprecated-register -Qunused-arguments -fcolor-diagnostics"
"${CMAKE_CXX_FLAGS} -Wall -Wno-error -Wextra -Wno-deprecated-register -Qunused-arguments -fcolor-diagnostics"
)
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -std=c++14 -Wno-deprecated-declarations -ftemplate-backtrace-limit=0 -Wno-array-bounds"
"${CMAKE_CXX_FLAGS} -Wall -Wno-error -Wextra -std=c++14 -Wno-deprecated-declarations -ftemplate-backtrace-limit=0 -Wno-array-bounds"
)
endif()

Expand Down Expand Up @@ -111,6 +111,9 @@ endif()
# Build python sophus bindings
option(BUILD_PYTHON_BINDINGS "Build python sophus bindings." OFF)
if(BUILD_PYTHON_BINDINGS)
if(NOT TARGET fmt::fmt)
find_package(fmt REQUIRED)
endif()
include(FetchContent)
FetchContent_Declare(
pybind11
Expand All @@ -121,7 +124,7 @@ if(BUILD_PYTHON_BINDINGS)
add_subdirectory(${pybind11_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/pybind)
pybind11_add_module(sophus_pybind
${CMAKE_CURRENT_SOURCE_DIR}/sophus_pybind/bindings.cpp)
target_link_libraries(sophus_pybind PUBLIC sophus)
target_link_libraries(sophus_pybind PUBLIC sophus fmt::fmt)
endif(BUILD_PYTHON_BINDINGS)

if(SOPHUS_INSTALL)
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def build_extension(self, ext):

cmake_args = [
"-DBUILD_PYTHON_BINDINGS=ON",
"-DBUILD_SOPHUS_EXAMPLES=OFF",
"-DBUILD_SOPHUS_TESTS=OFF",
]
build_args = []
Expand Down
2 changes: 2 additions & 0 deletions sophus/average.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include <complex>

#include <Eigen/Eigenvalues>

#include "cartesian.hpp"
#include "common.hpp"
#include "rxso2.hpp"
Expand Down
Loading