<div dir="ltr">-DBUILD_TOOLS does not need gdal from what I can see:<br><div><br><a href="https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L350-L365">https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L350-L365</a><br><br></div><div>It's only the -DBUILD_COMPONENTS flag that enables the tool for small components that needs gdal:<br></div><div><br><a href="https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L337-L348">https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L337-L348</a><br><br></div><div>That is, this is the error you are seeing:<br><br><a href="https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L346">https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L346</a><br><br></div><div>Please make sure you're actually building the latest v5 release.<br><br>In addition, the warnings at the bottom come from using gcc 4.8 which has some issues (amongst other issues, its link time optimization is broken).<br>For production use you may want to update your compiler.<br><br></div><div>Cheers,<br></div><div>Daniel J H<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 24, 2016 at 12:32 AM, James Grant <span dir="ltr"><<a href="mailto:james@grantzone.net" target="_blank">james@grantzone.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <font face="Helvetica, Arial, sans-serif">Hi there.<br>
      <br>
      I'm currently building the latest version of OSRM and when going
      through the build commands, I'm noticing the following errors:<br>
      <br>
      <font color="#3333ff">root@Dell-Poweredge-860:/osrm5/osrm-backend/build#
        cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TOOLS=1</font><br>
      -- The C compiler identification is GNU 4.8.4<br>
      -- The CXX compiler identification is GNU 4.8.4<br>
      -- Check for working C compiler: /usr/bin/cc<br>
      -- Check for working C compiler: /usr/bin/cc -- works<br>
      -- Detecting C compiler ABI info<br>
      -- Detecting C compiler ABI info - done<br>
      -- Check for working CXX compiler: /usr/bin/c++<br>
      -- Check for working CXX compiler: /usr/bin/c++ -- works<br>
      -- Detecting CXX compiler ABI info<br>
      -- Detecting CXX compiler ABI info - done<br>
      -- Building on a 64 bit system<br>
      -- Configuring OSRM in release mode<br>
      -- Performing Test LTO_AVAILABLE<br>
      -- Performing Test LTO_AVAILABLE - Success<br>
      -- Performing Test LTO_WORKS<br>
      -- Performing Test LTO_WORKS - Success<br>
      -- LTO working<br>
      -- Disabling LTO on GCC < 4.9.0 since it is broken, see:
      <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57038" target="_blank">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57038</a><br>
      -- Performing Test HAS_COLOR_FLAG<br>
      -- Performing Test HAS_COLOR_FLAG - Failed<br>
      -- Setting linker optimizations<br>
      -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version
      "1.2.8") <br>
      -- Looking for include file pthread.h<br>
      -- Looking for include file pthread.h - found<br>
      -- Looking for pthread_create<br>
      -- Looking for pthread_create - not found<br>
      -- Looking for pthread_create in pthreads<br>
      -- Looking for pthread_create in pthreads - not found<br>
      -- Looking for pthread_create in pthread<br>
      -- Looking for pthread_create in pthread - found<br>
      -- Found Threads: TRUE  <br>
      -- Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found
      version "2.1.0") <br>
      -- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version
      "1.0.6") <br>
      -- Looking for BZ2_bzCompressInit in
      /usr/lib/x86_64-linux-gnu/libbz2.so<br>
      -- Looking for BZ2_bzCompressInit in
      /usr/lib/x86_64-linux-gnu/libbz2.so - found<br>
      -- Found Osmium:
      /osrm5/osrm-backend/third_party/libosmium/include  <br>
      -- Boost version: 1.54.0<br>
      -- Found the following Boost libraries:<br>
      --   date_time<br>
      --   filesystem<br>
      --   iostreams<br>
      --   program_options<br>
      --   regex<br>
      --   system<br>
      --   thread<br>
      -- Found Intel TBB<br>
      -- Looking for Luabind...<br>
      -- Found Luabind: /usr/lib/libluabind.so  <br>
      -- Found Luabind: /usr/lib/libluabind.so<br>
      -- Found Lua52:
      /usr/lib/x86_64-linux-gnu/<a href="http://liblua5.2.so" target="_blank">liblua5.2.so</a>;/usr/lib/x86_64-linux-gnu/libm.so 
      <br>
      -- Looking for LuaJIT 5.2<br>
      -- Could NOT find LUAJIT (missing:  LUAJIT_LIBRARIES) <br>
      -- Performing Test LUABIND_WORKS<br>
      -- Performing Test LUABIND_WORKS - Success<br>
      -- Luabind/Lua5.2 combination working with
      /usr/lib/x86_64-linux-gnu/<a href="http://liblua5.2.so" target="_blank">liblua5.2.so</a><br>
      -- Looking for STXXL...<br>
      -- Found STXXL: /usr/lib/libstxxl.so  <br>
      -- Found STXXL: /usr/lib/libstxxl.so<br>
      -- Try OpenMP C flag = [-fopenmp]<br>
      -- Performing Test OpenMP_FLAG_DETECTED<br>
      -- Performing Test OpenMP_FLAG_DETECTED - Success<br>
      -- Try OpenMP CXX flag = [-fopenmp]<br>
      -- Performing Test OpenMP_FLAG_DETECTED<br>
      -- Performing Test OpenMP_FLAG_DETECTED - Success<br>
      -- OpenMP support found. Linking just in case for stxxl<br>
      <font color="#ff0000">-- Could NOT find GDAL (missing: 
        GDAL_LIBRARY GDAL_INCLUDE_DIR) <br>
        CMake Warning at CMakeLists.txt:346 (message):<br>
          libgdal and/or development headers not found</font><br>
      <br>
      <br>
      -- Activating OSRM internal tools<br>
      -- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) <br>
      -- Boost version: 1.54.0<br>
      -- Found the following Boost libraries:<br>
      --   unit_test_framework<br>
      -- Configuring done<br>
      -- Generating done<br>
      -- Build files have been written to: /osrm5/osrm-backend/build<br>
      <br>
      When I run the next command it gives the errors again shown below,
      but this is simply a snippet of several that I get:<br>
      <br>
      <font color="#3333ff">root@Dell-Poweredge-860:/osrm5/osrm-backend/build#
        cmake --build .</font><br>
      Scanning dependencies of target CONTRACTOR<br>
      [  0%] Building CXX object
      CMakeFiles/CONTRACTOR.dir/src/contractor/contractor.cpp.o<br>
      [  0%] Built target CONTRACTOR<br>
      Scanning dependencies of target ENGINE<br>
      [  1%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/engine_config.cpp.o<br>
      [  3%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/hint.cpp.o<br>
      [  4%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/douglas_peucker.cpp.o<br>
      [  6%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/engine.cpp.o<br>
      <font color="#ff0000">In file included from
        /osrm5/osrm-backend/src/engine/engine.cpp:3:0:<br>
        /osrm5/osrm-backend/include/engine/api/route_parameters.hpp: In
        instantiation of
        â€˜osrm::engine::api::RouteParameters::RouteParameters(bool,
        bool, osrm::engine::api::RouteParameters::GeometriesType,
        osrm::engine::api::RouteParameters::OverviewType,
        boost::optional<bool>, Args ...) [with Args = {}]’:<br>
        /osrm5/osrm-backend/include/engine/api/match_parameters.hpp:58:29:  
        required from here<br>
        /osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
        warning: missing initializer for member
        â€˜osrm::engine::api::BaseParameters::coordinates’
        [-Wmissing-field-initializers]<br>
                   geometries{geometries_}, overview{overview_},
        continue_straight{continue_straight_}<br>
                                                                                                    
        ^<br>
        /osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
        warning: missing initializer for member
        â€˜osrm::engine::api::BaseParameters::hints’
        [-Wmissing-field-initializers]<br>
        /osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
        warning: missing initializer for member
        â€˜osrm::engine::api::BaseParameters::radiuses’
        [-Wmissing-field-initializers]<br>
        /osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
        warning: missing initializer for member
        â€˜osrm::engine::api::BaseParameters::bearings’
        [-Wmissing-field-initializers]</font><br>
      [  7%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/search_engine_data.cpp.o<br>
      [  9%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/polyline_compressor.cpp.o<br>
      [ 10%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/api/json_factory.cpp.o<br>
      [ 12%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_overview.cpp.o<br>
      [ 13%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/guidance/post_processing.cpp.o<br>
      [ 15%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_steps.cpp.o<br>
      [ 16%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_route.cpp.o<br>
      [ 18%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/plugins/trip.cpp.o<br>
      [ 19%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/plugins/tile.cpp.o<br>
      [ 21%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/plugins/match.cpp.o<br>
      <font color="#ff0000">In file included from
        /osrm5/osrm-backend/include/engine/api/match_parameters.hpp:31:0,<br>
                         from
        /osrm5/osrm-backend/include/engine/plugins/match.hpp:5,<br>
                         from
        /osrm5/osrm-backend/src/engine/plugins/match.cpp:2:<br>
        /osrm5/osrm-backend/include/engine/api/route_parameters.hpp: In
        instantiation of
        â€˜osrm::engine::api::RouteParameters::RouteParameters(bool,
        bool, osrm::engine::api::RouteParameters::GeometriesType,
        osrm::engine::api::RouteParameters::OverviewType,
        boost::optional<bool>, Args ...) [with Args = {}]’:<br>
        /osrm5/osrm-backend/include/engine/api/match_parameters.hpp:58:29:  
        required from here<br>
        /osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
        warning: missing initializer for member
        â€˜osrm::engine::api::BaseParameters::coordinates’
        [-Wmissing-field-initializers]<br>
                   geometries{geometries_}, overview{overview_},
        continue_straight{continue_straight_}<br>
                                                                                                    
        ^<br>
        /osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
        warning: missing initializer for member
        â€˜osrm::engine::api::BaseParameters::hints’
        [-Wmissing-field-initializers]<br>
        /osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
        warning: missing initializer for member
        â€˜osrm::engine::api::BaseParameters::radiuses’
        [-Wmissing-field-initializers]<br>
        /osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
        warning: missing initializer for member
        â€˜osrm::engine::api::BaseParameters::bearings’
        [-Wmissing-field-initializers]</font><br>
      [ 22%] Building CXX object
      CMakeFiles/ENGINE.dir/src/engine/plugins/viaroute.cpp.o<br>
      <br>
      I am trying to compile this on Ubuntu 14.04, anyone have any
      ideas? I haven't taken it further than this so far as I didn't
      think it would work with the errors shown.<br>
      <br>
      Regards<span class="HOEnZb"><font color="#888888"><br>
      James.<br>
    </font></span></font>
  </div>

<br>_______________________________________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
<br></blockquote></div><br></div>