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

Author Topic: Edit: Deleted.  (Read 9703 times)

0 Members and 1 Guest are viewing this topic.

Kobie

  • Guest
Edit: Deleted.
« on: July 06, 2011, 09:38:09 am »
Edit: Deleted.
« Last Edit: December 21, 2012, 12:39:39 am by anonymous191 »

deadalnix

  • Newbie
  • *
  • Posts: 45
    • View Profile
Proper setup guide and usage tutorial?
« Reply #1 on: July 11, 2011, 01:27:23 am »
To build DSFML, you need dsss.

Then you configure your project compilation setting to link with DSML, CSFML and SFML.

You'll find severals exemples of code in DSML source code repository to know how to use it. This is similar to SFML, but in D.

Trass3r

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: Proper setup guide and usage tutorial?
« Reply #2 on: August 08, 2011, 03:14:16 pm »
Quote from: "Kobie"
How would I setup DSFML 1.3 (from the downloads section on the main site) with DMD2

You wouldn't.
That package is horribly outdated and doesn't even compile with D2.
You need to use the latest git revision.
For DSFML itself using rdmd is enough, it's a build tool that comes with the dmd package.
But to run the program you need to compile SFML and then CSFML via CMake first.

ParticlePeter

  • Newbie
  • *
  • Posts: 2
    • View Profile
Proper setup guide and usage tutorial?
« Reply #3 on: November 23, 2011, 11:46:31 am »
Hi,

I know, posting to this topic is a little late, but I have questions regarding the answers of this thread.
I am new to D and try to use the current (D)SFML2 snapshot.

@Trass3r : Which file should I run with rdmd ( sorry, me D newbie ) ?

@deadalnix : Where can I find this DSML source code repository ?
Can't find any link to that on sfml-def.orgL or dsource.org and its not included in the snapshot ( can't find it in GIT erpo either ).

Cheers, ParticlePeter !

Trass3r

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Proper setup guide and usage tutorial?
« Reply #4 on: November 23, 2011, 01:50:59 pm »
Seems like Laurent removed the bindings from the git repo.
No clue where he put it.

You just use rdmd with the file containing main(). It automatically finds all imported modules then.

If you are new to D I don't recommend DSFML though since I don't maintain it anymore.
A proper solution should be based on SWIG.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Proper setup guide and usage tutorial?
« Reply #5 on: November 23, 2011, 02:09:30 pm »
Quote
Seems like Laurent removed the bindings from the git repo.
No clue where he put it.

Nowhere. Bindings are no longer hosted on the SFML repository, and most of them have moved to their own repository.

There's a 'bindings_removed' tag in the git history to find the revision just before they were removed.
Laurent Gomila - SFML developer

ParticlePeter

  • Newbie
  • *
  • Posts: 2
    • View Profile
Proper setup guide and usage tutorial?
« Reply #6 on: November 23, 2011, 08:08:28 pm »
Thanks for both of your answers.

@Laurent: Are those c based bindings still maintained ? Or will there be only the c++ Version in future ? If the c bindings will be maintained, where is the Repository that you were talking about ? The bindings_removed tag is just an archive, but the info there also tells about a repo.

Thx,

ParticlePeter

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Laurent Gomila - SFML developer

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Proper setup guide and usage tutorial?
« Reply #8 on: December 30, 2011, 04:12:06 am »
Just want to notify I'm playing around with D a little but I am not creating a binding. I won't because I don't have the time for it. I barely have time to think about rbSFML. But if anyone is interested in taking it up I can give out my playground sandbox thingy.

Getting D to link against CSFML was hard, so I did everything dynamically instead. Other than that and a few other small stuff in the D compiler. The language is freaking sweet and I would love to see someone pick it up again and create a new DSFML bindings for version 2.

It's a perfect mix between managed and native languages if you ask me.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Trass3r

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Proper setup guide and usage tutorial?
« Reply #9 on: December 30, 2011, 01:12:25 pm »
Quote from: "Groogy"
Getting D to link against CSFML was hard, so I did everything dynamically instead.

Yep that's a big open issue. DSFML ought to load everything statically.
But that makes inheritance in the wrapper more complicated.

Quote
Other than that and a few other small stuff in the D compiler. The language is freaking sweet and I would love to see someone pick it up again and create a new DSFML bindings for version 2.

It's a perfect mix between managed and native languages if you ask me.

Glad you like it 8)

The system module should still be pretty usable, network module isn't required -> stdlib

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Proper setup guide and usage tutorial?
« Reply #10 on: December 30, 2011, 09:34:08 pm »
Nah currently I only bind the things I need manually. So if it's something I don't need it will never be bound.

Since I'm playing around it's more than enough. I took a peek at swig as well but it feelt like more work than what I currently do.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

deadalnix

  • Newbie
  • *
  • Posts: 45
    • View Profile
Proper setup guide and usage tutorial?
« Reply #11 on: January 29, 2012, 05:57:14 pm »
Quote from: "Trass3r"
Quote from: "Groogy"
Getting D to link against CSFML was hard, so I did everything dynamically instead.

Yep that's a big open issue. DSFML ought to load everything statically.
But that makes inheritance in the wrapper more complicated.

Quote
Other than that and a few other small stuff in the D compiler. The language is freaking sweet and I would love to see someone pick it up again and create a new DSFML bindings for version 2.


I'm working on it.

It is linked to C++ directly (with some C++ glue between SFML and D code). Most of it is done, but the build system is currently very broken and the new graphic API isn't readu yet, amking the grapgics module unusable (ATM).