Questions tagged [pkg-config]

For questions about pkg-config, a helper tool used when compiling applications and libraries; it facilitates the use of correct/specified compiler options.

pkg-config is a helper tool used when compiling programs, to locate required tools and libraries and provide suitable command line options.

Ask here if you're compiling a program you didn't write in order to install it on your machine. If you're writing compilation scripts for your own program, ask on Stack Overflow.

41 questions
13
votes
1 answer

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 (glib-2.0 > 2.36.0) were not met: No package `glib-2.0`…
erthalion
  • 303
  • 1
  • 3
  • 11
9
votes
1 answer

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 MD5 sums checked Found pkg-config cflags and…
rlbc
  • 91
  • 1
  • 4
7
votes
2 answers

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 when and how is it done?
user1561108
  • 1,041
  • 2
  • 14
  • 26
7
votes
2 answers

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/[email protected]/msg00018.html I first thought as an end user this would not influence me and that a tool like…
Peter Smit
  • 1,154
  • 4
  • 18
  • 32
7
votes
2 answers

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 GSL like this: wget…
gideon
  • 353
  • 3
  • 6
  • 17
6
votes
1 answer

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 atk 1.9.0 library I get the following…
selvin
  • 251
  • 1
  • 2
  • 9
6
votes
4 answers

"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' found Consider adjusting the PKG_CONFIG_PATH…
StarNamer
  • 3,112
  • 1
  • 22
  • 33
6
votes
1 answer

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 problems while trying to compile applications. It…
kenn
  • 733
  • 2
  • 11
  • 22
5
votes
1 answer

How to get the build procedure for a Debian package?

I want to build a version of some software that is more recent than the one that is currently available as a stable release Debian package. To do this, however, other than using a more recent version of the source code, I would like to follow, as…
kjo
  • 14,779
  • 25
  • 69
  • 109
5
votes
2 answers

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 searches for .pc files in /usr/lib/pkginfo,…
rur2641
  • 389
  • 2
  • 4
  • 10
4
votes
3 answers

How do I build PKGCONF and LIBFFI and subsequently Python3.9 with ctypes support without sudo and write access to /usr/local?

How do I properly configure pkgconf and libffi to allow the python3 build process to correctly use my libffi version at every step of the build process, in order to import the _ctypes module correctly? Which piece am I missing here? Some…
szofar
  • 43
  • 6
4
votes
1 answer

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 a RHEL 6.8 machine: bash-4.1$ cat /etc/issue Red…
bgoodr
  • 197
  • 2
  • 8
3
votes
2 answers

/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 locations via an include directive pointing to…
user1561108
  • 1,041
  • 2
  • 14
  • 26
3
votes
1 answer

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/CMakeFiles/cefclient.dir/binding_test.cpp.o In file…
netbrain
  • 2,125
  • 2
  • 15
  • 12
3
votes
1 answer

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 cairo > -lcairo How do I find the reverse (i.e. link…
ramgorur
  • 431
  • 2
  • 4
  • 13
1
2 3