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

Author Topic: How to export a sfml project?  (Read 2616 times)

0 Members and 1 Guest are viewing this topic.

LeluLelu

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
How to export a sfml project?
« on: July 26, 2017, 10:53:58 am »
Hi there! I'm new to forum but not new to sfml. I'm using sfml with vs 2015 with nuget. How can I export my project? To send the game to some friends for example. Maybe this is a frequently asked question but maybe it will help me more if I'm being more implicated by creating a new topic.

Hopefully i will find the answer :)) .Thx!!!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: How to export a sfml project?
« Reply #1 on: July 26, 2017, 12:35:19 pm »
Compile it and package the exe, dll and resources.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: How to export a sfml project?
« Reply #2 on: July 26, 2017, 07:31:34 pm »
You can use DependencyWalker to find out all the dlls needed (Visual has few of MS runtime ones linked and they are not always present).

There is a quick searcher program for Windows called Everything that'll let you find the MS dlls anywhere they are (the ones in VC/redist of your Visual Studio are the ones you should use, you will likely find dlls of same or similar name in many programs, VirtualBox, many games, VS Code, etc. use them too and bring their own but you shouldn't use or redistribute them).

You can also use VirtualBox with a clean Windows installation in it and go off of error messages (you can also use that to test your package for working on a clean Windows).

As for your own files - getting that running is totally up to you, SFML never opens files without being told to do so by your code.
Back to C++ gamedev with SFML in May 2023

LeluLelu

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: How to export a sfml project?
« Reply #3 on: July 27, 2017, 05:30:20 pm »
Okay. I'll try !!
Thx for everything!!! :D

 

anything