Thread overview | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
January 13, 2010 DSFML2 | ||||
---|---|---|---|---|
| ||||
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 Re: DSFML2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | Ok, audio and network package compiles. Extensive tests are still due. |
January 13, 2010 Re: DSFML2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | 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 Re: DSFML2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bernard Helyer | 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 Re: DSFML2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | 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 Re: DSFML2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bernard Helyer | Probably some pointer issue. Could you debug it? |
January 18, 2010 Re: DSFML2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | On 18/01/10 15:35, Trass3r wrote:
> Probably some pointer issue.
> Could you debug it?
I can try. D:
|
February 15, 2010 Re: DSFML2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | 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 Re: DSFML2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joel Christensen | 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 Re: DSFML2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Michael P. | 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) |
Copyright © 1999-2021 by the D Language Foundation