You are not logged in.

#1 2020-12-17 09:26:38

Eragonfr
Member
Registered: 2020-12-17
Posts: 3

SDL2_image not found by pkgconf

I'm using SDL2 and SDL2_image for learning the C lang, and after some search about cmake(not easy to use with SDL2) I've set up a meson/ninja build system. Meson use pkgconf to found dependencies.

I've installed sdl2_image from the extra repo, but it doesn't provide the pkgconf necessary files to found the «package»

And because of that I get an error when I'm building my project, I've fixed the problem by using the subproject functionality of meson.
But it's weird that I've the files on my system but I need to re-download them in my project.

Sorry if this is not in the right place.

Offline

#2 2020-12-17 09:43:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: SDL2_image not found by pkgconf

The pkgconf file is there: /usr/lib/pkgconfig/SDL2_image.pc what exactly is your pkgconf line?

Not a pacman issue, moving to programming and scripting

Last edited by V1del (2020-12-17 09:51:06)

Offline

#3 2020-12-17 09:51:35

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: SDL2_image not found by pkgconf

pkg-config names are case sensitive, abd sdl2 uses both sdl2 and SDL2 for different packages...

pkg-config --libs sdl2 SDL2_image

You can list the installed libraries like this:

pkg-config --list-all | sort | less

Last edited by progandy (2020-12-17 09:54:40)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2020-12-17 16:08:25

Eragonfr
Member
Registered: 2020-12-17
Posts: 3

Re: SDL2_image not found by pkgconf

progandy wrote:

pkg-config names are case sensitive, and sdl2 uses both sdl2 and SDL2 for different packages...

pkg-config --libs sdl2 SDL2_image

Oh, that's why it's not found.

progandy wrote:

You can list the installed libraries like this:

pkg-config --list-all | sort | less

I was searching for sdl, and not SDL

SDL2_gfx                       SDL2_gfx - drawing and graphical effects extension for SDL
SDL2_image                     SDL2_image - image loading library for Simple DirectMedia Layer
SDL2_mixer                     SDL2_mixer - mixer library for Simple DirectMedia Layer

Thanks, it's working now.

But why is SDL2_image not equal to sdl2_image ?

Offline

#5 2020-12-17 16:10:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: SDL2_image not found by pkgconf

Because *nix is case sensitive.

Offline

#6 2020-12-17 16:19:40

Eragonfr
Member
Registered: 2020-12-17
Posts: 3

Re: SDL2_image not found by pkgconf

Scimmia wrote:

Because *nix is case sensitive.

Yes of course.

But then why sdl2 and SDL2_image and not SDL2 ant SDL2_image.
Why one is in lowercase and the second is mixed ?

Offline

Board footer

Powered by FluxBB