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

Author Topic: Executable Tutorial  (Read 2017 times)

0 Members and 1 Guest are viewing this topic.

Ezert

  • Newbie
  • *
  • Posts: 12
    • View Profile
Executable Tutorial
« on: December 15, 2018, 08:20:52 pm »
Hi everybody.

I've searched for some tutorial which shows how to make an executable from an SFML code in Code Blocks, but I can't find something like this...

Do you know a tutorial which could help me?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Executable Tutorial
« Reply #1 on: December 15, 2018, 09:46:36 pm »
Well that's more or less the whole point of Code::Blocks. Once you build your code, it will spit out an executable. If you don't understand that concept yet, then I suggest to first learn about it before touching anything SFML. ;)

You can find a tutorial on how to setup Code::Blocks to link SFML here: https://www.sfml-dev.org/tutorials/2.5/start-cb.php
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Ezert

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Executable Tutorial
« Reply #2 on: December 16, 2018, 12:07:31 am »
Well that's more or less the whole point of Code::Blocks. Once you build your code, it will spit out an executable. If you don't understand that concept yet, then I suggest to first learn about it before touching anything SFML. ;)

You can find a tutorial on how to setup Code::Blocks to link SFML here: https://www.sfml-dev.org/tutorials/2.5/start-cb.php

So... I already know where to find an executable created by Code Blocks.
Console Programs work perfectly... But I'm having problems specifically with SFML executables...

When I run an SFML code within Code Blocks, everything works. The problem happens when I click on the executable (project > bin > debug >> sfml_code.exe). An error message appears saying that some DLLs couldn't be found. So I copy and paste the requested DLLs in the same directory where the executable is. After, I tried to execute the program again and a new error message appeared. I couldn't understand it...
There are some images: https://drive.google.com/open?id=1hPkEREKYqu2iOFgeTYABX5-pVDR8Nay9
(look at the titles)

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Executable Tutorial
« Reply #3 on: December 30, 2018, 01:07:59 pm »
That error tends to suggest that the version of the DLL doesn't match the versions of the includes and libs. Whether that be a mix of SFML versions or a mix of 32-bit and 64-bit versions (or both!) is unclear.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*