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
1 vote
0 answers
47 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 ...
user avatar
5 votes
1 answer
2k 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 ...
user avatar
  • 231
4 votes
1 answer
2k 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 ...
user avatar
3 votes
2 answers
2k 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-...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
4 votes
2 answers
2k 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 ...
user avatar
1 vote
1 answer
268 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 ...
user avatar
  • 111
2 votes
1 answer
752 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 ...
user avatar
  • 65
0 votes
1 answer
2k 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 ...
user avatar
2 votes
1 answer
3k 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 ...
user avatar
3 votes
1 answer
646 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 ...
user avatar
  • 851
2 votes
1 answer
786 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 ...
user avatar
15 votes
3 answers
19k 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 ...
user avatar
5 votes
1 answer
4k 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 ...
user avatar
2 votes
0 answers
540 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 ...
user avatar
6 votes
1 answer
6k 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?
user avatar
  • 61
1 vote
0 answers
2k 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 ...
user avatar
  • 11
7 votes
1 answer
32k 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 --...
user avatar
  • 113
1 vote
2 answers
6k 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=...
user avatar
1 vote
1 answer
4k 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 ...
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' ...
user avatar
  • 391
0 votes
1 answer
2k 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 ...
user avatar
  • 101
3 votes
2 answers
2k 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 ...
user avatar
1 vote
3 answers
19k 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 &...
user avatar
0 votes
1 answer
591 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 ...
user avatar
  • 103
2 votes
1 answer
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/...
user avatar
  • 4,353
0 votes
1 answer
938 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@...
user avatar
  • 4,353
1 vote
2 answers
3k 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 ~/....
user avatar
  • 117
1 vote
0 answers
6k 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 ...
user avatar
  • 459
-1 votes
1 answer
5k 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 ...
user avatar
  • 355
1 vote
1 answer
896 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:...
user avatar
8 votes
1 answer
939 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-...
user avatar
  • 95
0 votes
1 answer
5k 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 ...
user avatar
  • 103
1 vote
1 answer
978 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 ...
user avatar
27 votes
3 answers
88k 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?
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 ...
user avatar
2 votes
0 answers
694 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 ...
user avatar
1 vote
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 ...
user avatar
  • 4,864
0 votes
2 answers
849 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 ...
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 ...
user avatar
  • 111
0 votes
1 answer
3k 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 ...
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 `...
user avatar
  • 731
1 vote
1 answer
499 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 ...
user avatar
6 votes
1 answer
18k 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: ...
user avatar
122 votes
9 answers
483k 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 ?
user avatar
  • 1,409
4 votes
2 answers
3k 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 ...
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 ...
user avatar
  • 1,214
0 votes
1 answer
107 views

vtg-plugin dependencies not met

I am trying to compile the vtg-plugin from source however I am getting the error "vtg-dependencies not met" which complains about libpeas and gedit. The version of gedit it is asking for is 2.91.0, ...
user avatar
3 votes
2 answers
3k views

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