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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
74 views

How to install glibmm-2.68 on Ubuntu 22.04

I am trying to install GTK4/GTKMM4 for C++ on Ubuntu 22.04 but I am stuck on step 3, possibly step 2. I am following these instructions: https://terminalroot.com/how-to-install-gtkmm-4-on-ubuntu-2204/ ...
user3554851's user avatar
0 votes
1 answer
213 views

Package installs to a different path from existing packages

DPDK installs via pkg-config manager. I used these commands to build from source: git clone https://github.com/DPDK/dpdk.git cd dpdk meson setup build cd build ninja ninja install ldconfig https://...
intrigued_66's user avatar
0 votes
1 answer
317 views

Which packages install Qt5 pkg-config files?

I need Qt5 .pc pkg-config file in order to compile this application. Of course I can install the whole Qt5 dev environment using the official Qt online installer. But I wonder if I can install some ...
Mark's user avatar
  • 497
1 vote
0 answers
4k views

How to Add a New Path to pkg-config?

I've just start using GNU make because of a software package I'm trying to install. The tutorial is really good, but for some reason I'm not able to do it properly. I downloaded the files, extracted ...
Tanus Szabo's user avatar
5 votes
1 answer
4k views

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 ...
Leigh K's user avatar
  • 283
5 votes
1 answer
6k views

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 ...
Colin Frame's user avatar
3 votes
2 answers
8k views

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-...
Cornelius Roemer's user avatar
2 votes
1 answer
7k views

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 ...
Tom Yeoman's user avatar
4 votes
2 answers
3k views

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 ...
Julio Gambino's user avatar
1 vote
1 answer
509 views

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 ...
Claudio's user avatar
  • 111
2 votes
1 answer
2k views

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 ...
ngc3o34's user avatar
  • 65
0 votes
1 answer
5k views

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 ...
M.Akyuzlu's user avatar
3 votes
1 answer
5k views

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 ...
VjayalakshmiK's user avatar
3 votes
1 answer
1k views

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 ...
Jack M's user avatar
  • 1,220
2 votes
1 answer
1k views

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 ...
Riccardo Di Meo's user avatar
21 votes
4 answers
29k views

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 ...
Saurabh P Bhandari's user avatar
5 votes
1 answer
6k views

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 ...
marinnen128's user avatar
2 votes
0 answers
628 views

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 ...
AlternateSystem386's user avatar
6 votes
1 answer
9k views

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's user avatar
  • 61
1 vote
0 answers
4k views

Problem with Wayland

I had a problem with the wayland-protocol during the installataion of the Kitty terminal, the system didn´t find it, so I tried with sudo apt install libwayland-bin. I knew that this command install ...
Santi's user avatar
  • 11
12 votes
1 answer
53k views

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 --...
MystMan's user avatar
  • 163
1 vote
2 answers
8k views

Package libprotobuf was not found in the pkg-config search path

I am installing protobuf-c 1.3.2 after ./configure it shows protobuf-c 1.3.2 CC: gcc CFLAGS: -g -O2 CXX: g++ -std=...
Lohit raj's user avatar
1 vote
1 answer
5k views

Can't compile surf, gcr-3.pc not found, glib.h not found

I'm trying to compile surf browser from source with little success. It looks like I miss gcr-3.pc. edit : I'm on Ubuntu 19.04 c99 `pkg-config --cflags x11` `pkg-config --cflags gtk+-3.0 gcr-3 ...
Alunduyn's user avatar
3 votes
1 answer
2k views

Strange GLib error in pkg-config result

Ubuntu 18.04 fresh installed. $ pkg-config --list-all 2>&1 | grep -A2 -B2 GLib (pkg-config:31662): GLib-CRITICAL **: 06:08:21.279: g_string_insert_len: assertion 'len == 0 || val != NULL' ...
Wang's user avatar
  • 615
0 votes
1 answer
3k views

openssl and PKG_CONFIG_PATH problems while configuring mongolite package from R

The package "mongolite" won't install itself when trying in RStudio. So I downloaded it from https://cran.r-project.org/web/packages/mongolite/, extracted it in the folder which manages the R packages ...
palmtreesnative's user avatar
3 votes
2 answers
3k views

Unable to install geojson package for R

I have Ubuntu 16.04 and R 3.4.3. When I run install.packages("geojson", dep=TRUE) in R, I get the following error: dependency ‘protolite’ is not available for package ‘geojson’ Therefore I run ...
Nicu Righeriu's user avatar
1 vote
3 answers
23k views

ImportError: No module named pkg_resources

I am trying to install tensorflow-gpu for python 3. when I run pip3: sudo -H apt-get pip3 install tensorflow-gpu I get: Traceback (most recent call last:) File "/usr/local/bin/pip3", line 5, in &...
Kudzayi Chiwoko's user avatar
0 votes
1 answer
685 views

Problem with getting libconfig's cflags

I'm trying to compile a C project that uses libconfig. I've installed libconfig8-dev package and I'm trying to retrieve the c flags required to compile the project. Running pkg-config --libs libconfig ...
PoVa's user avatar
  • 103
2 votes
2 answers
4k views

what is the value for JAVA_HOME?

What is the correct value for JAVA_HOME? thufir@doge:~$ thufir@doge:~$ whereis java java: /usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz thufir@doge:~$ thufir@doge:~$ which java /usr/...
Thufir's user avatar
  • 4,501
0 votes
1 answer
993 views

Syntax to declare the JAVA_HOME variable in /etc/environment?

Where and how does the variable JAVA_HOME go? What, specifically, should the environment file contents be to correctly set JAVA_HOME alongside PATH? current environment: thufir@doge:~$ thufir@...
Thufir's user avatar
  • 4,501
1 vote
2 answers
4k views

When I open a terminal, before any commands, I see "PKG_CONFIG : command not found"

When I open my terminal window I see this string PKG_CONFIG: command not found Why does it appears? It appears automatically right after I open the terminal window Here is the output of cat ~/....
Moe's user avatar
  • 117
1 vote
0 answers
7k views

How do I tell c++ where opencv2/opencv.hpp is?

Note: this is in the context of installing cafe. At the moment I have openCV installed at: /home/myName/Documents/my folder/opencv/ However C++ can't find it here, as demonstrated by the fact ...
dimpol's user avatar
  • 499
-1 votes
1 answer
6k views

Installing glib-2.50.1: No package 'libpcre' founbd [duplicate]

[UPDATE] As per fkraiem's suggestion below, about the rabbithole (indeed, it does feel like that!), this is the first problem I encounter, and the reason I'm trying to install glib et al. After ...
lithic's user avatar
  • 355
1 vote
1 answer
1k views

cpan installer fails with “Cannot find pkg-config command.”

I am setting up a new Ubuntu server (Ubuntu 16.04.1 LTS (Xenial Xerus)), and I want to install everything that I had installed on my previous server with Ubuntu 14.04. Among those the cpan module Text:...
Hubert Schölnast's user avatar
9 votes
1 answer
1k views

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-...
Ronald's user avatar
  • 105
1 vote
1 answer
6k views

E: Package 'pkg-config' has no installation candidate [closed]

I am on Ubuntu 14.10 and I try to install new mongodb driver, but I have this error: configure: error: Cannot find OpenSSL's libraries ERROR: `/tmp/pear/temp/mongodb/configure' failed I find that i ...
OstMil's user avatar
  • 113
