修复了安装 OSRM 时使用"make"命令时的构建问题
Fix the build issue when using 'make' command when installing OSRM
我正在本地在运行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
预先感谢
在删除每个相关文件和文件夹后,以相同方式重新安装所有内容。
相关文章:
- VS Code "command":"make"与终端窗口中的命令行"make"不同
- make 命令如何避免重新编译未更改的源文件?
- make 命令创建 .file,但不创建应用程序文件
- 有没有办法为 c++ 制作一个 makefile,每次使用 make 命令时都会运行该程序?
- "无法确定要运行哪个"make"命令.检查构建配置中的"make"步骤
- 修复了安装 OSRM 时使用"make"命令时的构建问题
- 仅禁止显示实际的 make 命令和最终打印语句
- 如何在 kali Linux 的 make 命令中启用 c++11
- 使用 make 命令编译类文件
- make 命令给出不兼容的 i386 架构(i386x86-64)
- 是否可以使用C++中的一个make命令,用两个不同的gcc版本编译两个不同可执行文件
- 在 C++ 中使用 -s for make 命令时不会显示哪些消息?
- 基于使用 make 命令或生成文件运行预处理器
- MacOSx-使用make命令编译C项目
- 使用 MinGW 和 sip 安装 pyqt5。"make"命令在哪里?
- CMake:如何使用make命令创建文件
- 有没有办法在make命令中找到未使用的定义和结构
- 如何使用特定的gcc编译器来运行make命令
- 在ubuntu中使用make命令重新编译时出现问题
- 无法找到Make:命令