acgessler / assimp2json

JSON exporter for Open Asset Import Library to make 3D models accessible from JS/WebGl
http://assimp.sf.net
Other
188 stars 44 forks source link

compile error with gtest #17

Open danwdart opened 8 years ago

danwdart commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

makc commented 7 years ago

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

danwdart commented 7 years ago

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

danwdart commented 7 years ago

Never mind - this is in the upstream project!

danwdart commented 7 years ago

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