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.
44 questions
0
votes
1
answer
329
views
When/why doesn't pkg-config return library link-path?
I want to make use of pkg-config in my Makefile to find the link-path for libspa-0.2.
I observe that pkg-config --libs libspa-0.2 returns nothing.
For simplicity, I'll demonstrate the problem by ...
1
vote
1
answer
2k
views
libudev not found in pkg-config search path in GitHub actions ubuntu-latest environment
I'm setting up CI for a Rust application I'm developing that (indirectly) depends on the libudev-sys crate. Part of this CI means building my crate, which means also building libudev-sys.
When the ...
0
votes
1
answer
2k
views
pkg-config cannot find any libraries without manual intervention
I am not a C++ developer or typically work with Conan, CMake, or Makefiles. The first time I had heard of pkg-config was yesterday when conan started erroring on it, unable to resolve a gl package.
I ...
6
votes
3
answers
3k
views
Rustup-installed Rust on Fedora: Unable to find Libudev.pc
I'm trying to build a rust app on fedora within a rustup environment that depends on libudev. At the moment I get the error when trying to compile the app with cargo build --release:
error: failed to ...
0
votes
0
answers
70
views
So i havent upgraded my PopOS 21.04 in a while and i keep getting this error message when trying to upgrade
dpkg: error processing archive /var/cache/apt/archives/libxpm4_1%3a3.5.12-1_amd64.deb (--unpack): trying to overwrite shared '/usr/share/doc/libxpm4/changelog.Debian.gz', which is different from other ...
5
votes
1
answer
433
views
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 ...
2
votes
1
answer
2k
views
Why are the pkg-config commands in the makefile not being recognized when I run the script?
I am trying to run make for an open-source project on my Debian virtual machine but I do not understand why the commands based on pkg-config are not being recognized.
One of the commands is as follows:...
6
votes
3
answers
3k
views
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?...
2
votes
1
answer
1k
views
How to write a file PkgConfig.pc file that supports both static and shared linking
I am writing a little library as a self challenge. I plan to target Linux based systems.
I want to add a libname.pc file so as to add support for PkgConfig.
Here, is my current file:
prefix=/usr/local
...
1
vote
2
answers
2k
views
How does pkg-config work in RPM specfiles?
In some RPM specfiles, I see lines like:
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libssl)
...
I am not very familiar with pkgconfig but I understand ...
0
votes
1
answer
1k
views
pkg-config cannot find any package
I need to use latest version of pkg-config. So I build it from source with --with-internal-glib --disable-host-tool.
However, it cannot find any package without setting PKG_CONFIG_PATH. How can I ...
0
votes
1
answer
463
views
some troubles on installing deja-dup from source code
(Learning how to install programs on linux...)
deja-dup source code can be downloaded on its GitHub repo. There is a makefile con the package. Once into the folder I run:
santi@eoan:~/deja-dup$ make
...
3
votes
1
answer
3k
views
How do you specify the pkg-config path when compiling something with cmake?
I want to build ffmpeg with support for the av1 codec on CentOS 7.
I start by following the instructions here:
git clone https://aomedia.googlesource.com/aom
mkdir aom_build
cd aom_build
cmake ../aom
...
6
votes
2
answers
4k
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
1
answer
1k
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 ...