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

Author Topic: SFML project build system for multi-developers from different os'es  (Read 3581 times)

0 Members and 3 Guests are viewing this topic.

Ezhoikam

  • Newbie
  • *
  • Posts: 6
    • View Profile
First of all, i did some searching but didn't find needed guide.

Here project folder structure;

-project folder with project name
   --Include    // SFML and other hpp files
   --Lib          // SFML lib files
   --Media       // Fonts, sprites etc.
   --Source      // All source code files.
   --Build        // For Windows and Linux build.
      ---Win32      // optional subdirectories
      ---Win64      // optional subdirectories
      ---Linux      // optional subdirectories

We wanna use Github for collaboration.
We have 4 developers one of them (me) using Archlinux, others using Windows as their OS. I'll use Eclipse C/C++ for IDE and they'll use Visual Studio.

How can we setup build environment for working on same repository from different ide's and os? I tried Cmake but couldn't make it. I'm not good at it's script language. So can anyone help me with making this build structure? Or is it possible?
« Last Edit: July 11, 2015, 06:27:23 pm by Ezhoikam »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML project build system for multi-developers from different os'es
« Reply #1 on: July 11, 2015, 06:33:10 pm »
You have to use a meta-build system. CMake is one of them, but if you really don't like it there are others. Anyway, until you pick a build system, there's nothing to help you with ;)
Laurent Gomila - SFML developer

Ezhoikam

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SFML project build system for multi-developers from different os'es
« Reply #2 on: July 11, 2015, 06:35:28 pm »
Cmake is probably right choice. But i'm not really familiar with build systems. I just wanna make it once. Then use it for other projects.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: SFML project build system for multi-developers from different os'es
« Reply #3 on: July 11, 2015, 06:42:44 pm »
SCons might be an alternative. Whatever you choose, you'll have to learn it on your own.

In case you decide to go with CMake, you could have a look at my library Thor, its scripts are fairly simple.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Ezhoikam

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SFML project build system for multi-developers from different os'es
« Reply #4 on: July 11, 2015, 07:07:27 pm »
I checked scons and cmake. It looks like it will take so much time to learn one of them  :-\ what is the simplest way to do what i want to do?

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: SFML project build system for multi-developers from different os'es
« Reply #5 on: July 11, 2015, 07:13:51 pm »
The simplest way is to invest a bit of time and learn scons and/or cmake.
(personally I'd suggest SCons ;)).

Edit: There are not always easy solutions. But, as a developer, solving problems/learning new things should be what you do/are good at. So learning a build system shouldn't be a big deal...
« Last Edit: July 11, 2015, 08:49:33 pm by Jesper Juhl »

Ezhoikam

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SFML project build system for multi-developers from different os'es
« Reply #6 on: July 12, 2015, 03:43:24 pm »
I tried to install scons but it can't find python.

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: SFML project build system for multi-developers from different os'es
« Reply #7 on: July 12, 2015, 06:47:51 pm »
Do I really have to say this?
Then install python.  ::)

# pacman -Syu python
« Last Edit: July 12, 2015, 06:49:29 pm by Jesper Juhl »

Ezhoikam

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SFML project build system for multi-developers from different os'es
« Reply #8 on: July 13, 2015, 12:42:05 pm »
here is the problem; i already have python. i tried with v2 and v3. it can't find on registry.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: SFML project build system for multi-developers from different os'es
« Reply #9 on: July 13, 2015, 12:47:14 pm »
Add it to PATH.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

SpeCter

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: SFML project build system for multi-developers from different os'es
« Reply #10 on: July 13, 2015, 01:12:02 pm »
Do I really have to say this?
Then install python.  ::)

# pacman -Syu python

Unfortunately not everyone here uses Arch ;)

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: SFML project build system for multi-developers from different os'es
« Reply #11 on: July 13, 2015, 03:08:35 pm »
Well, he did say in the original post that he would be using Arch  ;)
But, his problem seems to Windows related - I'm pretty sure it's a known problem with the 64bit python build - I'd just install the 32bit version, that usually works fine.

 

anything