3

I compiled the SDL 2 libraries as described here What is the general procedure to install development libraries in Ubuntu?

What I would like to know, is where are these libraries actually located after compiling/installation?

Jason Mills
  • 141
  • 1
  • 6

2 Answers2

1

The author of this question answered their own question in an edit:

SDL can be found in /usr/local/lib instead of /usr/lib, which is where I was pointed to after online research.

Eliah Kagan
  • 116,445
  • 54
  • 318
  • 493
  • No they are not there, at least not on my system (Ubuntu) ... I can compile with g++ and -lSDL2 but cannot find the SDL library files (not the headers which are in /usr/include) , any idea? – SheppLogan Jan 11 '22 at 22:33
0

I've installed libsdl2-dev on Ubuntu 20.04 LTS.

run this command to search for SDL2 libraries:

find /usr/lib -name SDL2

reveals:

/usr/lib/x86_64-linux-gnu/cmake/SDL2