Hello i have been trying to compile sfml with both gcc 9.3 32 bit and 64 bit. Not having much luck
i used msys2 to download the 32 bit and 64 bit version of MINGW
its updated. i can use [for(THING a = THING();double x : a.listOfNumbers){//dostuff}] a gcc 9 compiler addition. i assume compiler works.
No real clue about cmake or the cmake list or anything. But i have managed to compile sfml once before to a non precompiled compiler version.
CMAKE IN GUI ERROR OUTPUT
The C compiler identification is GNU 9.3.0
The CXX compiler identification is GNU 9.3.0
System is unknown to cmake, create:
Platform/Windows 10 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please post that file on discourse.cmake.org.
Check for working C compiler: D:/CODING/COMPILER/mingw32/bin/gcc.exe
System is unknown to cmake, create:
Platform/Windows 10 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
Check for working C compiler: D:/CODING/COMPILER/mingw32/bin/gcc.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"D:/CODING/COMPILER/mingw32/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: D:/CODING/SFMLOUTPUT/CMakeFiles/CMakeTmp
Run Build Command(s):D:/CODING/COMPILER/mingw32/bin/make.exe cmTC_88135/fast && D:/CODING/COMPILER/mingw32/bin/make.exe -f CMakeFiles/cmTC_88135.dir/build.make CMakeFiles/cmTC_88135.dir/build
make[1]: Entering directory 'D:/CODING/SFMLOUTPUT/CMakeFiles/CMakeTmp'
process_begin: CreateProcess(NULL, sh.exe -c "/C/Program Files/CMake/bin/cmake.exe -E cmake_echo_color --switch= --progress-dir=/D/CODING/SFMLOUTPUT/CMakeFiles/CMakeTmp/CMakeFiles --progress-num=1 Building C object CMakeFiles/cmTC_88135.dir/testCCompiler.c.obj", ...) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [CMakeFiles/cmTC_88135.dir/build.make:82: CMakeFiles/cmTC_88135.dir/testCCompiler.c.obj] Error 2
make[1]: Leaving directory 'D:/CODING/SFMLOUTPUT/CMakeFiles/CMakeTmp'
make: *** [Makefile:138: cmTC_88135/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:45 (project)
Configuring incomplete, errors occurred!
See also "D:/CODING/SFMLOUTPUT/CMakeFiles/CMakeOutput.log".
See also "D:/CODING/SFMLOUTPUT/CMakeFiles/CMakeError.log".
I pondered if sh.exe was missing
Or the program was messing up the address of cmake.exe with /c/p... instead of c:/p... but perhaps that doesnt matter.
I pondered i was missing a prerequisite for sfml.
I copied random cmakelist.txts for compiling sfml. but no difference in output.
Like i said i have no clue about this aspect. Hope you might be able to help me :). thanks.