#!/bin/bash
###########################
# Builds one specific MWM #
###########################
# Prerequisites:
#
# - The script should be placed in omim/tools/unix, or supply OMIM_PATH with path to omim repo
# - Data path with classificators etc. should be present in $OMIM_PATH/data
# Inside it should be at least: categories.txt, classificator.txt, types.txt, drules_proto.bin
# - Compiled generator_tool somewhere in omim/../build/out/whatever, or supply BUILD_PATH
# - For routing, compiled OSRM binaries in omim/../osrm-backend-release, or supply OSRM_BUILD_PATH
# - Target path for mwm is the same as o5m path, or supply TARGET
# - Set TMPDIR variable if you have no space in the default temporary location.
# Cross-borders routing index is not created, since we don't assume
# the source file to be one of the pre-defined countries.
mkdir -p build
cd buildcmake .. -DCMAKE_BUILD_TYPE=Release
-- Building on a 64 bit system
-- Configuring OSRM in release mode
-- LTO working
-- Using gcc specific binutils for LTO.
-- Setting linker optimizations
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- iostreams
-- program_options
-- regex
-- system
-- thread
-- chrono
-- atomic
-- Found Intel TBB
-- TBB interface version: 8006
-- Looking for Luabind...
-- Found Luabind: /usr/lib/libluabind.so
-- Found Luabind: /usr/lib/libluabind.so
-- Found Lua52: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so
-- Looking for LuaJIT 5.2
-- Could NOT find LUAJIT (missing: LUAJIT_LIBRARIES LUAJIT_INCLUDE_DIR)
-- Performing Test LUABIND_WORKS
-- Performing Test LUABIND_WORKS - Success
-- Luabind/Lua5.2 combination working with /usr/lib/x86_64-linux-gnu/liblua5.2.so
-- Looking for STXXL...
-- Found STXXL: /usr/lib/libstxxl.so
-- Found STXXL: /usr/lib/libstxxl.so
-- OpenMP support found. Linking just in case for stxxl
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- unit_test_framework
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/omim/osrm-backend/build
cmake --build .
Scanning dependencies of target EXTRACTOR
[ 1%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/graph_compressor.cpp.o
[ 3%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/edge_based_graph_factory.cpp.o
[ 4%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_map.cpp.o
[ 6%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_parser.cpp.o
[ 6%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/compressed_edge_container.cpp.o
[ 7%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/suffix_table.cpp.o
[ 9%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/raster_source.cpp.o
[ 11%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/scripting_environment.cpp.o
[ 12%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extractor.cpp.o
[ 12%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extractor_callbacks.cpp.o
[ 14%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extraction_containers.cpp.o
[ 15%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_classification.cpp.o
[ 17%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_analysis.cpp.o
[ 19%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection.cpp.o
[ 20%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_generator.cpp.o
[ 20%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/motorway_handler.cpp.o
[ 22%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_scenario_three_way.cpp.o
[ 23%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/roundabout_handler.cpp.o
[ 25%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/classification_data.cpp.o
[ 26%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_handler.cpp.o
[ 26%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_handler.cpp.o
[ 26%] Built target EXTRACTOR
Scanning dependencies of target FingerPrintConfigure
[ 28%] Configuring revision fingerprint
[ 28%] Built target FingerPrintConfigure
Scanning dependencies of target UTIL
[ 28%] Building CXX object CMakeFiles/UTIL.dir/src/util/fingerprint.cpp.o
[ 30%] Building CXX object CMakeFiles/UTIL.dir/src/util/hilbert_value.cpp.o
[ 31%] Building CXX object CMakeFiles/UTIL.dir/src/util/assert.cpp.o
[ 33%] Building CXX object CMakeFiles/UTIL.dir/src/util/name_table.cpp.o
[ 34%] Building CXX object CMakeFiles/UTIL.dir/src/util/coordinate.cpp.o
[ 36%] Building CXX object CMakeFiles/UTIL.dir/src/util/exception.cpp.o
[ 36%] Building CXX object CMakeFiles/UTIL.dir/src/util/coordinate_calculation.cpp.o
[ 38%] Building CXX object CMakeFiles/UTIL.dir/src/util/simple_logger.cpp.o
[ 39%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/entry_class.cpp.o
[ 41%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/bearing_class.cpp.o
[ 41%] Built target UTIL
Scanning dependencies of target osrm_extract
[ 42%] Linking CXX static library libosrm_extract.a
[ 42%] Built target osrm_extract
Scanning dependencies of target ENGINE
[ 44%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/polyline_compressor.cpp.o
[ 46%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/douglas_peucker.cpp.o
[ 47%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/engine_config.cpp.o
[ 49%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/search_engine_data.cpp.o
[ 49%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/hint.cpp.o
[ 50%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/engine.cpp.o
[ 52%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/post_processing.cpp.o
/opt/omim/osrm-backend/src/engine/guidance/post_processing.cpp: In function ‘std::vector osrm::engine::guidance::postProcess(std::vector)’:
/opt/omim/osrm-backend/src/engine/guidance/post_processing.cpp:545:17: warning: variable ‘last_valid_instruction’ set but not used [-Wunused-but-set-variable]
std::size_t last_valid_instruction = 0;
^
[ 53%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_steps.cpp.o
[ 55%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_overview.cpp.o
[ 57%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_route.cpp.o
[ 57%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/trip.cpp.o
[ 58%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/table.cpp.o
[ 60%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/tile.cpp.o
[ 61%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/nearest.cpp.o
[ 63%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/viaroute.cpp.o
[ 63%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/match.cpp.o
[ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/api/json_factory.cpp.o
[ 65%] Built target ENGINE
Scanning dependencies of target STORAGE
[ 66%] Building CXX object CMakeFiles/STORAGE.dir/src/storage/storage.cpp.o
[ 68%] Building CXX object CMakeFiles/STORAGE.dir/src/storage/storage_config.cpp.o
[ 68%] Built target STORAGE
Scanning dependencies of target osrm
[ 69%] Building CXX object CMakeFiles/osrm.dir/src/osrm/osrm.cpp.o
[ 69%] Linking CXX static library libosrm.a
[ 69%] Built target osrm
Scanning dependencies of target osrm_store
[ 69%] Linking CXX static library libosrm_store.a
[ 69%] Built target osrm_store
Scanning dependencies of target osrm-datastore
[ 71%] Building CXX object CMakeFiles/osrm-datastore.dir/src/tools/store.cpp.o
[ 73%] Linking CXX executable osrm-datastore
[ 73%] Built target osrm-datastore
Scanning dependencies of target CONTRACTOR
[ 73%] Building CXX object CMakeFiles/CONTRACTOR.dir/src/contractor/contractor.cpp.o
[ 73%] Built target CONTRACTOR
Scanning dependencies of target osrm-extract
[ 74%] Building CXX object CMakeFiles/osrm-extract.dir/src/tools/extract.cpp.o
[ 74%] Linking CXX executable osrm-extract
/usr/include/boost/function/function_template.hpp: In function ‘invoke’:
/usr/include/boost/spirit/home/qi/detail/alternative_function.hpp:107:13: warning: ‘MEM[(internal_type *)&val + 12B]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
val;
^
[ 74%] Built target osrm-extract
Scanning dependencies of target SERVER
[ 76%] Building CXX object CMakeFiles/SERVER.dir/src/server/request_parser.cpp.o
[ 77%] Building CXX object CMakeFiles/SERVER.dir/src/server/service_handler.cpp.o
[ 79%] Building CXX object CMakeFiles/SERVER.dir/src/server/connection.cpp.o
[ 80%] Building CXX object CMakeFiles/SERVER.dir/src/server/request_handler.cpp.o
[ 80%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/route_service.cpp.o
[ 82%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/table_service.cpp.o
[ 84%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/nearest_service.cpp.o
[ 85%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/match_service.cpp.o
[ 87%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/tile_service.cpp.o
[ 87%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/trip_service.cpp.o
[ 88%] Building CXX object CMakeFiles/SERVER.dir/src/server/http/reply.cpp.o
[ 90%] Building CXX object CMakeFiles/SERVER.dir/src/server/api/url_parser.cpp.o
[ 92%] Building CXX object CMakeFiles/SERVER.dir/src/server/api/parameters_parser.cpp.o
[ 92%] Built target SERVER
Scanning dependencies of target osrm_contract
[ 93%] Linking CXX static library libosrm_contract.a
[ 93%] Built target osrm_contract
Scanning dependencies of target osrm-contract
[ 95%] Building CXX object CMakeFiles/osrm-contract.dir/src/tools/contract.cpp.o
[ 96%] Linking CXX executable osrm-contract
[ 96%] Built target osrm-contract
Scanning dependencies of target osrm-routed
[ 98%] Building CXX object CMakeFiles/osrm-routed.dir/src/tools/routed.cpp.o
[100%] Linking CXX executable osrm-routed
[100%] Built target osrm-routed
Nenhum comentário:
Postar um comentário