Jump to page: 1 2
Thread overview
DSFML2
Jan 13, 2010
Trass3r
Jan 13, 2010
Trass3r
Jan 13, 2010
Bernard Helyer
Jan 13, 2010
Trass3r
Jan 15, 2010
Bernard Helyer
Jan 18, 2010
Trass3r
Jan 18, 2010
Bernard Helyer
Feb 15, 2010
Joel Christensen
Feb 16, 2010
Michael P.
Mar 02, 2010
Joel Christensen
Mar 02, 2010
Trass3r
Mar 03, 2010
Joel Christensen
Mar 03, 2010
Trass3r
Mar 04, 2010
Joel Christensen
Mar 04, 2010
Trass3r
Mar 04, 2010
Denis Koroskin
Mar 04, 2010
Trass3r
Mar 05, 2010
Joel Christensen
Mar 08, 2010
Trass3r
January 13, 2010
I've ported DSFML to the currently developed SFML v2.
It is included in its svn branch: http://sfml.svn.sourceforge.net/viewvc/sfml/branches/sfml2/

The packages system, window and graphics already work quite well. Audio package has been ported but the callbacks still need to be modified.

Supports D2. I tried to change as few as possible, so any tango-fetishist might get it to run by removing some const etc. and dealing with struct construction.
January 13, 2010
Ok, audio and network package compiles. Extensive tests are still due.
January 13, 2010
On 14/01/10 04:25, Trass3r wrote:
> I've ported DSFML to the currently developed SFML v2.
> It is included in its svn branch:
> http://sfml.svn.sourceforge.net/viewvc/sfml/branches/sfml2/
>
> The packages system, window and graphics already work quite well. Audio
> package has been ported but the callbacks still need to be modified.
>
> Supports D2. I tried to change as few as possible, so any
> tango-fetishist might get it to run by removing some const etc. and
> dealing with struct construction.


Excellent! Looking forward to trying it out. I'm having some trouble checking out the repository though:

[src]$ svn co http://sfml.svn.sourceforge.net/viewvc/sfml/branches/sfml2/
svn: Repository moved temporarily to '/viewvc/sfml/branches/sfml2/'; please relocate

I'm probably doing something stupid. Any library supporting D2 is good news, though.


-Bernard.
January 13, 2010
Yeah, sorry the correct repository is:

https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2/

The one I posted before is just the web version.
January 15, 2010
Okay, I got it to build and run. My hello world application segfaults if I quit with alt+f4 or escape, and sometimes if I just close it using the window manager.

(32 bit linux DMD 2.039, bernardh from #D)

hello.d:
------------------
module hello;

import std.stdio;

import dsfml.system.all;
import dsfml.window.all;
import dsfml.graphics.all;

void main()
{
    auto app = new RenderWindow(VideoMode(800, 600, 32), "DSFML Window");

    while (app.isOpened) {
        app.display();

        Event e;
        while (app.getEvent(e)) {
            if (e.Type == EventType.Closed ||
                e.Type == EventType.KeyPressed && e.Key.Code == KeyCode.Escape) {
                app.close();
            }
        }
    }
}
-----------------

Am I doing something bone-headed here?


Thanks,
-Bernard.
January 18, 2010
Probably some pointer issue.
Could you debug it?
January 18, 2010
On 18/01/10 15:35, Trass3r wrote:
> Probably some pointer issue.
> Could you debug it?

I can try. D:
February 15, 2010
I've tried to build a progam using 32 bit Windows DMD 2.039:

C:\svn\sfml2\DSFML>dmd hello.d -Iimport
OPTLINK (R) for Win32  Release 8.00.2
Copyright (C) Digital Mars 1989-2009  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
hello.obj(hello)
 Error 42: Symbol Undefined _D5dsfml8graphics3all12__ModuleInfoZ
hello.obj(hello)
 Error 42: Symbol Undefined _D5dsfml6window3all12__ModuleInfoZ
hello.obj(hello)
 Error 42: Symbol Undefined _D5dsfml6system3all12__ModuleInfoZ
hello.obj(hello)
 Error 42: Symbol Undefined _D5dsfml8graphics12renderwindow12RenderWindow7__Clas
sZ
hello.obj(hello)
 Error 42: Symbol Undefined _D5dsfml8graphics12renderwiÚow12RÇàÄWÇàÄ6__ctorMFSÇå
Á6ÇåÑ9videomoß9VÇäèMÇâèAyakÇĪ÷15ContextSettingsZCü½é
hello.obj(hello)
 Error 42: Symbol Undefined _D5dsfml6window5event5Event6__initZ
--- errorlevel 6

Thanks for any help.
February 16, 2010
Joel Christensen Wrote:

> I've tried to build a progam using 32 bit Windows DMD 2.039:
> 
> C:\svn\sfml2\DSFML>dmd hello.d -Iimport
> OPTLINK (R) for Win32  Release 8.00.2
> Copyright (C) Digital Mars 1989-2009  All rights reserved.
> http://www.digitalmars.com/ctg/optlink.html
> hello.obj(hello)
>   Error 42: Symbol Undefined _D5dsfml8graphics3all12__ModuleInfoZ
> hello.obj(hello)
>   Error 42: Symbol Undefined _D5dsfml6window3all12__ModuleInfoZ
> hello.obj(hello)
>   Error 42: Symbol Undefined _D5dsfml6system3all12__ModuleInfoZ
> hello.obj(hello)
>   Error 42: Symbol Undefined
> _D5dsfml8graphics12renderwindow12RenderWindow7__Clas
> sZ
> hello.obj(hello)
>   Error 42: Symbol Undefined
> _D5dsfml8graphics12renderwiÚow12RÇàÄWÇàÄ6__ctorMFSÇå
> Á6ÇåÑ9videomoß9VÇäèMÇâèAyakÇĪ÷15ContextSettingsZCü½é
> hello.obj(hello)
>   Error 42: Symbol Undefined _D5dsfml6window5event5Event6__initZ
> --- errorlevel 6
> 
> Thanks for any help.

Try using rebuild/dsss or bud. The libs for SFML probably aren't being linked. You could also do this with dmd, but it's easier with those tools.
March 02, 2010
Tried bud, it compiled but it filled my command prompt window with errors when I tried running it. When trying to run it it came up with 'not a Win32 program'. I tried using ReBuild, but it didn't even compile.

(forgot about subject)
« First   ‹ Prev
1 2