Craft
Craft copied to clipboard
Can't build
Firstly, https://www.mingw.org was hijacked and now points to one of those "Click Allow to continue" scams.
Anyway,
C:\Users\[REDACTED]\Downloads\Craft-master>cmake -D CMAKE_C_COMPILER="C:/Users/[REDACTED]/mingw64/bin/gcc.exe"
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Check for working C compiler: C:/Users/[REDACTED]/mingw64/bin/x86_64-w64-mingw32-gcc.exe
-- Check for working C compiler: C:/Users/[REDACTED]/mingw64/bin/x86_64-w64-mingw32-gcc.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"C:/Users/[REDACTED]/mingw64/bin/x86_64-w64-mingw32-gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: 'C:/Users/[REDACTED]/Downloads/Craft-master/CMakeFiles/CMakeScratch/TryCompile-7hxwuo'
Run Build Command(s): "C:/Program Files/CMake/bin/cmake.exe" -E env VERBOSE=1 C:/Users/[REDACTED]/mingw64/bin/cmake.exe -f Makefile cmTC_ea186/fast
CMake Warning:
Ignoring extra path from command line:
"cmTC_ea186/fast"
CMake Error: Unknown argument -f
CMake Error: Run 'cmake --help' for all supported options.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
regarding the failure mode, there's this DenverCoder9 issue with the same pattern of "Makefile cmTC_[hex digits]/fast [...] Unknown argument -f".
using MinGW "GCC 13.2.0 (with POSIX threads) + LLVM/Clang/LLD/LLDB 17.0.6 + MinGW-w64 11.0.1 (UCRT) - release 4" (WinLibs) (Win64), CMake 3.28.1, and curl 8.5.0 (curl-for-win).