SFML community forums

Help => General => Topic started by: DannyL on August 22, 2015, 08:51:28 pm

Title: Can't get SFML to work w/ codeblocks!?
Post by: DannyL on August 22, 2015, 08:51:28 pm
So I have been trying to install for days on end and have not been successful, I've now recorded myself installing both codeblocks and sfml and setting everything up, could someone please tell me what on earth I'm doing wrong? Please!!?
https://www.youtube.com/watch?v=FlvPOgreH-8&feature=youtu.be
Title: Re: Can't get SFML to work w/ codeblocks!?
Post by: eXpl0it3r on August 22, 2015, 10:22:26 pm
You know these settings when you are creating a new project do have meaning! ;D

This image shows the full path to the directory with the Code::Blocks project file:
(http://i.imgur.com/rKky9NX.png)

This image shows the relative path for release and debug binaries:
(http://i.imgur.com/FgaFdCH.png)

To the debug directory you have to copy the DLLs with the -d suffix and to the release directory you have to copy the DLLs without a suffix.

Also next time I suggest you just post the error you get or the issue you have. Having to go through the video to find out where you show the issue is a bit annoying.
You should also give Open Broadcast Software a chance, free screen recording tool. ;)
Title: Re: Can't get SFML to work w/ codeblocks!?
Post by: Hapax on August 22, 2015, 10:33:17 pm
In addition to what eXpl0it3r said...

In your video, you asked where your .exe file is. As shown in eXpl0it3r 's post, it is in your project's bin folder - then Debug. This can be seen on the console app that you executed.
You only need to copy the DLLs to the same folder if you are dynamically linking (except the external audio library, OpenAL) but I noticed that you defined SFML_STATIC. Did you do this for both debug and release? If you are linking statically, you need to also link to all of the modules' dependencies (http://www.sfml-dev.org/faq.php#build-link-static).

I also find it odd that Code::Blocks shows 4.7.1 when you started it up. (The point in your video (https://www.youtube.com/watch?v=FlvPOgreH-8&t=2m51s))