www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - SDL with D

reply Oliver <Oliver_member pathlink.com> writes:
Hello !

I installed D on windows. The examples included with D compile and run fine.
However, using the SDL adaption from DeDecated (and the improvement from a
japanese website) all the examples either compile but dont run or dont even
compile. (They seem very old). I am including the proper SDL*.d files and 
use the proper SDL.dll.

Does anybody know if there is an up to date version of SDL for D with working
examples ? 

PS: I compile with dmd -I(path to includes) filename.d
and have the SDL.dll and SDL.lib in the running directory.

regards, Oliver
Apr 30 2005
next sibling parent reply clayasaurus <clayasaurus gmail.com> writes:
Check out the derelict project at www.dsource.org/projects/derelict

I recommend you download the files from the svn trunk, with a command 
similar to 'svn co http://svn.dsource.org/svn/projects/derelict'

Of course, to do that you need subversion or TurtleSVN for windows, you 
can get it at http://subversion.tigris.org/

Note that derelict is special in that it loads the libraries at runtime, 
so you use a command similar to DerelictSDL_Load(); to load the SDL lib.

Derelict also includes OpenGL, GLU, and SDL image + mixer.

I think you'll find derelict easy to use, and it does come with 
examples. Good Luck!

Oliver wrote:
 Hello !
 
 I installed D on windows. The examples included with D compile and run fine.
 However, using the SDL adaption from DeDecated (and the improvement from a
 japanese website) all the examples either compile but dont run or dont even
 compile. (They seem very old). I am including the proper SDL*.d files and 
 use the proper SDL.dll.
 
 Does anybody know if there is an up to date version of SDL for D with working
 examples ? 
 
 PS: I compile with dmd -I(path to includes) filename.d
 and have the SDL.dll and SDL.lib in the running directory.
 
 regards, Oliver
 
 
Apr 30 2005
next sibling parent reply Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
clayasaurus wrote:

 I recommend you download the files from the svn trunk, with a command 
 similar to 'svn co http://svn.dsource.org/svn/projects/derelict'
 
 Of course, to do that you need subversion or TurtleSVN for windows, you 
 can get it at http://subversion.tigris.org/
Nope, he doesn't need any svn client to grab the sources. One can get them directly through the http interface. So did I -- Tomasz Stachowiak /+ a.k.a. h3r3tic +/
Apr 30 2005
parent clayasaurus <clayasaurus gmail.com> writes:
Tom S wrote:
 clayasaurus wrote:
 
 I recommend you download the files from the svn trunk, with a command 
 similar to 'svn co http://svn.dsource.org/svn/projects/derelict'

 Of course, to do that you need subversion or TurtleSVN for windows, 
 you can get it at http://subversion.tigris.org/
Nope, he doesn't need any svn client to grab the sources. One can get them directly through the http interface. So did I
But then you need to use "save as" for every single source? I wonder if cygwin's wget -r http://svn.dsource.org/svn/projects/derelict/trunk/DerelictSDL/derelict/sdl/ would work.
Apr 30 2005
prev sibling parent reply Oliver <Oliver_member pathlink.com> writes:
In article <d5099l$ljh$1 digitaldaemon.com>, clayasaurus says...
Check out the derelict project at www.dsource.org/projects/derelict

I recommend you download the files from the svn trunk, with a command 
similar to 'svn co http://svn.dsource.org/svn/projects/derelict'

Of course, to do that you need subversion or TurtleSVN for windows, you 
can get it at http://subversion.tigris.org/

Note that derelict is special in that it loads the libraries at runtime, 
so you use a command similar to DerelictSDL_Load(); to load the SDL lib.

Derelict also includes OpenGL, GLU, and SDL image + mixer.

