Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pkg-config]

[pkg-config](http://www.freedesktop.org/wiki/Software/pkg-config/) is a helper tool used when compiling applications and libraries; facilitating the use of correct/specified compiler options

3
votes
2answers
260 views

Not clear where pkg-config is finding information or how .pc files are named

I followed a tutorial on GTK which used this command to generate the build flags: $ pkg-config --cflags --libs gtk+-3.0 This outputs coherent flags. From research, I have found that pkg-config ...
0
votes
1answer
272 views

Two OpenCV versions: update to one broke the other, though they should be separate

My Linux distribution (Antergos) installed the latest version of OpenCV from the repositories (version 3.14.1) about a week ago. For compatibility, I have OpenCV 2 (version 2.4.13.5) installed in a ...
0
votes
1answer
174 views

why are .pc files not listed in one place

I am on Debian buster. I was reading the manpage of pkg-config and found that .pc files are and can be listed in many places . From the manpage - pkg-config retrieves information about ...
0
votes
0answers
68 views

dbus-sharp-glib-2.0 on Solus

I'm trying to compile Tomboy notes from GitHub on Solus 3.26. I cloned the repo and do ./configure and get: configure: error: Package requirements (dbus-sharp-2.0 >= 0.4 dbus-sharp-glib-2.0 >= ...
0
votes
0answers
147 views

How do I recursively download pkg-config dependencies on Ubuntu 17.10?

As some of you might know, the development packages in Debian-based distros do not come with a .pc file for use with pkg-config. This can make building software that looks for those files really ...
0
votes
2answers
91 views

header not found even though `PKG_CONFIG_PATH` is set correctly

I've installed a library to ~/.local. The environment variables are set as shown below: $ echo $LD_LIBRARY_PATH /home/saga//.local/lib $ echo $PKG_CONFIG_PATH /home/saga//.local/lib/pkgconfig There'...
-1
votes
1answer
236 views

Is PATH a special variable in zsh? [closed]

The first two lines of my .zprofile are: export PATH=<value> export PKG_CONFIG_PATH=<value> The value of PATH is set correctly, but the value of second variable is empty. Is PATH a ...
3
votes
1answer
2k views

Why is pkg-config --cflags openssl returning nothing on RHEL 6.8?

I'm running on a RHEL 6.8 Linux machine. I am seeking to build various packages from source tarballs/git-repos/whatefer without changing the system configuration (under root or sudo). I'm running on ...
0
votes
1answer
228 views

pkg-config doesn't recognizing any options for some reason

I'd like to use pkg-config to change the include dirs for a package, but it looks like it doesn't accept any options. After issuing the following command: pkg-config --cflags ImageMagick -fopenmp -...
0
votes
1answer
567 views

pkg-config flags are relative

I'm trying to compile bmdtools with a custom built version of libav 11 which I compiled under ~/libav-11.8/build using g++ 4.8.4 under Ubuntu 14.04. bmd uses pkg-config to build g++ flags, and since ...
1
vote
1answer
58 views

How to know whether command is available in my linux distribution

We are shipping some drivers for some linux for our usb products. And in our driver code to make it distribution independent we have to dynamically get the distribution name and find whether there are ...
1
vote
1answer
49 views

How to use MonoDevelop pc files with UNIX convention relative pathnames?

On my Ubuntu Linux 16.04 Lenovo desktop , I am using MonoDevelop 5.10 with the Xamarin ASP.NET plugin for development and production environments. I am using *.pc files with Unix convention full ...
1
vote
1answer
263 views

Command substitution with pkg-config in Fish

Fish's command substitution is supposed to be the equivalent of Bash's $() yet this simple example fails: g++ -std=c++14 -Wall -Wextra -pedantic -g (pkg-config --cflags sdl2) \ test.cpp (pkg-...
2
votes
1answer
2k views

pkg-config output not working with makefile?

I'm trying to run the makefile, shown in this repo, which is a simple Wayland client. But when I run make, it seems that the output of $(WAYLAND) is blank, and it fails to compile due to not being ...
4
votes
1answer
5k views

Installing openssl on R

I'm trying to install openssl inside R, using install.packages('openssl'), but I'm getting an error message: * installing *source* package ‘openssl’ ... ** package ‘openssl’ successfully unpacked and ...
3
votes
1answer
668 views

Trouble linking to gtk/gtk.h even though it's installed

I am trying to build CEF (chromiumembedded) on debian jessie ########## Linking CXX static library libcef_dll_wrapper.a [ 81%] Built target libcef_dll_wrapper [ 81%] Building CXX object cefclient/...
4
votes
3answers
4k views

“configure: error: Package requirements (blkid) were not met”

I'm trying to build btrfs-progs from sources, but when I run ./configure I get the error: checking for BLKID... no configure: error: Package requirements (blkid) were not met: No package 'blkid' ...
3
votes
2answers
8k views

Gentoo: No package `glib-2.0` found

I have a strange problem when trying to install dev-lib/gobject-introspection: >>> Emerging (1 of 9) dev-libs/gobject-introspection-1.42.0 ...... configure: error: Package requirements (...
0
votes
1answer
364 views

How to list softwares installed in my system

As far as I studied, pkg-config command returns the info about all the libraries installed in my Linux system. Can anyone specify me from where does it get these details? Also, where will I get the ...
6
votes
1answer
5k views

How can I exclude some library paths listed in “ pkg-config --variable pc_path pkg-config”?

I have Ubuntu 14.04 upgraded from 12.04 making dist-upgrades. I did many manual installations such as ffmpeg, libglib and so on, in the past. I have a nice custom distro now, it works well but I have ...
0
votes
1answer
278 views

pkg-config --libs --cflags not return anything for libgoogle-perftools-dev

user2702245 said pkg-config --clibs --flags <package> is good enough to provide linker and include information. I tried to find out such information about libgoogle-perftools-dev I ...
3
votes
1answer
172 views

Reverse pkg-config?

Suppose using the pkg-config I can find which link flags are needed add a library to my code, suppose if I need cairo libraries to add, I can find the appropriate -l flag by > pkg-config --libs ...
3
votes
1answer
327 views

Should I install ibus-1.0 to build Webdriver?

In the process of building one library (Webdriver) I got the following error: Package ibus-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `ibus-1.0....
1
vote
1answer
2k views

FreeBSD Ports Broken — Python Issue? Portmaster -a

Upgraded FreeBSD from 8.2 >> 8.4 >> 10.0-RELEASE today. In the process, I believe I have mangled my ports tree quite badly and am having issues upgrading/reinstalling ports (as the upgrade asks me to ...
5
votes
2answers
7k views

something is terribly wrong with pkg-config

I've been having a harrowing time lately just trying to get several C programs compiled because I can't find where the libraries are located and pkg-config seems to be out of order. I installed GNU ...
3
votes
3answers
2k views

Shortening build command

Is there any way I can shorten this openCV build command? g++ file.cpp -o newFileName `pkg-config --cflags --libs opencv` I tried adding: -o newFileName `pkg-config --cflags --libs opencv` to an ...
2
votes
2answers
3k views

Is there a convention for adding .pc files for pkg-config?

I installed a library via apt but it added no .pc file to the pkg-config dir. When I built another manually it got added. Is there a convention for libs automatically creating a .pc file and if so ...
3
votes
2answers
4k views

/etc/ld.so.conf doesn't contain /usr/lib

I am using pkg-config to help supply the correct libs during c++ compilation. As I understand it, it searches in directories supplied by /etc/ld.so.conf. My ld.so.conf references the following lib ...
2
votes
1answer
2k views

./configure, syntax error: unexpected token (lighttpd)

I want to build a modified version of lighttpd. I follow this tutorial: Downloading and building the H264 Streaming Module for Lighttpd (version 2) This is what I've done so far: apt get install ...
2
votes
2answers
3k views

sipe (plugin pidgin-gaim) unable to find libpurple headers

I downloaded : pidgin 2.10.6 and sipe 1.14.1 from sourceforge. I install pidgin with the following command in the folder of pidgin (2.10.6): ./configure --prefix=/home/tony/soft/pidgin_sipe --...
7
votes
2answers
7k views

How to deal with FreeBSD's move to pkgconf?

It seems that the FreeBSD ports tree is busy transitioning from pkg-config to pkgconf. http://www.mail-archive.com/freebsd-ports-announce@freebsd.org/msg00018.html I first thought as an end user this ...
0
votes
3answers
663 views

Is there a faster alternative to pkg-config?

Our build system uses pkg-config to build the software, but the linking can take very long (sometimes up to 20 minutes). We identified pkg-config as the guilty tool. So, is there a faster alternative ...
6
votes
1answer
37k views

how to make PKG_CONFIG_PATH variable to refer an installed library?

I am in the process of installing the required libraries for FireFox 3.6 on a Redhat Linux Nash 4.x system. I already have successfully installed the glib2.12.0 library, but When I ./configure the ...