You are not logged in.
Pages: 1
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
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
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
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.
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
Because *nix is case sensitive.
Online
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
Pages: 1