问题描述
我不能再构建assimp 3.2了。昨天它工作,但今天不工作。
I can't build assimp 3.2 anymore. Yesterday it worked but today it doesn't.
我从。然后我正在做 cmake CMakeLists.txt -G'Unix Makefiles'
和 make
$ c> INSTALL 文件。但是,当执行 make
时会出现以下错误:
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
为空,但 gtest-configure-err.log
说如下:
CMake Error: The source directory "/home/gartenriese/Documents/assimp/assimp-3.2/test/gtest/src/gtest" does not appear to contain CMakeLists.txt.
任何想法?
编辑:
我可以使用添加到cmake命令的选项 -DASSIMP_BUILD_TESTS = OFF
来构建它。
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.
推荐答案
因为项目assimp使用不正确的链接到gtest存储库
Because project assimp used incorrect link to gtest repository
目前已使用到Chrome存储库,该存储库已弃用,所有代码已删除从中。
Currently cmake-modules/AddGTest.cmake used link to chromium repository which is deprecated and all code removed from it.
来自README.md
From README.md
This mirror has been deprecated.
The actual repository has moved to https://github.com/google/googletest/
因此,您应该在AddGTest.cmake中更新链接以指向Github存储库。
So you should update link in AddGTest.cmake to point into Github repository.
更新:
提取请求已合并到assimp的主分支中。所以从评论中使用它而不是存储库。
Pull request was already merged into assimp's master branch. So use it instead of repository from comments.
这篇关于建筑assimp 3.2不再工作了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!