【问题标题】:Building C++ Allegro 5 fails on Linux Mint QT在 Linux Mint QT 上构建 C++ Allegro 5 失败
【发布时间】:2018-09-02 11:38:02
【问题描述】:

我正在从 Git 安装和构建 Allegro 5(尝试正常安装,但以同样的方式失败)。 我不知道下一步该怎么做才能编译。

[ 20%] Building C object addons/native_dialog/CMakeFiles/allegro_dialog.dir/gtk_xgtk.c.o
[ 20%] Linking C shared library ../../lib/liballegro_dialog.so
[ 20%] Built target allegro_dialog
Scanning dependencies of target allegro_main
[ 20%] Building C object addons/main/CMakeFiles/allegro_main.dir/generic_main.c.o
[ 20%] Linking C shared library ../../lib/liballegro_main.so
[ 20%] Built target allegro_main
Scanning dependencies of target copy_demo_data
[ 20%] Generating data/gfx/medium_asteroid.png
CMake Error: cmake version 3.5.1
Usage: /usr/bin/cmake -E <command> [arguments...]

demos/cosmic_protector/CMakeFiles/copy_demo_data.dir/build.make:97: recipe for target 'demos/cosmic_protector/data/gfx/medium_asteroid.png' failed
make[2]: *** [demos/cosmic_protector/data/gfx/medium_asteroid.png] Error 1
CMakeFiles/Makefile2:844: recipe for target 'demos/cosmic_protector/CMakeFiles/copy_demo_data.dir/all' failed
make[1]: *** [demos/cosmic_protector/CMakeFiles/copy_demo_data.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

` 完成;详细说明 1:

make[2]: Entering directory '/media/oneterebyte/Documents/ALL DOUGLAS'/Eclipse C Projects/allegro5/build'
[ 20%] Generating data/gfx/medium_asteroid.png
cd "/media/oneterebyte/Documents/ALL DOUGLAS'/Eclipse C Projects/allegro5/build/demos/cosmic_protector" && /usr/bin/cmake -E copy /media/oneterebyte/Documents/ALL\ DOUGLAS'/Eclipse\ C\ Projects/allegro5/demos/cosmic_protector/data/gfx/medium_asteroid.png /media/oneterebyte/Documents/ALL\ DOUGLAS'/Eclipse\ C\ Projects/allegro5/build/demos/cosmic_protector/data/gfx/medium_asteroid.png
CMake Error: cmake version 3.5.1
Usage: /usr/bin/cmake -E <command> [arguments...]
Available commands: 


demos/cosmic_protector/CMakeFiles/copy_demo_data.dir/build.make:97: recipe for target 'demos/cosmic_protector/data/gfx/medium_asteroid.png' failed
make[2]: *** [demos/cosmic_protector/data/gfx/medium_asteroid.png] Error 1
make[2]: Leaving directory '/media/oneterebyte/Documents/ALL DOUGLAS'/Eclipse C Projects/allegro5/build'
CMakeFiles/Makefile2:844: recipe for target 'demos/cosmic_protector/CMakeFiles/copy_demo_data.dir/all' failed
make[1]: *** [demos/cosmic_protector/CMakeFiles/copy_demo_data.dir/all] Error 2
make[1]: Leaving directory '/media/oneterebyte/Documents/ALL DOUGLAS'/Eclipse C Projects/allegro5/build'
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

【问题讨论】:

  • 你运行了哪些命令来构建它?你可以试试`make VERBOSE=1 吗? (stackoverflow.com/a/4808324/1435461)
  • 我正在关注这个网页:wiki.allegro.cc/index.php?title=Install_Allegro5_From_Git/Linux/… 输入 make 后出现此错误。
  • 不幸的是我不确定。如果您只对安装 allegro 而不是演示感兴趣,可以使用 WANT_DEMO=0 禁用它们
  • WANT DEMO=0 是 make 的命令吗?这是行不通的; make: *** 没有规则使目标“想要”。停止。
  • 这是一个cmake命令,例如cmake -DWANT_DEMO=off。注意_,它是WANT_DEMO,而不是WANT DEMO

标签: c++ linux build allegro5


【解决方案1】:

我走了很长一段路,删除了 Mint KDE(因为他们不会更新它,而且它真的已经过时了)并安装了 Manjaro KDE Linux。它附带了我需要的所有编程工具,而且非常最新!

谢谢大家!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-05-06
    • 1970-01-01
    • 2012-12-19
    • 2014-12-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多