SDL: Difference between revisions
(Added section Links) |
(Added link to "A modified set of SDL bindings") |
||
Line 33: | Line 33: | ||
* [http://translate.google.com/translate?hl=en&sl=ja&u=http://www.f13g.com/%25A5%25D7%25A5%25ED%25A5%25B0%25A5%25E9%25A5%25DF%25A5%25F3%25A5%25B0/Haskell/HSDL/&prev=/search%3Fq%3Dreadme%2Bhsdl%26num%3D25%26hl%3Den%26client%3Dopera%26rls%3Den%26hs%3DRDO Using HSDL], an automatic translation from Japanese. | * [http://translate.google.com/translate?hl=en&sl=ja&u=http://www.f13g.com/%25A5%25D7%25A5%25ED%25A5%25B0%25A5%25E9%25A5%25DF%25A5%25F3%25A5%25B0/Haskell/HSDL/&prev=/search%3Fq%3Dreadme%2Bhsdl%26num%3D25%26hl%3Den%26client%3Dopera%26rls%3Den%26hs%3DRDO Using HSDL], an automatic translation from Japanese. | ||
* [http://www.mail-archive.com/haskell@haskell.org/msg22958.html A modified set of SDL bindings] to compile with Jhc |
Revision as of 19:43, 8 August 2010
Introduction
The Haskell package SDL is a binding to the C library libSDL
From Wikipedia:
Simple DirectMedia Layer (SDL) is a cross-platform, free and open source software multimedia library written in C, that presents a simple interface to various platforms' graphics, sound, and input devices. Software developers use it to write computer games or other multimedia applications that can run on many operating systems including Windows, Mac OS X, OS 9, Linux, the PSP, Google Android, AmigaOS, AmigaOS 4, Haiku/BeOS, MorphOS, OpenVMS, Syllable, and WebOS. It manages video, events, digital audio, CD-ROM, sound, threads, shared object loading, networking and timers.
Installation
For installation of SDL on Windows, see Haskell SDL on Windows, check! (hacking required)
Problems
Haskell-SDL with Mac OS X
There are some issues with the Haskell SDL bindings and Mac OS X, notably linking problems that result in an error such as:
Linking test ...
Undefined symbols:
"_SDL_main", referenced from:
-[SDLMain applicationDidFinishLaunching:] in libSDLmain.a(SDLMain.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
In the SDL bindings' MACOSX file, there is some mention of a code example that shows how to solve this. Unfortunately, the Darcs repository where this code resides is down. After asking Nick Alexander, who was mentioned in the MACOSX file, he referred to the following work by Audrey Tang, where the Main-file trick for making this compile can still be found: [1]
Links
- HSDL, an alternative binding to libSDL.
- Using HSDL, an automatic translation from Japanese.
- A modified set of SDL bindings to compile with Jhc