无法使用 assimp 库
can't use assimp library
本文关键字:assimp 更新时间:2023-10-16
我使用以下命令安装了assimp库:
sudo apt-get install libassimp-dev assimp-utils
sudo apt-get install libxmu-dev libxi-dev
我从assimp网站下载了c++源代码,但它显示了我无法解决的错误
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".
我应该怎么做才能删除此错误?
只需转到第42行,用您选择的目的地替换环境变量"${ASSIMP_BIN_INSTALL_DIR}"
。(如"./"或"./build")
然后make,它应该会工作。
相关文章:
- "assimp/config.h"找不到,但它在文件夹中
- 使用 assimp 加载模型 - 不需要提升?
- Assimp 库错误:获取打包成员的地址
- 使用 assimp 获取纹理比例
- Assimp - 如何使用任何文件格式导入带有纹理的网格?
- 无法让 Assimp 在 Windows " linker problem" 上运行?(与2019年相比)
- Assimp 无法加载除 FBX 的漫反射纹理之外的其他纹理
- 似乎无法渲染加载了 Assimp 的模型
- Assimp模型加载库安装/链接故障
- 使用 MinGW 构建 ASSIMP 会导致文件太大错误
- mOffsetMatrix在Assimp中实际上做了什么?
- Cmake 无法正确生成 assimp 解决方案 [Windows 10]
- Assimp 不返回纹理数据
- 无法使用Assimp访问3D模型(.OBJ)的正确数量的顶点
- 如何访问Assimp模型数据以进行碰撞
- aiNodeAnim in Assimp
- assimp-vc140-mt.dll ASSIMP was not found
- 将嵌入式纹理添加到Assimp Matrial
- Assimp错误地进口了OBJ指数
- 危机纳米服中的多个纹理 - 使用Assimp加载模型