I can't build assimp 3.2 anymore. Yesterday it worked but today it doesn't.
I am downloading assimp from here. Then I'm doing cmake CMakeLists.txt -G 'Unix Makefiles'
and make
as described in their INSTALL
file. However when doing make
I get the following error:
[ 84%] Performing configure step for 'gtest'
CMake Error at /home/gartenriese/Documents/assimp/assimp-3.2/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/gartenriese/Documents/assimp/assimp-3.2/test/gtest/src/gtest'
See also
/home/gartenriese/Documents/assimp/assimp-3.2/test/gtest/src/gtest-stamp/gtest-configure-*.log
make[2]: *** [test/gtest/src/gtest-stamp/gtest-configure] Error 1
gtest-configure-out.log
is empty, however gtest-configure-err.log
says the following:
CMake Error: The source directory "/home/gartenriese/Documents/assimp/assimp-3.2/test/gtest/src/gtest" does not appear to contain CMakeLists.txt.
Any ideas? It worked yesterday and I did not change anything on my system globally.
EDIT:
I can build it with the option -DASSIMP_BUILD_TESTS=OFF
added to the cmake command. However this is just a workaround and does not explain the issue.
Because project assimp used incorrect link to gtest repository
Currently cmake-modules/AddGTest.cmake used link to chromium repository which is deprecated and all code removed from it.
From README.md
So you should update link in AddGTest.cmake to point into Github repository.
UPDATE:
Pull request was already merged into assimp's master branch. So use it instead of repository from comments.