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

Author Topic: Can't get SFML to work w/ codeblocks!?  (Read 1019 times)

0 Members and 1 Guest are viewing this topic.

DannyL

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Can't get SFML to work w/ codeblocks!?
« 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10821
    • View Profile
    • development blog
    • Email
Re: Can't get SFML to work w/ codeblocks!?
« Reply #1 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:


This image shows the relative path for release and debug binaries:


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. ;)
« Last Edit: August 22, 2015, 10:27:15 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Can't get SFML to work w/ codeblocks!?
« Reply #2 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.

I also find it odd that Code::Blocks shows 4.7.1 when you started it up. ()
« Last Edit: August 22, 2015, 10:35:49 pm by Hapax »
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*