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

compile error with gtest #17

Open
danwdart opened this issue May 30, 2016 · 6 comments
Open

compile error with gtest #17

danwdart opened this issue May 30, 2016 · 6 comments

Comments

@danwdart
Copy link

Sorry if I'm missing something obvious...
but I'm doing the usual "mkdir build && cd build && cmake ../ && make"
and getting a gtest error. Perhaps you're missing a CMakeLists or I'm missing a library or something?

Full output of make:

[ 79%] Built target assimp
[ 82%] Built target assimp2json
[ 82%] Performing update step for 'gtest'
Current branch master is up to date.
[ 82%] Performing configure step for 'gtest'
CMake Error at /home/kvd/www/other/assimp2json/build/assimp/test/gtest/src/gtest-stamp/gtest-    configure-.cmake:16 (message):
  Command failed: 1

   '/usr/bin/cmake' '-DCMAKE_BUILD_TYPE=' '-Dgtest_force_shared_crt=ON'             '-Dgtest_disable_pthreads:BOOL=OFF' '-GUnix Makefiles' '/home/kvd/www/other/assimp2json/build    /assimp/test/gtest/src/gtest'

  See also

    /home/kvd/www/other/assimp2json/build/assimp/test/gtest/src/gtest-stamp/gtest-configure-*.log


assimp/test/CMakeFiles/gtest.dir/build.make:105: recipe for target 'assimp/test/gtest/src/gtest-stamp/gtest-configure' failed
make[2]: *** [assimp/test/gtest/src/gtest-stamp/gtest-configure] Error 1
CMakeFiles/Makefile2:235: recipe for target 'assimp/test/CMakeFiles/gtest.dir/all' failed
make[1]: *** [assimp/test/CMakeFiles/gtest.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

The logs show:
CMake Error: The source directory "/home/kvd/www/other/assimp2json/build/assimp/test/gtest/src/gtest" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.

Environment is Ubuntu 16.04.
Cheers

@imcnanie
Copy link

imcnanie commented Aug 11, 2016

I had the same problem, but there is a working binary in the bin/ folder! Looks like it errors, but it still generates a usable binary!

@danwdart
Copy link
Author

Aha, I hadn't realised this and was using the windoze version with wine... which works just as well actually.

@makc
Copy link

makc commented Dec 6, 2016

doing make assimp2json instead of just make makes this go away.

@danwdart
Copy link
Author

danwdart commented Mar 9, 2017

Aha, thanks, I think I found the problem that the testing library was using a deprecated repository.
I'll make a PR.

@danwdart
Copy link
Author

danwdart commented Mar 9, 2017

Never mind - this is in the upstream project!

@danwdart
Copy link
Author

danwdart commented Mar 9, 2017

The project should probably look to sync with upstream for this, I don't know what's involved in API changes though.

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

3 participants