I've been following the instructions on this page:
http://www.freepascal-meets-sdl.net/chapter-2-installation-configuration-linux-version/I downloaded and installed the latest fpc/source/lazarus .debs. SDL2 development files are already installed. My paths are identical to that shown, but when I try to compile the most basic SDL program I get this error:
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.0 [2015/12/05] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling project1.lpr
/home/paul/pascal/project1.lpr(4,6) Fatal: (10022) Can't find unit SDL2 used by project1
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
I didn't need to create the symlinks to the SDL libraries as they already exist on my system (see attachment).
I can compile a simple console program in Lazarus so no issues there.
I've re-started my system (just in case!) but to no effect.
As a long shot, I've tried putting the path to the libraries in the project options->compiler options->paths->Libraries (-Fl): field (no idea if that's what it's for!) but that doesn't work either.
Any help appreciated
Paul.