parent
028391357d
commit
e29fc9787a
|
@ -30,7 +30,7 @@ find_package(Boost REQUIRED COMPONENTS iostreams)
|
||||||
find_package(Ceres REQUIRED COMPONENTS SparseLinearAlgebraLibrary)
|
find_package(Ceres REQUIRED COMPONENTS SparseLinearAlgebraLibrary)
|
||||||
find_package(Eigen3 REQUIRED)
|
find_package(Eigen3 REQUIRED)
|
||||||
find_package(LuaGoogle REQUIRED)
|
find_package(LuaGoogle REQUIRED)
|
||||||
find_package(Protobuf REQUIRED)
|
find_package(Protobuf REQUIRED 3.0.0)
|
||||||
|
|
||||||
include(FindPkgConfig)
|
include(FindPkgConfig)
|
||||||
PKG_SEARCH_MODULE(CAIRO REQUIRED cairo>=1.12.16)
|
PKG_SEARCH_MODULE(CAIRO REQUIRED cairo>=1.12.16)
|
||||||
|
|
|
@ -21,5 +21,7 @@ COPY scripts/install_debs.sh cartographer/scripts/
|
||||||
RUN cartographer/scripts/install_debs.sh && rm -rf /var/lib/apt/lists/*
|
RUN cartographer/scripts/install_debs.sh && rm -rf /var/lib/apt/lists/*
|
||||||
COPY scripts/install_ceres.sh cartographer/scripts/
|
COPY scripts/install_ceres.sh cartographer/scripts/
|
||||||
RUN cartographer/scripts/install_ceres.sh && rm -rf ceres-solver
|
RUN cartographer/scripts/install_ceres.sh && rm -rf ceres-solver
|
||||||
|
COPY scripts/install_proto3.sh cartographer/scripts/
|
||||||
|
RUN cartographer/scripts/install_proto3.sh && rm -rf protobuf
|
||||||
COPY . cartographer
|
COPY . cartographer
|
||||||
RUN cartographer/scripts/install_cartographer.sh && rm -rf cartographer
|
RUN cartographer/scripts/install_cartographer.sh && rm -rf cartographer
|
||||||
|
|
|
@ -21,5 +21,7 @@ COPY scripts/install_debs.sh cartographer/scripts/
|
||||||
RUN cartographer/scripts/install_debs.sh && rm -rf /var/lib/apt/lists/*
|
RUN cartographer/scripts/install_debs.sh && rm -rf /var/lib/apt/lists/*
|
||||||
COPY scripts/install_ceres.sh cartographer/scripts/
|
COPY scripts/install_ceres.sh cartographer/scripts/
|
||||||
RUN cartographer/scripts/install_ceres.sh && rm -rf ceres-solver
|
RUN cartographer/scripts/install_ceres.sh && rm -rf ceres-solver
|
||||||
|
COPY scripts/install_proto3.sh cartographer/scripts/
|
||||||
|
RUN cartographer/scripts/install_proto3.sh && rm -rf protobuf
|
||||||
COPY . cartographer
|
COPY . cartographer
|
||||||
RUN cartographer/scripts/install_cartographer.sh && rm -rf cartographer
|
RUN cartographer/scripts/install_cartographer.sh && rm -rf cartographer
|
||||||
|
|
|
@ -17,5 +17,7 @@ COPY scripts/install_debs.sh cartographer/scripts/
|
||||||
RUN cartographer/scripts/install_debs.sh && rm -rf /var/lib/apt/lists/*
|
RUN cartographer/scripts/install_debs.sh && rm -rf /var/lib/apt/lists/*
|
||||||
COPY scripts/install_ceres.sh cartographer/scripts/
|
COPY scripts/install_ceres.sh cartographer/scripts/
|
||||||
RUN cartographer/scripts/install_ceres.sh && rm -rf ceres-solver
|
RUN cartographer/scripts/install_ceres.sh && rm -rf ceres-solver
|
||||||
|
COPY scripts/install_proto3.sh cartographer/scripts/
|
||||||
|
RUN cartographer/scripts/install_proto3.sh && rm -rf protobuf
|
||||||
COPY . cartographer
|
COPY . cartographer
|
||||||
RUN cartographer/scripts/install_cartographer.sh && rm -rf cartographer
|
RUN cartographer/scripts/install_cartographer.sh && rm -rf cartographer
|
||||||
|
|
|
@ -21,5 +21,7 @@ COPY scripts/install_debs.sh cartographer/scripts/
|
||||||
RUN cartographer/scripts/install_debs.sh && rm -rf /var/lib/apt/lists/*
|
RUN cartographer/scripts/install_debs.sh && rm -rf /var/lib/apt/lists/*
|
||||||
COPY scripts/install_ceres.sh cartographer/scripts/
|
COPY scripts/install_ceres.sh cartographer/scripts/
|
||||||
RUN cartographer/scripts/install_ceres.sh && rm -rf ceres-solver
|
RUN cartographer/scripts/install_ceres.sh && rm -rf ceres-solver
|
||||||
|
COPY scripts/install_proto3.sh cartographer/scripts/
|
||||||
|
RUN cartographer/scripts/install_proto3.sh && rm -rf protobuf
|
||||||
COPY . cartographer
|
COPY . cartographer
|
||||||
RUN cartographer/scripts/install_cartographer.sh && rm -rf cartographer
|
RUN cartographer/scripts/install_cartographer.sh && rm -rf cartographer
|
||||||
|
|
|
@ -66,17 +66,18 @@ On Ubuntu 14.04 (Trusty):
|
||||||
|
|
||||||
.. literalinclude:: ../../scripts/install_debs.sh
|
.. literalinclude:: ../../scripts/install_debs.sh
|
||||||
:language: bash
|
:language: bash
|
||||||
:linenos:
|
|
||||||
:lines: 20-
|
:lines: 20-
|
||||||
|
|
||||||
.. literalinclude:: ../../scripts/install_ceres.sh
|
.. literalinclude:: ../../scripts/install_ceres.sh
|
||||||
:language: bash
|
:language: bash
|
||||||
:linenos:
|
:lines: 20-
|
||||||
|
|
||||||
|
.. literalinclude:: ../../scripts/install_proto3.sh
|
||||||
|
:language: bash
|
||||||
:lines: 20-
|
:lines: 20-
|
||||||
|
|
||||||
.. literalinclude:: ../../scripts/install_cartographer.sh
|
.. literalinclude:: ../../scripts/install_cartographer.sh
|
||||||
:language: bash
|
:language: bash
|
||||||
:linenos:
|
|
||||||
:lines: 20-
|
:lines: 20-
|
||||||
|
|
||||||
.. _system-requirements:
|
.. _system-requirements:
|
||||||
|
|
|
@ -30,8 +30,6 @@ sudo apt-get install -y \
|
||||||
libgflags-dev \
|
libgflags-dev \
|
||||||
libgoogle-glog-dev \
|
libgoogle-glog-dev \
|
||||||
liblua5.2-dev \
|
liblua5.2-dev \
|
||||||
libprotobuf-dev \
|
|
||||||
libsuitesparse-dev \
|
libsuitesparse-dev \
|
||||||
ninja-build \
|
ninja-build \
|
||||||
protobuf-compiler \
|
|
||||||
python-sphinx
|
python-sphinx
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Copyright 2016 The Cartographer Authors
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o verbose
|
||||||
|
|
||||||
|
# Build and install proto3.
|
||||||
|
git clone https://github.com/google/protobuf.git
|
||||||
|
cd protobuf
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake -G Ninja \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-Dprotobuf_BUILD_TESTS=OFF \
|
||||||
|
../cmake
|
||||||
|
ninja
|
||||||
|
sudo ninja install
|
Loading…
Reference in New Issue