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

Author Topic: Transfer sfml from linux to windows  (Read 1932 times)

0 Members and 1 Guest are viewing this topic.

JOJO

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Transfer sfml from linux to windows
« on: April 22, 2017, 02:10:37 pm »
Hello Guys,
I have just finished working on a project with sfml on my linux.
I need to submit my code so that it will work on a windows platform.
My question is the following, what dll files do I need to add to my repositoy so that it will compile on a windows machine
without need of installing sfml?
I hope I was clear on the question and look forward for an answer,
Thank you for reading  !

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Transfer sfml from linux to windows
« Reply #1 on: April 22, 2017, 07:40:25 pm »
There's not a single way to build something on Windows, so there's no magic collection of dll that will just always fit.
If you just have the code, then make sure to use a general build system for example like CMake, so people can generate the needed make or project files on Windows. Other than that, you shouldn't provide any DLLs as long as you don't have an EXE to ship. Just tell to whomever wants to build it on Windows, where to find SFML (and any other dependencies).
Alternatively, you could also try and use appveyor to build some binaries, but unless you pay for it, you need to make your code open source.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

JOJO

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: Transfer sfml from linux to windows
« Reply #2 on: April 23, 2017, 12:07:36 pm »
Hello,
Thank you for you answer,
I am not sure I understood everything I don't know much about Windows
 ("where to find SFML" ), does that mean they  have to install sfml  on their computer for it to work?
Also they insist on being able to compile with CodeBlocks so I won't be able to use CMake do you think that causes any issues?
 

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Transfer sfml from linux to windows
« Reply #3 on: April 23, 2017, 05:32:11 pm »
I mean, you can provide SFML with your code, but it's much cleaner if you just tell them where to download SFML themselves.

CMake can generate Code::Blocks project files, but if they require a Code::Blocks project, you can also just provide that. Not sure how compatible Linux and Windows project files are.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

JOJO

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: Transfer sfml from linux to windows
« Reply #4 on: April 24, 2017, 01:04:35 pm »
Thank  you very much for your answers !!