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
如何安装MATIO库? 这样,我花了最后两个星期的时间来尝试让这个库运行,这样我就可以读取C++中存储的 .Mat < /Cord>文件中的变量,但遗憾的是,这是有用的。我将一步一步地解释到目前为止我做了什么,你可以告诉我我做错了什么,或者我是否遗漏了一些步骤: 我下载了MATIO库()并将其解压缩 我下载了CMake,打开了CMake gui.exe,选择了正确的设置,配置了它并生成了构建文件。我试图使用中的给定行从命令提示符安装它,但始终出现以下错误:_C++_Cmake_Build_Libraries_Matio - Fatal编程技术网

如何安装MATIO库? 这样,我花了最后两个星期的时间来尝试让这个库运行,这样我就可以读取C++中存储的 .Mat < /Cord>文件中的变量,但遗憾的是,这是有用的。我将一步一步地解释到目前为止我做了什么,你可以告诉我我做错了什么,或者我是否遗漏了一些步骤: 我下载了MATIO库()并将其解压缩 我下载了CMake,打开了CMake gui.exe,选择了正确的设置,配置了它并生成了构建文件。我试图使用中的给定行从命令提示符安装它,但始终出现以下错误:

如何安装MATIO库? 这样,我花了最后两个星期的时间来尝试让这个库运行,这样我就可以读取C++中存储的 .Mat < /Cord>文件中的变量,但遗憾的是,这是有用的。我将一步一步地解释到目前为止我做了什么,你可以告诉我我做错了什么,或者我是否遗漏了一些步骤: 我下载了MATIO库()并将其解压缩 我下载了CMake,打开了CMake gui.exe,选择了正确的设置,配置了它并生成了构建文件。我试图使用中的给定行从命令提示符安装它,但始终出现以下错误:,c++,cmake,build,libraries,matio,C++,Cmake,Build,Libraries,Matio,但是gui没有出现任何问题/错误 然后我打开我的IDE(我使用的是Codelite IDE),将以下文件夹/目录放入我的编译器C:\Users\RS3\matio\src和C:\Users\RS3\matio\build\src。但是我没有找到任何.dll或.lib文件来链接我的链接器。我意识到我可能错过了安装步骤,但我只是不知道该怎么做。在C:\Users\RS3\matio\build中,有一个名为cmake_install.cmake的文件,但当我打开它时,它只是打开了cmake gui.

但是gui没有出现任何问题/错误

  • 然后我打开我的IDE(我使用的是Codelite IDE),将以下文件夹/目录放入我的编译器
    C:\Users\RS3\matio\src
    C:\Users\RS3\matio\build\src
    。但是我没有找到任何
    .dll
    .lib
    文件来链接我的链接器。我意识到我可能错过了安装步骤,但我只是不知道该怎么做。在
    C:\Users\RS3\matio\build
    中,有一个名为
    cmake_install.cmake
    的文件,但当我打开它时,它只是打开了
    cmake gui.exe
    ,我在那里构建了库本身,没有什么新的内容
  • 因此,任何帮助都将不胜感激,因为我已经花了很多时间试图让这个库运行,现在我需要让它运行。。提前谢谢

    C:\Users\RS3\matio>cmake .
    -- The C compiler identification is unknown
    -- The CXX compiler identification is unknown
    CMake Error at CMakeLists.txt:7 (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:7 (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/RS3/matio/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/RS3/matio/CMakeFiles/CMakeError.log".