Category : sfml

I am making a series of applications on physics simulations and until now I’ve done some of them using purely the handy SFML library. Now I want to add some GUI elements to them. I am just a little bit familiar with wxWidgets framework and wxFrames but have no idea how wxDc works, which seems ..

Read more

I installed SFML and modified the cmakeList to be able to run an SFML project. I used Msys2 to install mingw and sfml 64bit version. My cmake looks like this: cmake_minimum_required(VERSION 3.17) project(PHONEBOOK) set(CMAKE_CXX_STANDARD 11) find_package(SFML 2.5 COMPONENTS system window graphics) add_executable(PHONEBOOK main.cpp contact.cpp contact.h phonebook.cpp phonebook.h) target_link_directories(PHONEBOOK sfml-system sfml-window sfml-graphics) When I run the ..

Read more

I am a beginner game developer and I have been working in Unity Engine since I came up with a realization that I should put more focus and effort on the fundamentals and rather than using Engine, I should do it purely by using OpenGL, SFML, and Cpp for better understanding. So I have made ..

Read more

I am trying to run an SFML program in CLion. I keep getting an error: "C:Program FilesJetBrainsCLion 2020.3.2bincmakewinbincmake.exe" –build C:UsersfilipCLionProjectsSFML_try1cmake-build-debug –target SFML_try1 — -j 6 mingw32-make.exe[3]: *** No rule to make target ‘/SFML/lib/sfml-system-d.lib’, needed by ‘SFML_try1.exe’. Stop. mingw32-make.exe[2]: *** [CMakeFiles/SFML_try1.dir/all] Error 2 mingw32-make.exe[1]: *** [CMakeFiles/SFML_try1.dir/rule] Error 2 mingw32-make.exe: *** [SFML_try1] Error 2 CMakeFilesMakefile2:94: recipe for ..

Read more

I’ve been trying to set up a new SFML project and i always struggle with importing libraries. I thought that everything is fine but the errors say otherwise. Anyway, heres the code and error message: vvvv CMake vvvv cmake_minimum_required(VERSION 3.17) project(SFML_try1) set(CMAKE_CXX_STANDARD 14) add_executable(SFML_try1 main.cpp) include_directories(C:/SFML/include) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules") find_package(SFML REQUIRED system window graphics) if(SFML_FOUND) include_directories(${SFML_INCLUDE_DIR}) ..

Read more

So I have set up the pathway in c_cpp_properties.json for the code to access the SFML library on my Mac, yet I keep getting the 2 errors Cannot open source file "Graphics.hpp" #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/Users/greyson/Desktop/C++/HelloWorld.cpp) I have been to pretty much over video ..

Read more

So I have set up the pathway in c_cpp_properties.json for the code to access the SFML library on my Mac, yet I keep getting the 2 errors Cannot open source file "Graphics.hpp" #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/Users/greyson/Desktop/C++/HelloWorld.cpp) I have been to pretty much over video ..

Read more