如何在windows 10上安装ASIMP动态库?

2024-05-15 09:46:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我基本上是在尝试读取一个.obj文件,并用pyassim在python中的Qt中显示它,但是这个库还需要安装它的窗口动态库。 现在当我试着跑的时候

cmake ..

在我从这里下载的库中的构建文件夹中:https://github.com/assimp/assimp

它向我显示了以下错误:

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:55 (PROJECT):
  The CMAKE_C_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  To use the NMake generator with Visual C++, cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem, run cmake from the
  Visual Studio Command Prompt (vcvarsall.bat).

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:55 (PROJECT):
  The CMAKE_CXX_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  To use the NMake generator with Visual C++, cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem, run cmake from the
  Visual Studio Command Prompt (vcvarsall.bat).

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "C:/Users/damn1/Desktop/Working_folder/assimp/assimp-master/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/damn1/Desktop/Working_folder/assimp/assimp-master/build/CMakeFiles/CMakeError.log".

考虑到我声明了cmake的“PATH”变量,你知道如何修复它吗


Tags: thetopathfromcmakecompileriscl