本文介绍了不能使用assimp库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用以下命令安装了assimp库:
I installed the assimp library using these commands:
sudo apt-get install libassimp-dev assimp-utils
sudo apt-get install libxmu-dev libxi-dev
我从assimp网站下载了c ++源代码,但是它显示了我无法解决的错误
I downloaded the c++ source code from the assimp website, but it shows errors that I am not able to resolve
CMake Error at CMakeLists.txt:42 (INSTALL):
install TARGETS given no RUNTIME DESTINATION for executable target
"assimp_simpleogl".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/home/playroom/Desktop/assimp/CMakeFiles/CMakeOutput.log".
我该怎么办才能消除此错误?
What should I do to remove this error ?
推荐答案
只需转到第42行,然后将环境变量"$ {ASSIMP_BIN_INSTALL_DIR}"
替换为您选择的目标即可.(例如"./"或"./build")
just go at line 42, and replace the environment variable "${ASSIMP_BIN_INSTALL_DIR}"
with the destination of your choice.(like "./" or "./build")
然后制作,它应该可以工作.
then make and it should work.
这篇关于不能使用assimp库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!