如何在Ubuntu 18.04上编译pmars-0.9.2? 错误。Makefile:116: 目标'all'的配方失败了

问题描述 投票:0回答:1

我想编译一个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

能否告诉我缺少哪些安装驱动才能成功完成编译?

ubuntu-18.04
1个回答
0
投票

要查看解压归档后的日志,请使用命令。

nano /home/user/Desktop/pmars-0.9.2/cdec/BUILDING


要建立cdec,你需要:

  • boost headers & boost program_options (你可能需要安装一个类似libboost-dev的包)

建造说明

1) 创建一个编译目录,并使用CMake生成Makefile。

    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)测试使测试.testrun-system-tests.pl。


© www.soinside.com 2019 - 2024. All rights reserved.