Hello folks,

I was trying to follow the SDL 2.0 tutorial at http://www.freepascal-meets-sdl.net/ . Unfortunately, this tutorial does not provide any information on how to install the sdl libraries on a linux (namely Kubuntu 14.04), so I tried my best to do it myself.

I installed:
- fpc 2.6.2
- SDL 2.0 via "apt-get install libsdl2*"
- Tim Blume's SDL2 units (downloaded the archive, extracted it to /usr/lib/fpc/2.6.2/units/x86_64-linux/sdl2.0)

Now when trying to compile the demo program from chapter 4 (http://www.freepascal-meets-sdl.net/...l/kap4_v2.html, nothing special), I keep getting

boonami@boonami-desktop:~/src/sdltest$ sudo fpc ./test.pas
Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling ./test.pas
Linking test
/usr/bin/ld.bfd: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld.bfd: cannot find -lSDL_image-2
test.pas(33,1) Error: Error while linking
test.pas(33,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)
After about half an hour I am ashamed to confess that my google-fu has failed me as well.
The solution for most people was to install the corresponding -dev libraries, I already have that one.

Can somebody help me out?

PS: I was unsure whether to post this to the SDL section or the fpc one, so I decided by coin toss.