I think you'll find derelict easy to use, and it does come with 
examples. Good Luck!
Thanks so far ! I run make and the library compiles, but I am getting into trouble with the 3rd example sdlsem.d : dmd src\test\sdlsem.d lib\derelictSDL.lib lib\derelictSDL.lib -v -debug -Isrc -o dobj\tests -ofbin\sdlsem.exe parse sdlsem semantic sdlsem semantic2 sdlsem semantic3 sdlsem C:\dmd\bin\..\src\phobos\std\string.d(92): function std.string.atoi conflicts wi th std.c.stdlib.atoi at C:\dmd\bin\..\src\phobos\std\c\stdlib.d(53) I would appreciate any help. regards, Oliver
Apr 30 2005
next sibling parent reply John Reimer <brk_6502 yahoo.com> writes:
Oliver wrote:

 
 Thanks so far !
 
 I run make and the library compiles, but I am getting into trouble with the
 3rd example sdlsem.d :
 
 dmd src\test\sdlsem.d lib\derelictSDL.lib lib\derelictSDL.lib -v -debug -Isrc
-o
 dobj\tests -ofbin\sdlsem.exe
 parse     sdlsem
 semantic  sdlsem
 semantic2 sdlsem
 semantic3 sdlsem
 C:\dmd\bin\..\src\phobos\std\string.d(92): function std.string.atoi conflicts
wi
 th std.c.stdlib.atoi at C:\dmd\bin\..\src\phobos\std\c\stdlib.d(53)
 
 I would appreciate any help.
 regards, Oliver
 
 
Where are you getting the test program sdlsem.d? I don't see it anywhere. The conflict above is bewteen two phobos functions atoi() that have been imported from separate libraries. It's possible to fix this, but we need to see the source of sdlsem.d. Also, make sure you are not merely downloading the zip file derelict-0.1.zip from the project svn directory and using it here. That one's ancient and probably no longer supported for recent versions of dmd. Perhaps Mike (the author of derelict) will make an updated zip of the archive soon for those that don't want to deal with svn. - JJR
Apr 30 2005
parent reply Oliver <Oliver_member pathlink.com> writes:
Thanks, u make me think.

I used svn -cp (Web Adress) (local directory)
The example is found in the directory

C:\derelict-0.1\derelict-0.1\src\test

running it results in 

C:\derelict-0.1\derelict-0.1\bin>sdlsem
Usage: Error: Access Violation

I will get into this svn thing. Maybe I did sth. wrong.

regards, Oliver

In article <d50epo$ro1$1 digitaldaemon.com>, John Reimer says...
Oliver wrote:

 
 Thanks so far !
 
 I run make and the library compiles, but I am getting into trouble with the
 3rd example sdlsem.d :
 
 dmd src\test\sdlsem.d lib\derelictSDL.lib lib\derelictSDL.lib -v -debug -Isrc
-o
 dobj\tests -ofbin\sdlsem.exe
 parse     sdlsem
 semantic  sdlsem
 semantic2 sdlsem
 semantic3 sdlsem
 C:\dmd\bin\..\src\phobos\std\string.d(92): function std.string.atoi conflicts
wi
 th std.c.stdlib.atoi at C:\dmd\bin\..\src\phobos\std\c\stdlib.d(53)
 
 I would appreciate any help.
 regards, Oliver
 
 
Where are you getting the test program sdlsem.d? I don't see it anywhere. The conflict above is bewteen two phobos functions atoi() that have been imported from separate libraries. It's possible to fix this, but we need to see the source of sdlsem.d. Also, make sure you are not merely downloading the zip file derelict-0.1.zip from the project svn directory and using it here. That one's ancient and probably no longer supported for recent versions of dmd. Perhaps Mike (the author of derelict) will make an updated zip of the archive soon for those that don't want to deal with svn. - JJR
Apr 30 2005
parent reply John Reimer <brk_6502 yahoo.com> writes:
Oliver wrote:
 Thanks, u make me think.
 
 I used svn -cp (Web Adress) (local directory)
 The example is found in the directory
 C:\derelict-0.1\derelict-0.1\src\test
 
 running it results in 
 
 C:\derelict-0.1\derelict-0.1\bin>sdlsem
 Usage: Error: Access Violation
 
 I will get into this svn thing. Maybe I did sth. wrong.
 
 regards, Oliver
 
