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
C++ 为MinGW构建Assimp库时遇到的问题_C++_Cmake - Fatal编程技术网

C++ 为MinGW构建Assimp库时遇到的问题

C++ 为MinGW构建Assimp库时遇到的问题,c++,cmake,C++,Cmake,嗨,我正在尝试在Windows上使用cmake和MinGW Makefiles进行构建。在相应的文件夹中,我执行以下操作 mkdir构建 光盘制作 cmake-G“MinGW makefile”/ 输出告诉我更新MinGW: -- The C compiler identification is GNU 4.8.3 -- The CXX compiler identification is GNU 4.8.3 -- Check for working C compiler: C:/MinGW6

嗨,我正在尝试在Windows上使用cmake和MinGW Makefiles进行构建。在相应的文件夹中,我执行以下操作

mkdir构建
光盘制作
cmake-G“MinGW makefile”/
输出告诉我更新MinGW:

-- The C compiler identification is GNU 4.8.3
-- The CXX compiler identification is GNU 4.8.3
-- Check for working C compiler: C:/MinGW64/bin/gcc.exe
-- Check for working C compiler: C:/MinGW64/bin/gcc.exe - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/MinGW64/bin/g++.exe
-- Check for working CXX compiler: C:/MinGW64/bin/g++.exe - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Shared libraries enabled
CMake Error at CMakeLists.txt:266 (message):
  MinGW is too old to be supported.  Please update MinGW and try again.
在我的系统上,我有两个MinGW文件夹
C:/MinGW64/bin/gcc.exe
cmake进程似乎要检查的文件夹和
C:/MinGW
我假设的32位版本

Google for
Update MinGW
总是指向我使用过的
C:\MinGW\libexec\MinGW get\guimain.exe
。在这里,我没有得到任何进一步的更新:


另外,据我所知,cmake正在检查
MinGW64
文件夹,而不是我正在更新的文件夹。另外,我实际上希望能够为64位和32位构建ASIMP。那么我如何更新
MinGW
MinGW64
版本呢?

CMake将
gcc
作为
C:/MinGW64/bin/gcc.exe
版本,即4.8.3版。这是一个非常古老的版本。我的建议是,您卸载这两个版本的MinGW,然后下载最新版本进行重新安装。您可能需要使用msys2并获取最新的MinGW以及包管理,因为assimp是msys2中的一个包:要从您的msys2终端类型
pacman-S MinGW-w64-x86_64-assimp安装,请点击msys2链接: