Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Journeyman

Pages: [1]
General / SFML Project Won't Build/Run
« on: October 30, 2021, 07:12:33 pm »
Hello Guys,

I am having some issues with SFML.  I am working in CLion (CMake) on Windows.  I have used SFML in the past on a Linux machine with little to no problems.  Now I am having major issues. 

I have written a state machine and an asset manager for SFML and I am to a point where I have testable code.  When I went to build I had issues with the build process.  My initial response was the download the appropriate version of GCC and install it to match and then download the right version of SFML.  This go me past the build issues but when I attempted to run the executable it fails stating that I am missing libraries.  Some of them are SFML libraries and others are GCC libraries. 

sfml-xxx-d-2.dll for audio and so on.

I couldn't really figure out why it was missing these libraries so after a few frustrating hours I just dropped them in the debug folder with the executable.  This seemed to resolve that problem.  When I attempted to run the program again I get another error saying the program failed to start 0xc000007b. 

At first, I thought it might be my code so I attempted to debug by placing a breakpoint at the beginning of main but, the error appears before any of my code executes.  (Which I should have known by the words failed to start lol). 

I figured it must be something with my build tools because, things had never quite worked right.  So I went ahead and decided to build SFML libraries from the repo so that the build tools between the libs and the project would match.   Now I am getting a CMake error:

CMake Error at CMakeLists.txt:11 (find_package):
  Could not find a configuration file for package "SFML" that is compatible
  with requested version "2.5".

  The following configuration files were considered but not accepted:

    C:/Libraries/SFML-2.5.1/lib/cmake/SFML/SFMLConfig.cmake, version: 2.5.1 (64bit)

mingw32-make.exe: *** [cmake_check_build_system] Error 1

Can anyone help me with this process?  I am in SFMHELL right now lol. 


Pages: [1]