Skip to content

Commit

Permalink
try building ceres-solver v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael McCrackan committed Oct 29, 2024
1 parent 058bad8 commit 7d530ef
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,24 @@ RUN apt update && apt install -y \
libgtest-dev \
libabsl-dev \
libeigen3-dev \
libceres-dev=2.2.0+dfsg-4.1ubuntu2

# Set the working directory
WORKDIR /app_lib/so3g

# Fetch and install ceres-solver
RUN git clone --depth 1 --branch 2.2.0 --recurse-submodules https://github.com/ceres-solver/ceres-solver

WORKDIR /app_lib/so3g/ceres-solver

RUN mkdir build \
&& cd build \
&& cmake .. \
&& make -j$(nproc) \
&& make install

# Set the working directory back to so3g
WORKDIR /app_lib/so3g

# Copy the current directory contents into the container
ADD . /app_lib/so3g

Expand Down

0 comments on commit 7d530ef

Please sign in to comment.