1
General / Setup SFML, CMake, MinGW
« on: August 11, 2023, 06:16:04 am »
Hi, I'm new to game development and trying to setup SFML using this tutorial (https://www.sfml-dev.org/tutorials/2.6/compile-with-cmake.php). Here's what I've done so far:
1. Install MinGW on (https://winlibs.com/) version 13.2.0(32bit)
2. Setup the PATH on System Variables to my "MinGW/bin" location
# I've tested "g++ --version" on CLI and everything's okay
3. Install CMake on (https://cmake.org/download) and chose the latest "Windows i386 Installer"
# I've tested "cmake --version" on CLI and everything's okay
4. I downloaded the SFML "Source Code" under the "All" section(just above HTML Documentation)
5. I extracted it and put it to "C:\SFML-2.6.0" (This folder contain CMakeLists.txt & a bunch of other things)
6. I opened up the CMake GUI(just like the tutorial) and filled this field:
Where is the source code: C:\SFML-2.6.0
Where to build the binaries: C:SFML-Build
7. I clicked the "Configure" button(it turns red, which is normal according to the tutorial)
8. I clicked the "Configure" button again(I didn't change anything in the configuration)
9. I clicked the "Generate" button and it filled the "C:\SFML-Build" with a bunch of stuff(there's a "makefile" in this folder)
* This is where it gets confusing for me
10. I opened up the CLI and went to "C:\SFML-Build" directory
11. I ran the "mingw32-make" command
12. Here's the error:(in the screenshot)
Can someone explained what to do?
What I'm planning to do:
- I tried to learn SFML by doing a simple game copycat like Flappy Bird or Tetris
- I planned on using "Sublime Text 3" text editor, MinGW(32bit) compiler, CMake and CLI
* Please do note that I have problem for setting up the environment rather than how to program a game
* And if possible can someone explained what to do after this(running a test code to see if it works)
Thank you for reading this, and hope you have a good day
1. Install MinGW on (https://winlibs.com/) version 13.2.0(32bit)
2. Setup the PATH on System Variables to my "MinGW/bin" location
# I've tested "g++ --version" on CLI and everything's okay
3. Install CMake on (https://cmake.org/download) and chose the latest "Windows i386 Installer"
# I've tested "cmake --version" on CLI and everything's okay
4. I downloaded the SFML "Source Code" under the "All" section(just above HTML Documentation)
5. I extracted it and put it to "C:\SFML-2.6.0" (This folder contain CMakeLists.txt & a bunch of other things)
6. I opened up the CMake GUI(just like the tutorial) and filled this field:
Where is the source code: C:\SFML-2.6.0
Where to build the binaries: C:SFML-Build
7. I clicked the "Configure" button(it turns red, which is normal according to the tutorial)
8. I clicked the "Configure" button again(I didn't change anything in the configuration)
9. I clicked the "Generate" button and it filled the "C:\SFML-Build" with a bunch of stuff(there's a "makefile" in this folder)
* This is where it gets confusing for me
10. I opened up the CLI and went to "C:\SFML-Build" directory
11. I ran the "mingw32-make" command
12. Here's the error:(in the screenshot)
Can someone explained what to do?
What I'm planning to do:
- I tried to learn SFML by doing a simple game copycat like Flappy Bird or Tetris
- I planned on using "Sublime Text 3" text editor, MinGW(32bit) compiler, CMake and CLI
* Please do note that I have problem for setting up the environment rather than how to program a game
* And if possible can someone explained what to do after this(running a test code to see if it works)
Thank you for reading this, and hope you have a good day