File tree 9 files changed +59
-98
lines changed
9 files changed +59
-98
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ include("${PROJECT_SOURCE_DIR}/cmake/functions.cmake")
29
29
google_initialize_cartographer_project()
30
30
google_enable_testing()
31
31
32
- find_package (Abseil REQUIRED)
32
+ find_package (absl REQUIRED)
33
33
set (BOOST_COMPONENTS iostreams)
34
34
if (WIN32 )
35
35
list (APPEND BOOST_COMPONENTS zlib)
@@ -268,7 +268,20 @@ target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC
268
268
${PROTOBUF_INCLUDE_DIR} )
269
269
# TODO(hrapp): This should not explicitly list pthread and use
270
270
# PROTOBUF_LIBRARIES, but that failed on first try.
271
- target_link_libraries (${PROJECT_NAME} PUBLIC ${PROTOBUF_LIBRARY} standalone_absl)
271
+ target_link_libraries (${PROJECT_NAME} PUBLIC ${PROTOBUF_LIBRARY}
272
+ absl::algorithm
273
+ absl::base
274
+ absl::debugging
275
+ absl::flat_hash_map
276
+ absl::memory
277
+ absl::meta
278
+ absl::numeric
279
+ absl::str_format
280
+ absl::strings
281
+ absl::synchronization
282
+ absl::time
283
+ absl::utility
284
+ )
272
285
if (NOT WIN32 )
273
286
target_link_libraries (${PROJECT_NAME} PUBLIC pthread)
274
287
endif ()
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ RUN apt-get update && apt-get install -y sudo apt-utils tzdata && rm -rf /var/li
28
28
29
29
COPY scripts/install_debs_cmake.sh cartographer/scripts/
30
30
RUN cartographer/scripts/install_debs_cmake.sh && rm -rf /var/lib/apt/lists/*
31
+ COPY scripts/install_abseil.sh cartographer/scripts/
32
+ RUN cartographer/scripts/install_abseil.sh && rm -rf /var/lib/apt/lists/*
31
33
COPY scripts/install_proto3.sh cartographer/scripts/
32
34
RUN cartographer/scripts/install_proto3.sh && rm -rf protobuf
33
35
COPY scripts/install_grpc.sh cartographer/scripts/
Original file line number Diff line number Diff line change @@ -28,5 +28,7 @@ RUN apt-get update && apt-get install -y sudo apt-utils tzdata && rm -rf /var/li
28
28
29
29
COPY scripts/install_debs_cmake.sh cartographer/scripts/
30
30
RUN cartographer/scripts/install_debs_cmake.sh && rm -rf /var/lib/apt/lists/*
31
+ COPY scripts/install_abseil.sh cartographer/scripts/
32
+ RUN cartographer/scripts/install_abseil.sh && rm -rf /var/lib/apt/lists/*
31
33
COPY . cartographer
32
34
RUN cartographer/scripts/install_cartographer_cmake.sh && rm -rf cartographer
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ RUN apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*
26
26
27
27
COPY scripts/install_debs_cmake.sh cartographer/scripts/
28
28
RUN cartographer/scripts/install_debs_cmake.sh && rm -rf /var/lib/apt/lists/*
29
+ COPY scripts/install_abseil.sh cartographer/scripts/
30
+ RUN cartographer/scripts/install_abseil.sh && rm -rf /var/lib/apt/lists/*
29
31
COPY scripts/install_ceres.sh cartographer/scripts/
30
32
RUN cartographer/scripts/install_ceres.sh && rm -rf ceres-solver
31
33
COPY scripts/install_proto3.sh cartographer/scripts/
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ RUN apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*
26
26
27
27
COPY scripts/install_debs_cmake.sh cartographer/scripts/
28
28
RUN cartographer/scripts/install_debs_cmake.sh && rm -rf /var/lib/apt/lists/*
29
+ COPY scripts/install_abseil.sh cartographer/scripts/
30
+ RUN cartographer/scripts/install_abseil.sh && rm -rf /var/lib/apt/lists/*
29
31
COPY scripts/install_ceres.sh cartographer/scripts/
30
32
RUN cartographer/scripts/install_ceres.sh && rm -rf ceres-solver
31
33
COPY scripts/install_proto3.sh cartographer/scripts/
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ RUN apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*
27
27
28
28
COPY scripts/install_debs_cmake.sh cartographer/scripts/
29
29
RUN cartographer/scripts/install_debs_cmake.sh && rm -rf /var/lib/apt/lists/*
30
+ COPY scripts/install_abseil.sh cartographer/scripts/
31
+ RUN cartographer/scripts/install_abseil.sh && rm -rf /var/lib/apt/lists/*
30
32
COPY scripts/install_ceres.sh cartographer/scripts/
31
33
RUN cartographer/scripts/install_ceres.sh && rm -rf ceres-solver
32
34
COPY scripts/install_proto3.sh cartographer/scripts/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # Copyright 2019 The Cartographer Authors
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ set -o errexit
18
+ set -o verbose
19
+
20
+ git clone https://github.com/abseil/abseil-cpp.git
21
+ cd abseil-cpp
22
+ git checkout d902eb869bcfacc1bad14933ed9af4bed006d481
23
+ mkdir build
24
+ cd build
25
+ cmake -G Ninja \
26
+ -DCMAKE_BUILD_TYPE=Release \
27
+ -DCMAKE_INSTALL_PREFIX=/usr/local/stow/absl \
28
+ ..
29
+ ninja
30
+ sudo ninja install
31
+ cd /usr/local/stow
32
+ sudo stow absl
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ sudo apt-get install -y \
45
45
libgoogle-glog-dev \
46
46
liblua5.2-dev \
47
47
libsuitesparse-dev \
48
- ninja-build
48
+ ninja-build \
49
+ stow
49
50
50
51
if [[ " $( lsb_release -sc) " = " focal" ]]
51
52
then
You can’t perform that action at this time.
0 commit comments