|
||||||||||||||||||
Add Forum to Favorites | Send Topic To a Friend | View Forum FAQ | Track this topic |
Last Thread Next Thread ![]() |
| The Simple DirectMedia Layer from a Win32 Perspective, Part 1: Setting Up Your System for SDL |
|
![]() Anonymous Poster |
||||
|
||||
| FYI: I have a zip archive available that has everything you need to easily get started with SDL development. it includes all the SDL libraries and headers. Not just SDL, but also SDL_image, SDL_ttf, SDL_mixer, and SMPEG. This version of SDL_image has builtin support for the optional JPG and PNG. The SDL_mixer has builtin support the optional OGG and MP3. Just add a single directory for your headers, and a single directory for your libraries... you'll be all set to go with SDL on windows. http://www.pygame.org/ftp/win32-dependencies.zip Note, i keep this archive up to day, so there will be new version replacing about a day or two after there are any new SDL versions. |
||||
|
||||
![]() TheMummy Member since: 11/1/1999 From: Gerzen, Germany |
||||
|
|
||||
| Yeah its easy in Visual C but how do you set it up with Borland Builder.. One of the help docs recommend to put the sdlmain.c stuff right into your main module with a big extern C { } around it ... this looks ugly, and I guess its not plattform independent .. |
||||
|
||||
![]() Tane Member since: 1/29/2001 |
||||
|
|
||||
| Thanks for this tutorial. Being a designer, I am not a great coder but with this tutorial I decided to give it a crack. It took me all day, but I now have a framework for my game, with SFont for bitmap fonts, and FMod for sound You can see an image here: http://www.human-experiment.com/images/galaxy1.jpg The menu items are each bitmaps with a key colour for alpha transparancy, and the text at the bottom is made using SFont. Tane Piper Lead Designer - ZZICT Entertainment http://www.zzict.nl |
||||
|
||||
![]() Davaris Member since: 6/5/2000 From: Australia |
||||
|
|
||||
| One thing I'm not clear on is if we use SDL do we have to make the source to our engines publicly available? |
||||
|
||||
![]() Cyberdrek Member since: 2/17/2000 From: Laval, Canada |
||||
|
|
||||
quote: As far as I know, SDL is not a GPL'd project so I don't think so. "And that's the bottom line cause I said so!" Cyberdrek Headhunter Soft A division of DLC Multimedia Resist Windows XP's Invasive Production Activation Technology! "gitty up" -- Kramer /(bb|[^b]{2})/ that is the Question -- ThinkGeek.com |
||||
|
||||
![]() PredeX Member since: 6/25/2001 From: Wien, Austria |
||||
|
|
||||
| This is what i found on http://www.libsdl.org/license.html: Licensing the Simple DirectMedia Layer library The Simple DirectMedia Layer library is currently available under the GNU Lesser General Public License (LGPL) version 2 or newer. This license allows you to link with the library in such a way that users can modify the library and have your application use the new version. The GNU LGPL license can be found online at: http://www.gnu.org/copyleft/lgpl.html To comply with this license, you must give prominent notice that you use the Simple DirectMedia Layer library, and that it is included under the terms of the LGPL license. You must include a copy of the LGPL license. You must also do one of the following: 1.)Include the source code for the version of SDL that you link with, as well as the full source or object code to your application so that the user can relink your application, or 2.)Include a written offer, valid for at least three years, to provide the materials listed in option 1, charging no more than the cost of providing this distribution, or 3.)Make the materials listed in option 1 available from the same place that your application is available. The most common way to comply with the license is to dynamically link with SDL, and then include the SDL source code and appropriate notices with your application. Edited by - PredeX on December 9, 2001 5:36:35 PM |
||||
|
||||
![]() g8tor75 Member since: 12/20/2001 From: USA |
||||
|
|
||||
| I followed thru the guide and no luck. I keep getting the following error on VC: --------------------Configuration: SDLTest - Win32 Debug-------------------- Linking... SDLmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol _SDL_main Debug/SDLTest.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. SDLTest.exe - 2 error(s), 0 warning(s) I would appreciate it if anyone can help. I can't even get started!!! Thanks in advance |
||||
|
||||
![]() lpSir Member since: 6/15/2002 From: Romania |
||||
|
|
||||
| Well, guess what, I tried to initialise SDL too but it keeps saying this Linking... D:\Diverse\MSDEV\LIB\SDL.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x3cb91cc6 Error executing link.exe. SDL.exe - 1 error(s), 0 warning(s) I have no freekin idea why it does that (could it be because I'm using VC++ 4?) Anywayz, do u need to have the DX sdk installed in order for SDL to work? I'd appreciate any help. 1+1 = 2???? |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
quote: I had this problem also. It might have something to do with the order the libraries are included; I think you have to include SDLmain.lib before SDL.lib, or something like that. |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| Awesome tutorial it helped me understand events a lot better. |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|