Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build with ninja #675

Open
przecze opened this issue Feb 20, 2019 · 4 comments
Open

Cannot build with ninja #675

przecze opened this issue Feb 20, 2019 · 4 comments

Comments

@przecze
Copy link

przecze commented Feb 20, 2019

Steps to reproduce:

mkdir build
cd build
cmake -GNinja ../
ninja

outputs:

ninja: error: 'test/prefix/lib/libgmock.a', needed by 'test/run-tests', missing and no known rule to make it

Related #210 #539 but nothing gives a solution. Adding -DYAML_CPP_BUILD_TOOLS=OFF doesn't change anything.

Environment:

$ cmake --version
cmake version 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ ninja --version
1.8.2
$ lsb_release -d
Description:	Ubuntu 18.04.1 LTS

Using make works fine in the same environment

@Zingam
Copy link

Zingam commented Feb 21, 2019

I made it build with Ninja here:
5eefba2

Unfortunately I couldn't get to build and pass the tests on Travis. I guess a serious change to the build environment is necessary.

@nigels-com
Copy link

Seeing the same error message for ~yaml-cpp-0.6.3 cmake version 3.26.3 on Ubuntu 20.04.6 LTS

cmake --build build/yaml-cpp --config Release --parallel
ninja: error: 'test/prefix/lib/libgmock.a', needed by 'test/run-tests', missing and no known rule to make it
make: *** [manifest/module/Makefile.yaml-cpp:24: build-yaml-cpp] Error 1

@nigels-com
Copy link

Does seem to work for current master branch. Great!

@robtaylor
Copy link

Currently getting:

[0/2] Re-checking globbed directories...
ninja: error: 'lib/libyaml-cppd.a', needed by 'lib/libdump.a', missing and no known rule to make it

With yaml-cpp fetched with:

[0/2] Re-checking globbed directories...
ninja: error: 'lib/libyaml-cppd.a', needed by 'lib/libdump.a', missing and no known rule to make it

with Cmake 3.30.0 on macOS 14.6 aarch64 . Any clues warmly received!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants