You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Ninja构建eos项目时遇make无目标无Makefile报错求助

Fixing the "No targets specified and no makefile found" Error When Building EOS

Hey there, let's break down what's causing your issue and how to fix it quickly:

The Root Cause

You used cmake -G "Ninja" to generate build files, which creates Ninja build scripts instead of traditional Makefiles. When you ran make, it couldn't find a Makefile to execute—hence the error. Also, this project uses CMake for configuration, so there's no ./configure script (that's why you got the "No such file or directory" message).

Solution 1: Use Ninja (since you already generated Ninja build files)

In your build directory, replace the make && make install command with:

ninja && ninja install

This will use the Ninja build system you configured earlier to compile and install the project.

Solution 2: Switch back to Makefiles

If you prefer using make instead, clean your current build directory first, then re-run CMake without the Ninja generator:

cd ../build
rm -rf *
cmake ../eos -DCMAKE_INSTALL_PREFIX=../install/
make && make install

This will generate standard Makefiles that the make command can recognize.

Quick Note

You don't need to run ./configure for this project—CMake handles all the configuration steps when you run the cmake command.

内容的提问来源于stack exchange,提问作者Francesco

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 10:08:53