Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何在windows 10上安装ASIMP动态库?_Python_Cmake_Assimp - Fatal编程技术网

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

Python 如何在windows 10上安装ASIMP动态库?,python,cmake,assimp,Python,Cmake,Assimp,我基本上是在尝试读取一个.obj文件,并用pyassim在python中的Qt中显示它,但是这个库还需要安装它的窗口动态库。 现在当我试着跑的时候 cmake .. 在我从此处下载的库中的生成文件夹中: 它向我显示了以下错误: -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:55 (PROJECT):

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

cmake ..
在我从此处下载的库中的生成文件夹中:

它向我显示了以下错误:

-- 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”变量,你知道如何修复它吗?

你有没有检查过关于类似错误消息的其他问题?例如,是的,您还没有遇到,但使用MinGW进行cmaking不起作用,因此我现在安装了visual studio,希望使用visual studio生成器可以让我无误地处理此库,直到下载VS 2019并运行cmake.exe-g“visual studio 10”后出现问题…VS 2019的发电机名称为。另外,请确保在Visual Studio命令提示符下运行此命令,如错误消息所示。Thank刚刚发现一个视频解决了您正在讨论的问题,这显然是实际问题