Ask Question

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.

48 questions

5votes1answer1kviews

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 ... user avatar Leigh K

  • 209
4votes1answer1kviews

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 ... user avatar Colin Frame

  • 41
2votes1answer2kviews

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-... user avatar Cornelius Roemer

  • 143
1vote1answer2kviews

Package gtk+-3.0 was not found in the pkg-config search path

I'm running Ubuntu 18.04.4 LTS When running pkg-config --cflags gtk+-3.0 I get the following error - Package gtk+-3.0 was not found in the pkg-config search path. Perhaps you should add the directory ... user avatar Tom Yeoman

  • 11
4votes2answers2kviews

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 ... user avatar Julio Gambino

  • 71
1vote1answer249views

Configure requires a working autoconf/pkg-config

I need to update libdmtx and dmtx-utils on Ubuntu 18.04. Both these packages aren't installed through apt. I compiled and installed libdmtx with prefix /usr/local/stow/libdmtx-0.7.7 and created all ... user avatar Claudio

  • 111
2votes1answer679views

pkg-config. Missing library's metadata

I'm building ffmpeg enabling over 40 libraries. Often a library is installed but metadata .pc file is missing. Usually this could be solved by installing library-dev package but is there a way to just ... user avatar ngc3o34

  • 65
0votes1answer2kviews

opencv was not found in the pkg-config

Using cmake and cuda i create opencv , the file was saved in /usr/local/lib/python3.8/dist-packages/cv2/python-3.8/cv2.so now i'm trying to install darknet but i got this error Package opencv was not ... user avatar M.Akyuzlu

  • 1
2votes1answer3kviews

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 ... user avatar VjayalakshmiK

  • 21
3votes1answer591views

Why can pkg-config not find gsettings-desktop-schemas?

The package gsettings-desktop-schemas is installed on my system, but pkg-config can't find it: $ pkg-config --libs --cflags gsettings-desktop-schemas Package gsettings-desktop-schemas was not found in ... user avatar Jack M

  • 851
2votes1answer730views

Python 3 shared libraries and pkg-config on Ubuntu 20.04 LTS

I have just upgraded to Ubuntu 20.04 LTS and while the pkg-config query pkg-config --cflags python3 returns sensible values for C compilation, the query pkg-config --libs python3 returns nothing. I ... user avatar Riccardo Di Meo

  • 21
13votes3answers18kviews

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 ... user avatar Saurabh P Bhandari

  • 531
5votes1answer4kviews

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 ... user avatar marinnen128

  • 105
2votes0answers523views

Can't find Gtk header file

I've searched this forum and the internet, but still can't find a solution. I want to compile a simple Gtk example program. I use the recommended pkg-config in the compile instruction. But pkg-config ... user avatar AlternateSystem386

  • 33
6votes1answer5kviews

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? user avatar sclaes

  • 61

153050per page

1 2 3 4