Ah, okay. You are using the commandline version of svn for windows. I've been using tortoiseSVN which integrates with the windows shell. For some people, it can be a little easier to use (http://tortoisesvn.tigris.org/), although there's definitely nothing wrong with learning to use the CLI version. The command above is used to copy a file from the svn repository. In your case you must be downloading the derelict-0.1.zip file. Like I mentioned earlier, that one is completely outdated... absolute ancient history, and although it probably works to some extent, it shouldn't be used due to dmd version changes and latent bugs. Perhaps try checking out the svn project like so to get play with the most recent version: 1) change to the directory into which you want to install derelict cd c:\dmd\src 2) type this on the command line: svn co http://svn.dsource.org/svn/projects/derelict ./derelict NOTE: "co" means "checkout"; you use that command whenever you want to download a external project into a new directory on your computer. After the above is complete, you will find that the derelict directory has been created and the complete source for derelict has been downloaded into that directory. You could also have done the following to accomplish the same task: 1) create c:\dmd\src\derelict directory cd c:\dmd\src mkdir derelict cd derelict 2) download the project from the repository svn co http://svn.dsource.org/svn/projects/derelict . As you can see, the '.' allows you to dowload the repository into the current directory, in this case the one you just created. Either method works. Now you should have a brand spanken new derelict. Oh and if you want to periodically sync your derelict with the external repository to keep up to date, you can just type: svn update every once and awhile from within the derelict directory. Build instructions for making a library out of derelict are included with the project. I also recomment you look at the great D build tool called -- can you guess? -- "build." All the best, JJR
Apr 30 2005
parent reply Oliver <Oliver_member pathlink.com> writes:
In article <d514jp$1ebp$1 digitaldaemon.com>, John Reimer says...
Oliver wrote:
 Thanks, u make me think.
 
 I used svn -cp (Web Adress) (local directory)
 The example is found in the directory
 C:\derelict-0.1\derelict-0.1\src\test
 
 running it results in 
 
 C:\derelict-0.1\derelict-0.1\bin>sdlsem
 Usage: Error: Access Violation
 
 I will get into this svn thing. Maybe I did sth. wrong.
 
 regards, Oliver
 
Ah, okay. You are using the commandline version of svn for windows. I've been using tortoiseSVN which integrates with the windows shell. For some people, it can be a little easier to use (http://tortoisesvn.tigris.org/), although there's definitely nothing wrong with learning to use the CLI version. The command above is used to copy a file from the svn repository. In your case you must be downloading the derelict-0.1.zip file. Like I mentioned earlier, that one is completely outdated... absolute ancient history, and although it probably works to some extent, it shouldn't be used due to dmd version changes and latent bugs. Perhaps try checking out the svn project like so to get play with the most recent version: 1) change to the directory into which you want to install derelict cd c:\dmd\src 2) type this on the command line: svn co http://svn.dsource.org/svn/projects/derelict ./derelict NOTE: "co" means "checkout"; you use that command whenever you want to download a external project into a new directory on your computer. After the above is complete, you will find that the derelict directory has been created and the complete source for derelict has been downloaded into that directory. You could also have done the following to accomplish the same task: 1) create c:\dmd\src\derelict directory cd c:\dmd\src mkdir derelict cd derelict 2) download the project from the repository svn co http://svn.dsource.org/svn/projects/derelict . As you can see, the '.' allows you to dowload the repository into the current directory, in this case the one you just created. Either method works. Now you should have a brand spanken new derelict. Oh and if you want to periodically sync your derelict with the external repository to keep up to date, you can just type: svn update every once and awhile from within the derelict directory. Build instructions for making a library out of derelict are included with the project. I also recomment you look at the great D build tool called -- can you guess? -- "build." All the best, JJR
Thank u for the detailed information. So far it works out. I also have discovered that there is a new glfw version that supports D - using the usual import strategy. It has all the structures up to Open GL 1.4. I might use this together with dedicated. Regards, oliver
Apr 30 2005
parent John Reimer <brk_6502 yahoo.com> writes:
Oliver wrote:

 Thank u for the detailed information.
 
 So far it works out. I also have discovered that there
 is a new glfw version that supports D - using the usual import
 strategy. It has all the structures up to Open GL 1.4. 
 I might use this together with dedicated.
 
 Regards, oliver
 
 
