Talk:FPC and SDL

From Free Pascal wiki
Revision as of 16:29, 9 February 2006 by Marc (talk | contribs) (unitpath in fpc.cfg)
Jump to navigationJump to search

Is the section "Tips and tricks" really relevant ? On Debian system, smpeg isn't hard to get (just install package `libsmpeg0'). Moreover, Debian `libsdl-mixer1.2' package already depends on smpeg anyway. Moreover, reading SDL_Mixer home page, the fact that SDL_Mixer requires smpeg (for mp3 support) is perfectly normal. So I would say that probably every modern Linux distro

  1. makes smpeg library easily available
  2. packages SDL_Mixer library in such way that it depends on smpeg library, to be able to play mp3

So the fact that SDL_Mixer unit uses smpeg unit is perfectly normal and there's no need to make a fuss about it. So the section "Tips and tricks" may be removed. Any comments ? Michalis 01:31, 9 Jan 2006 (CET)

You are thinking in limited terms.

Linux is only SO small. Smpeg dll is hard to get on windows for example. Why you ask? well because you have no C compiler which can compile it, and because smpeg is not readily available as .dll.

There are a few of them for windows but not all work. Same story for SDL_gfx v2.0 ofcourse that lib is optional so no problem to solve. Another point is you have one less library to distribute with your game even on *nix. SDL and friends are common but not all distroes and unices have them and most don't include them by default. It's always a good idea to have them distributed. (most non-distro-packed games do this btw)

Well, you're right, I was thinking about Unixes, not about Windows. All modern Linux distros and FreeBSD include smpeg so I just figured out that the sentence "This can be a setback since this isn't a standard library and is hard to get (CVS only afaik)." is simply wrong for Unixes. But you're right -- it may a problem on Windows (although smpeg.dll is included inside SDL_sound for Visual C sources, also gearhead includes it -- but I didn't test it). And it may be indeed troublesome to distribute smpeg.dll/so with your product when you don't use it at all and you have SDL_mixer compiled to not link to smpeg. So I'll keep the notice about smpeg, I'll just reword it. Michalis 04:09, 7 Feb 2006 (CET)

unitpath in fpc.cfg

the fpc.cfg understands wildcards, so instead of addin all unit dirs, one can try:

 -Fu<jedi-sdl-path>/JEDI-SDLv1.0/*/Pas

--Marc 15:29, 9 Feb 2006 (CET)