简体   繁体   中英

make: *** No targets specified and no makefile found. Stop. [ubuntu]

I'm trying to build this https://github.com/patrikhuber/eos but I'm having troubles.

The instructions are pretty simple, as it says on gitHub

To build:

git clone --recursive https://github.com/patrikhuber/eos.git
mkdir build && cd build # creates a build directory next to the 'eos' folder
cmake -G "<your favourite generator>" ../eos -DCMAKE_INSTALL_PREFIX=../install/
make && make install # or open the project file and build in an IDE like Visual Studio

I'm using "Ninja" as generator and it looks like the cmake part goes through successfully as I get

-- Configuring done

-- Generating done

-- Build files have been written to: /home/francesco/eos/build

That's where things stop "working" for me, or where I fail to understand what's next. Following the instructions, I type

make && make install

and I get this message

make: *** No targets specified and no makefile found.  Stop.

I looked around for solutions but I don't really understand what I am supposed to do: I tried./configure

but I'm getting

bash: ./configure: No such file or directory

Anyone can please help?

Thanks

It always depends on your CMake "Generator". The 'make' is linux/mingw tool/command. For VisualStudio you can use nmake or sln/proj generated stuff.

More reliable could be utilize CMake for building ie for "NMake Makefiles" generator:

cmake --build <build folder> --target install

or

cmake --build <build folder> --config release --target install

for VisualStudio generator

I had the same problem, and solved by tinkering with locations for cmake and make . Here's what I used:

cmake -DCMAKE_INSTALL_PREFIX=/usr/local
make

I believe /usr/local is the default location (see here )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM