Code::Blocks does not find the libraries of pkg_config
I had an annoying problem with my installation of Code::Blocks. It did
not recognize all the libraries installed on my system, which were
otherwise available when I ran pkg-config --list-all
. On
another computer, I had noticed that the Library tab of a project’s
properties listed all those libs, available through pkg_config. But on
my computer, the list was completely empty (not even an “available
through pgk_config”). I had tried several things (reinstalling the
package, making new projects, etc) without any success.
So I asked some nice people for help. And found the problem. In short :
Code::Blocks doesn’t show any library if pkg-config --list-all
ends
with an error.
All I had to do was therefore to remove the packages that generated this errors, since those packages really weren’t important at all in my case (clearly, a better solution would be to solve the problems, but that’s not what this post is about).
More details in the codeblocks.org forum thread.