Yes, Derelict includes a dynamic loader for glfw 2.4.2 that is quite useful. Meanwhile, the author of glfw (Marcus) also includes a D import library within the glfw project itself that may be used, if one so desires, instead. The advantage of using Mike Parker's Derelict glfw interface is that you don't have worry about linking with an import library during the link step. Derelict allows D to dynamically link with glfw.dll at runtime so that all required symbols are available to the programmer. This means that Derelict is the only library you must link to at link time. Right now, though, glfw is at 2.5. glfw 2.5 hasn't been integrated into Derelict yet, but there are plans to do so soon. Also Derelict, as far as I know, doesn't support opengl structures as high as those supported by glfw 2.5. That's another WIP. Overall, though, using Derelict should simplify many things. I've got several of the glfw samples converted to use Derelict glfw. They work both on windows and linux; all demos are working great. - JJR
Apr 30 2005
prev sibling next sibling parent reply Oliver <Oliver_member pathlink.com> writes:
Yay it works now !

I had to explicitly resolve the namespace (std.c.stdlib.atoi) 
in 2 examples.
Do u have experience with using D for middle-sized game projects ?

regards, Oliver

In article <d50dnu$qes$1 digitaldaemon.com>, Oliver says...
In article <d5099l$ljh$1 digitaldaemon.com>, clayasaurus says...
Check out the derelict project at www.dsource.org/projects/derelict

I recommend you download the files from the svn trunk, with a command 
similar to 'svn co http://svn.dsource.org/svn/projects/derelict'

Of course, to do that you need subversion or TurtleSVN for windows, you 
can get it at http://subversion.tigris.org/

Note that derelict is special in that it loads the libraries at runtime, 
so you use a command similar to DerelictSDL_Load(); to load the SDL lib.

Derelict also includes OpenGL, GLU, and SDL image + mixer.

I think you'll find derelict easy to use, and it does come with 
examples. Good Luck!
Thanks so far ! I run make and the library compiles, but I am getting into trouble with the 3rd example sdlsem.d : dmd src\test\sdlsem.d lib\derelictSDL.lib lib\derelictSDL.lib -v -debug -Isrc -o dobj\tests -ofbin\sdlsem.exe parse sdlsem semantic sdlsem semantic2 sdlsem semantic3 sdlsem C:\dmd\bin\..\src\phobos\std\string.d(92): function std.string.atoi conflicts wi th std.c.stdlib.atoi at C:\dmd\bin\..\src\phobos\std\c\stdlib.d(53) I would appreciate any help. regards, Oliver
Apr 30 2005
next sibling parent John Reimer <brk_6502 yahoo.com> writes:
Oliver wrote:
 Yay it works now !
 
 I had to explicitly resolve the namespace (std.c.stdlib.atoi) 
 in 2 examples.
 Do u have experience with using D for middle-sized game projects ?
 
 regards, Oliver
 
Yes, that's one solution: fully qualified names will clear things up :-). (although I find it a minor annoyance that this even has to be done sometimes).
Apr 30 2005
prev sibling parent clayasaurus <clayasaurus gmail.com> writes:
Oliver wrote:
 Yay it works now !
 
 I had to explicitly resolve the namespace (std.c.stdlib.atoi) 
 in 2 examples.
 Do u have experience with using D for middle-sized game projects ?
 
 regards, Oliver
Check out... http://www.dsource.org/projects/warbots/ http://www.dsource.org/projects/fragbots/ :-)
 
 In article <d50dnu$qes$1 digitaldaemon.com>, Oliver says...
 
In article <d5099l$ljh$1 digitaldaemon.com>, clayasaurus says...

Check out the derelict project at www.dsource.org/projects/derelict

