AmatCoder wrote:It seems that you have installed SDL2 into /usr/local.
Uninstall it and then re-install it with:
Code: Select all
$ ./configure --prefix=/usr
Configure script installs packages into /usr/local/ by default (i.e. if prefix is not set).
As pkg-config* will search for .pc files in the directories /usr/lib/pkgconfig and /usr/share/pkgconfig (on a typical system),
your sdl2.pc is not found (it was into /usr/local/lib/pkgconfig).
(*)The pkg-config program is used to retrieve information about installed libraries in the system.
I did try as you suggested, but the result is the same. Screenshot and config.log file is attached.