Questions tagged [pkg-config]

The pkg-config program is used to retrieve information about installed libraries in the system. It is typically used to compile and link against one or more libraries.

54 questions
147
votes
9 answers

PKG_CONFIG_PATH environment variable

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. What does this mean ?
MKJ
  • 1,679
42
votes
3 answers

CMAKE Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

I have been building freerpd client for Eclipse in Ubuntu 14.04 but an error is popping up : Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) when I use CMake 2.8. How can I get rid of it?
27
votes
5 answers

Unable to compile FFmpeg on Ubuntu 20.04

I am following this compilation guide for FFmpeg. After compiling all the required dependencies, I get the following error in the last section. ERROR: gnutls not found using pkg-config This error occurs when I run the configure command as below…
24
votes
1 answer

Configure error: could not find the zlib library

I am trying to install lalsuite on ubuntu according to the instructions here: https://pycbc.org/pycbc/latest/html/install_lalsuite.html Everything went smoothly until I ran ./00boot ./configure --prefix=${VIRTUAL_ENV}/opt/lalsuite…
12
votes
1 answer

OpenSSL installed but no openssl.pc (needed by pkg-config)

Can .pc files be generated if they aren't installed? I have installed OpenSSL but there is no 'openssl.pc' on my computer. Any suggestions?
sclaes
  • 121
10
votes
1 answer

Another (unsolvable) "old glib" problem

Im sure veterans know the drill (as this question seems to have been asked a billion times), but I am getting this error while installing a piece of software ( ./configure )from source: *** 'pkg-config --modversion glib-2.0' returned 2.48.1, but…
Ronald
  • 115
6
votes
1 answer

Pkg-Config Error (No such file or directory)

if i try and compile the tutorial code for GTK3 with the command gcc simple.c -o simple 'pkg-config --libs --cflags gtk+-3.0' it gives off the error gcc: error: pkg-config --libs --cflag gtk+-3.0: No such file or directory However if i run the…
6
votes
1 answer

How to compile a GTK4 application in Ubuntu 21.10?

I am trying to compile a C GUI application using GTK4. I was previously told here that both Ubuntu 21.04 and 21.10 would have both GTK3 and GTK4. However, when I installed Ubuntu 21.04 only GTK3 was present. I then did a dist-upgrade to 21.10 and…
Leigh K
  • 363
6
votes
1 answer

pkg-config indicates libxml2 not found

I've installed libxml2-dev in my Ubuntu 20.04 terminal (under WSL), as it's a requirement for pgModeler. I used sudo apt-get install libxml2-dev and it seemed to install ok. The pgModeler instruction includes "To check if the library is correctly…
5
votes
2 answers

How to install package xorg-server

I'm following this recipe to build xf86-input-libinput from source with a patch applied. The command ./configure --prefix=/usr gives me an error that I haven't been able to resolve: checking for xorg-server >= 1.10 xproto inputproto >= 2.2...…
5
votes
2 answers

deepin-anything-dkms error [20.04]

2 days ago I was trying to install DDE (Deepin Desktop Environment). It didn't finish, now everytime I try to install something it gives me this error. What's happening and what can I do? Edit: It also gives me the following message Done. Loading…
5
votes
1 answer

Can't install RMagick 4.0.0. Can't find ImageMagick with pkg-config on Ubuntu 16.04

Trying to install pdfbeads on Ubuntu LTS 16.04 with the command $ gem install pdfbeads I'm getting the error message "ERROR: Can't install RMagick 4.0.0. Can't find ImageMagick with pkg-config" Below between the separators is the corresponding…
4
votes
2 answers

Why does "pkg-config" print only a blank space with the "--cflags" option?

I installed libcurl using :sudo apt-get install libcurl4-openssl-dev. When I try to compile my program I read that we have to pass where libcurl is located to the GCC compiler(although for me its located at /usr/include). Therefore according to…
Hello
  • 63
4
votes
1 answer

CMake error: Could NOT find GSL (missing: GSL_INCLUDE_DIR)

I am installing a simulator in Ubuntu in 18.04 and I get the following error during the execution of 'cmake ..' command. The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Check for working C compiler:…
3
votes
2 answers

Error when running ./configure on Ubiquity source

I have added a patch to the Ubiquity source and am attempting to build and install the package to test it, however I get the following error when I execute ./configure, checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least…
user2405
1
2 3 4