I recommend you download the files from the svn trunk, with a command 
similar to 'svn co http://svn.dsource.org/svn/projects/derelict'

Of course, to do that you need subversion or TurtleSVN for windows, you 
can get it at http://subversion.tigris.org/

Note that derelict is special in that it loads the libraries at runtime, 
so you use a command similar to DerelictSDL_Load(); to load the SDL lib.

Derelict also includes OpenGL, GLU, and SDL image + mixer.

I think you'll find derelict easy to use, and it does come with 
examples. Good Luck!
Thanks so far ! I run make and the library compiles, but I am getting into trouble with the 3rd example sdlsem.d : dmd src\test\sdlsem.d lib\derelictSDL.lib lib\derelictSDL.lib -v -debug -Isrc -o dobj\tests -ofbin\sdlsem.exe parse sdlsem semantic sdlsem semantic2 sdlsem semantic3 sdlsem C:\dmd\bin\..\src\phobos\std\string.d(92): function std.string.atoi conflicts wi th std.c.stdlib.atoi at C:\dmd\bin\..\src\phobos\std\c\stdlib.d(53) I would appreciate any help. regards, Oliver
Apr 30 2005
prev sibling parent reply Oliver <Oliver_member pathlink.com> writes:
Yay it works now !

I had to explicitly resolve the namespace (std.c.stdlib.atoi) 
in 2 examples.
Do u have experience with using D for middle-sized game projects ?

regards, Oliver

In article <d50dnu$qes$1 digitaldaemon.com>, Oliver says...
In article <d5099l$ljh$1 digitaldaemon.com>, clayasaurus says...
Check out the derelict project at www.dsource.org/projects/derelict

I recommend you download the files from the svn trunk, with a command 
similar to 'svn co http://svn.dsource.org/svn/projects/derelict'

Of course, to do that you need subversion or TurtleSVN for windows, you 
can get it at http://subversion.tigris.org/

Note that derelict is special in that it loads the libraries at runtime, 
so you use a command similar to DerelictSDL_Load(); to load the SDL lib.

Derelict also includes OpenGL, GLU, and SDL image + mixer.

I think you'll find derelict easy to use, and it does come with 
examples. Good Luck!
Thanks so far ! I run make and the library compiles, but I am getting into trouble with the 3rd example sdlsem.d : dmd src\test\sdlsem.d lib\derelictSDL.lib lib\derelictSDL.lib -v -debug -Isrc -o dobj\tests -ofbin\sdlsem.exe parse sdlsem semantic sdlsem semantic2 sdlsem semantic3 sdlsem C:\dmd\bin\..\src\phobos\std\string.d(92): function std.string.atoi conflicts wi th std.c.stdlib.atoi at C:\dmd\bin\..\src\phobos\std\c\stdlib.d(53) I would appreciate any help. regards, Oliver
Apr 30 2005
parent reply Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
Oliver wrote:
 Do u have experience with using D for middle-sized game projects ?
I'm just gathering some :) http://codeinsane.info/projects.spy -> Heresy::FragBots is the project I'm working on ATM -- Tomasz Stachowiak /+ a.k.a. h3r3tic +/
Apr 30 2005
parent reply John Reimer <brk_6502 yahoo.com> writes:
Tom S wrote:
 Oliver wrote:
 
 Do u have experience with using D for middle-sized game projects ?
I'm just gathering some :) http://codeinsane.info/projects.spy -> Heresy::FragBots is the project I'm working on ATM
Oliver, watch out for Tom. He's got some seriously scary skills with 3D development and D. Hold onto your hat if you try his demos! Don't let his modesty fool you. ;-) - JJR
Apr 30 2005
parent reply Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
John Reimer wrote:
 
 Oliver, watch out for Tom.  He's got some seriously scary skills with 3D 
 development and D.
 
 Hold onto your hat if you try his demos!
 
 Don't let his modesty fool you. ;-)
 
 - JJR
