Hello, first post here.
I’m getting errors when trying to select configure for building SDL2 using CodeBlocks and the non bundled mingw compiler. I will list the versions then the errors below.
OS: Win 7
CMake: 3.23.1
CodeBlocks: 20.03
Please note that this is CodeBlocks without the bundled mingw compiler. I have the msys compiler with both 32 and 64 bit versions of mingw installed in c:/msys/mingw64 which is the one I want to use. It is tested and works fine with CodeBlocks when selected.
I have the SDL2 sourcecode for version 2.0.20. I was following the instructions here ( Install SDL With Code Blocks - YouTube ) but the process does not work, probably because I am using an alternative compiler in a different place.
The errors I get are as follows:
CMake Error: CMake was unable to find a build program corresponding to “MinGW Makefiles”. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to “MinGW Makefiles”. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Configuring incomplete, errors occurred!
If I specify the Codeblocks generator as my msys/mingw64 compiler I get the following:
Compilers are recognised but get CMAKE_MAKE_PROGRAM-NOTFOUND
even if I point to it I get the error:
libgmp-10.dll is mising from my computer.
The C compiler identification is unknown
The CXX compiler identification is unknown
Detecting C compiler ABI info
Please can someone advise me how I can build SDL2 libraries with CodeBlocks and the non bundled mingw compiler? Thank you.