【问题标题】:Fix the build issue when using 'make' command when installing OSRM修复安装 OSRM 时使用“make”命令时的构建问题
【发布时间】:2019-05-21 18:57:12
【问题描述】:

我正在运行 Ubuntu 18.04 的 EC2 实例上本地设置 OSRM 服务器。

我已按照以下步骤安装 OSRM:-

sudo apt update
sudo apt install -y git \
                    cmake \
                    build-essential \
                    jq \
                    liblua5.2-dev \
                    libboost-all-dev \
                    libprotobuf-dev \
                    libtbb-dev \
                    libstxxl-dev \
                    libbz2-dev

git clone https://github.com/Project-OSRM/osrm-backend.git

cd osrm-backend/
mkdir build
cd build/
cmake ..

make  /* fails here */

按给定顺序执行此操作时,出现此错误

[  8%] Built target UTIL
[ 10%] Built target MICROTAR
[ 12%] Linking CXX executable osrm-components
CMakeFiles/osrm-components.dir/src/tools/components.cpp.o:components.cpp:function main: error: undefined reference to 'boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
collect2: error: ld returned 1 exit status
CMakeFiles/osrm-components.dir/build.make:132: recipe for target 'osrm-components' failed
make[2]: *** [osrm-components] Error 1
CMakeFiles/Makefile2:100: recipe for target 'CMakeFiles/osrm-components.dir/all' failed
make[1]: *** [CMakeFiles/osrm-components.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

提前致谢

【问题讨论】:

  • 看起来您的libboost-filesystem-dev 版本不兼容。它要么太新要么太旧。
  • 我如何检查我应该为这个版本的 OSRM 使用哪个版本?
  • 我不熟悉安装/运行 OSRM。检查文档或询问开发人员。看起来你已经这样做了:github.com/Project-OSRM/osrm-backend/issues/5447

标签: c++ openstreetmap osrm


【解决方案1】:

删除所有对我有用的相关文件和文件夹后,以相同的方式重新安装所有内容。

【讨论】:

    猜你喜欢
    • 2015-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-04
    • 1970-01-01
    • 2018-06-17
    • 1970-01-01
    • 2023-01-21
    相关资源
    最近更新 更多