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