Hahahahha, nice one, John ;) You've forgotten to add "hit every possible There isn't anything very special in these demos but you just wait... /+ returns to Elephant +/ -- Tomasz Stachowiak /+ a.k.a. h3r3tic +/
Apr 30 2005
next sibling parent John Reimer <brk_6502 yahoo.com> writes:
Tom S wrote:
 John Reimer wrote:
 
 Oliver, watch out for Tom.  He's got some seriously scary skills with 
 3D development and D.

 Hold onto your hat if you try his demos!

 Don't let his modesty fool you. ;-)

 - JJR
Hahahahha, nice one, John ;) You've forgotten to add "hit every possible There isn't anything very special in these demos but you just wait... /+ returns to Elephant +/
know... quick program exit without any frills! *lol* Looking forward to see what ya got coming next... :-D -JJR
Apr 30 2005
prev sibling parent clayasaurus <clayasaurus gmail.com> writes:
Tom S wrote:
 John Reimer wrote:
 
 Oliver, watch out for Tom.  He's got some seriously scary skills with 
 3D development and D.

 Hold onto your hat if you try his demos!

 Don't let his modesty fool you. ;-)

 - JJR
Hahahahha, nice one, John ;) You've forgotten to add "hit every possible There isn't anything very special in these demos but you just wait... /+ returns to Elephant +/
may the Shwartz be with you ;) *heads back to cave to study for finals*
Apr 30 2005
prev sibling parent reply Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
Oliver wrote:
 Hello !
 
 I installed D on windows. The examples included with D compile and run fine.
 However, using the SDL adaption from DeDecated (and the improvement from a
 japanese website) all the examples either compile but dont run or dont even
 compile. (They seem very old). I am including the proper SDL*.d files and 
 use the proper SDL.dll.
 
 Does anybody know if there is an up to date version of SDL for D with working
 examples ? 
Use Derelict :) I'm happily loading SDL and SDLttf through it. It also contains bindings to OpenGL and some other very useful libs. http://dsource.org/projects/derelict/ Don't use the .zip, grab files from SVN and compile them using Build. I don't know of any simple examples, but you might find some help on Derelict's forum. -- Tomasz Stachowiak /+ a.k.a. h3r3tic +/
Apr 30 2005
parent reply Oliver <Oliver_member pathlink.com> writes:
In article <d509dm$lmd$1 digitaldaemon.com>, Tom S says...
Oliver wrote:
 Hello !
 
 I installed D on windows. The examples included with D compile and run fine.
 However, using the SDL adaption from DeDecated (and the improvement from a
 japanese website) all the examples either compile but dont run or dont even
 compile. (They seem very old). I am including the proper SDL*.d files and 
 use the proper SDL.dll.
 
 Does anybody know if there is an up to date version of SDL for D with working
 examples ? 
Use Derelict :) I'm happily loading SDL and SDLttf through it. It also contains bindings to OpenGL and some other very useful libs. http://dsource.org/projects/derelict/ Don't use the .zip, grab files from SVN and compile them using Build. I don't know of any simple examples, but you might find some help on Derelict's forum. -- Tomasz Stachowiak /+ a.k.a. h3r3tic +/
Thanks so far ! I run make and the library compiles, but I am getting into trouble with the 3rd example sdlsem.d : dmd src\test\sdlsem.d lib\derelictSDL.lib lib\derelictSDL.lib -v -debug -Isrc -o dobj\tests -ofbin\sdlsem.exe parse sdlsem semantic sdlsem semantic2 sdlsem semantic3 sdlsem C:\dmd\bin\..\src\phobos\std\string.d(92): function std.string.atoi conflicts wi th std.c.stdlib.atoi at C:\dmd\bin\..\src\phobos\std\c\stdlib.d(53) I would appreciate any help. regards, Oliver
Apr 30 2005
parent reply Mike Parker <aldacron71 yahoo.com> writes:
Oliver wrote:
 In article <d509dm$lmd$1 digitaldaemon.com>, Tom S says...
 
Oliver wrote:

Hello !