1 vote
1 answer
1k views

compile error: library is installed (apt-cache policy shows it) but pkg-config does not find it

I am sorry, I am not experienced with gcc and installing packages from source, and can't fix my problem: I am trying to install ncmpcpp from source (github) on Ubuntu 14.04 (the reason is that ...
PlasmaBinturong's user avatar
36 votes
3 answers
126k views

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?
Ananthu r nath's user avatar
2 votes
1 answer
1k views

How can I install IDL 8.4 from .pkg installation file on Ubuntu?

I would like to install the IDL 8.4 on my Ubuntu 14.04... The installation requires starting the Install_IDLENVI.pkg installation app. Everything I have tried so far following various advices on ...
Marina Skender's user avatar
2 votes
0 answers
805 views

Resolving pkg-config to packages

I'm trying to build something from source, and the configure tells me something like this: checking for foo... Package foo was not found in the pkg-config search path. So I have to go and install ...
Ashley Yakeley's user avatar
2 votes
1 answer
4k views

"pkg-config --modversion glib-2.0" reports older version

I have Ubuntu 14.04 32 bit. I am trying to compile an application from source code. It gives me an error message during linking in make process though ./autogen.sh and ./configure passed without ...
kenn's user avatar
  • 5,094
0 votes
2 answers
913 views

infinity plugin audacious

Hey guys I'm quite new to ubuntu so sorry for asking newbi questions but: I found this interessting visualization plug-in for audacious (http://sourceforge.net/projects/infinity-plugin/) but I have no ...
sgeto's user avatar
  • 81
1 vote
1 answer
4k views

Install new version iw [closed]

Trying to install a new version of iw. After extracting, i run the "make" command. /bin/sh/: 1: pkg-config: not found Can not found any development files for libnl I have installed libnl-3-200 ...
MR.ABC's user avatar
  • 111
0 votes
1 answer
4k views

Error while compiling

I need to compile a simple display image code in opencv on Ubuntu Linux platform but I am getting some errors as follows: gcc: error: ‘pkg-config: No such file or directory gcc: error: opencv‘: No ...
user186851's user avatar
2 votes
0 answers
2k views

Pkg-config missing many pc files

I have been trying to compile gargoyle and keep getting the fallowing error. Package fontconfig was not found in the pkg-config search path. Perhaps you should add the directory containing `...
Ava's user avatar
  • 771
1 vote
1 answer
514 views

How do I add QtDeclarative to the pkg-config list

I installed today the libqt5 and QtQuick development stacks. In trying to also install the hsqml packages for Haskell, hsqml reports that QtDeclarative is not listed in pkg-config. However, I have ...
Savanni D'Gerinel's user avatar
6 votes
1 answer
20k views

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: ...
Draymire's user avatar
136 votes
9 answers
556k views

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's user avatar
  • 1,549
4 votes
2 answers
4k views

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 ...
Hello's user avatar
  • 63
1 vote
1 answer
4k views

libnotify, PKG_CONFIG_PATH

I am installing spidermonkey on Ubuntu 11.10. When running ./configure I receive a dependency error that libnotify >= 0.4 is not met. Located the package in Ubuntu as gir1.2-notify-0.7 So then I ...
sayth's user avatar
  • 1,224