SFML community forums

Help => General => Topic started by: jumico on December 02, 2010, 12:54:47 am

Title: cmake and qt?
Post by: jumico on December 02, 2010, 12:54:47 am
I'm having a problem getting the sfml 2 examples to run using qt creator. First i ran cmake with /sfml2 and sfml2/build for where the source is and where to build and I opened it with qt creator but when i try to run it I get this error. "exited with code -1073741515"  

If i try to click on the pong examples exe it says "sfml-audio-2.dll is missing from your computer" but it is under lib in the build folder.  I'm thinking I need to set a path somewhere in a cmake file but i'm not really sure how cmake works.  Any help is appreciated
Title: cmake and qt?
Post by: Laurent on December 02, 2010, 08:03:54 am
Quote
If i try to click on the pong examples exe it says "sfml-audio-2.dll is missing from your computer"

The DLLs must be in the same directory as the executable you try to run.

You can also build static libraries to get rid of DLLs.
Title: cmake and qt?
Post by: jumico on December 02, 2010, 02:45:13 pm
Thanks that was easy enough.  It works for most of the examples but when I try to run pong, opengl, or win32 it gives me a segmentation fault.  It seems like it might have to do with depending on sfml-graphics but I'm not sure.  Any ideas?
Title: cmake and qt?
Post by: Laurent on December 02, 2010, 02:59:55 pm
What about the shader example?
Title: cmake and qt?
Post by: jumico on December 02, 2010, 05:31:13 pm
The window opens but it says "Sorry Your system doesn't support shaders".