I installed D on windows. The examples included with D compile and run fine.
However, using the SDL adaption from DeDecated (and the improvement from a
japanese website) all the examples either compile but dont run or dont even
compile. (They seem very old). I am including the proper SDL*.d files and 
use the proper SDL.dll.

Does anybody know if there is an up to date version of SDL for D with working
examples ? 
Use Derelict :) I'm happily loading SDL and SDLttf through it. It also contains bindings to OpenGL and some other very useful libs. http://dsource.org/projects/derelict/ Don't use the .zip, grab files from SVN and compile them using Build. I don't know of any simple examples, but you might find some help on Derelict's forum. -- Tomasz Stachowiak /+ a.k.a. h3r3tic +/
Thanks so far ! I run make and the library compiles, but I am getting into trouble with the 3rd example sdlsem.d : dmd src\test\sdlsem.d lib\derelictSDL.lib lib\derelictSDL.lib -v -debug -Isrc -o dobj\tests -ofbin\sdlsem.exe parse sdlsem semantic sdlsem semantic2 sdlsem semantic3 sdlsem C:\dmd\bin\..\src\phobos\std\string.d(92): function std.string.atoi conflicts wi th std.c.stdlib.atoi at C:\dmd\bin\..\src\phobos\std\c\stdlib.d(53) I would appreciate any help. regards, Oliver
The trouble you're having is my fault, as I have not released an up-to-date zip archive in almost a year. Also, it isn't immediately obvious to svn newcomers that you actually want to checkout the trunk, as the source in the tags directory is the is a snapshot of what's in the zip archive. Hopefully I'll have time to get this all sorted sooner rather than later.
May 01 2005
parent Oliver <Oliver_member pathlink.com> writes:
In article <d52cra$2ej0$1 digitaldaemon.com>, Mike Parker says...
Oliver wrote:
 In article <d509dm$lmd$1 digitaldaemon.com>, Tom S says...
 
Oliver wrote:

Hello !

I installed D on windows. The examples included with D compile and run fine.
However, using the SDL adaption from DeDecated (and the improvement from a
japanese website) all the examples either compile but dont run or dont even
compile. (They seem very old). I am including the proper SDL*.d files and 
use the proper SDL.dll.

Does anybody know if there is an up to date version of SDL for D with working
examples ? 
Use Derelict :) I'm happily loading SDL and SDLttf through it. It also contains bindings to OpenGL and some other very useful libs. http://dsource.org/projects/derelict/ Don't use the .zip, grab files from SVN and compile them using Build. I don't know of any simple examples, but you might find some help on Derelict's forum. -- Tomasz Stachowiak /+ a.k.a. h3r3tic +/
Thanks so far ! I run make and the library compiles, but I am getting into trouble with the 3rd example sdlsem.d : dmd src\test\sdlsem.d lib\derelictSDL.lib lib\derelictSDL.lib -v -debug -Isrc -o dobj\tests -ofbin\sdlsem.exe parse sdlsem semantic sdlsem semantic2 sdlsem semantic3 sdlsem C:\dmd\bin\..\src\phobos\std\string.d(92): function std.string.atoi conflicts wi th std.c.stdlib.atoi at C:\dmd\bin\..\src\phobos\std\c\stdlib.d(53) I would appreciate any help. regards, Oliver
The trouble you're having is my fault, as I have not released an up-to-date zip archive in almost a year. Also, it isn't immediately obvious to svn newcomers that you actually want to checkout the trunk, as the source in the tags directory is the is a snapshot of what's in the zip archive. Hopefully I'll have time to get this all sorted sooner rather than later.
Yes I am a newcomer indeed. But with the help of the people in this forum it was a no-brainer to use svn and get the newest derelict version compiled (well ok, after some trial and error) An up-to-date zip version might be really helpfull for people new to D and not accustomed to use CVS or SVN. I even thought that derelict was dead before I got the trunk and saw all the great stuff thats in it (Open AL, GLFW, ...). D would have more apeal to game-programmers if they knew that all these libraries are easily accessible with derelict. Regards, Oliver
May 01 2005