ubuntu-18.04 - 如何在 Ubuntu 18.04 上编译 pmars-0.9.2?错误:Makefile:116:目标“全部”的配方失败
问题描述
我正在尝试编译 pmars-0.9.2 游戏,但在通过测试时偶然发现了一个错误,在命令之后make -j4
:
make[2]: *** [extractor/CMakeFiles/extractor.dir/backoff_sampler.cc.o] Error 1
CMakeFiles/Makefile2:2561: recipe for target 'extractor/CMakeFiles/extractor.dir/all' failed
make[1]: *** [extractor/CMakeFiles/extractor.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
您能告诉我缺少哪些安装驱动程序才能成功完成编译吗?
解决方案
要从解压缩的归档使用命令查看日志:
nano /home/user/Desktop/pmars-0.9.2/cdec/BUILDING
要构建 cdec,您需要:
- boost headers & boost program_options (你可能需要安装像 libboost-dev 这样的包)
搭建说明
1)创建构建目录并使用CMake生成Makefiles
mkdir my_build
cd my_build
cmake ..
If the cmake command completes successfully, you can proceed. If you have
libraries (such as Boost) installed in nonstandard locations, you may need
to run cmake with special options like -DBOOST_ROOT=/path/to/boost.
2) 构建
make -j 2
3) 测试 make test ./tests/run-system-tests.pl
推荐阅读
- java - 无法打开应用程序模块 -> 调用 javac 时出错。需要完整的 JDK(不仅仅是 JRE)
- etl - 从转换中提取行为
- c++ - Consexpr 和 SSE 内在函数
- node.js - 有没有办法忽略 eslint-plugin-security 的测试文件?
- .net - Active Directory Powershell 脚本仅在 Excel 中打开源 csv 后才有效
- javascript - 在 Chart.js 中制作直方图
- events - 事件应该维护历史还是有它的用例?
- swift - 在 Swift 中使用具有约束关联类型的协议作为属性
- jquery - IIS 8.5 和 asmx Webservice - 403 禁止错误
- java - 具有通用值并作为属性的 HashMap