How to compile and install SFML with CMake on Windows

preview_player
Показать описание
Downloads

Test code to check whether installation is not successful or not

generating makefiles using

cmake-gui

using mingw32-makefile to install SFML

mingw32-make install

commands used to compile the program

g++ main.o -LC:\SFML\lib -lsfml-window -lsfml-graphics -lsfml-system
Рекомендации по теме
Комментарии
Автор

oh my goodness, this is beautiful. I really appreciate the step-by-step walkthrough. This made it clear that my issue was having more than one compiler in my path, so sfml wasn't getting built with the same compiler as visual studio code was trying to use. I wasn't able to figure that out until every necessary aspect of this process had been demonstrated clearly, to my shame. Love the music, too!

tomcox
Автор

i dont have the bin folder after in program files x86 / sfml
tried files and installing again no luck on bin folder and dlls
Help!!1

GameInOne
Автор

bro g++ 3 command you use but you gave description in 2 command? Give the 2 nd command that i can't see your video, so it can't work

Please give the 2nd command in g++ main.O -?

mohammadforhad