Questions tagged [pkg-config]

pkg-config is computer software that provides a unified interface for querying installed libraries for the purpose of compiling software from its source code.

479 questions
10
votes
2 answers

Building GLFW3 Application with CMAKE - GLFW_LIBRARIES doesnt set

I'm attempting to build a small project using glfw3 but no matter what I do I can't get pkgconfig to set GLFW_LIBRARIES. Here is my CMakeList.txt cmake_minimum_required(VERSION 3.3) project(LearnGLSL) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}…
Thomas
  • 201
  • 1
  • 3
  • 12
9
votes
2 answers

pkg-config fails to find package under sysroot directory

Can anyone please tell me why this might fail: afeder@ubuntu:~/android/toolchain/sysroot$ ls…
Anders Feder
  • 595
  • 2
  • 5
  • 18
9
votes
4 answers

pkg-config: platform-neutral way to find out where to install my .pc file?

How do I know where to install my .pc file? These files are put in different places on different operating systems. The goal is to be able to use something like $(INSTALL) mylib.pc $$(pkg-config --pcdir) in the install target. I thought…
just somebody
  • 18,602
  • 6
  • 51
  • 60
9
votes
1 answer

Trying to use pkg-config but it not being a registered command

Ok so I've got my whole Go development environment up under Windows 8, also with MinGW. I'm using the LiteIde. C:/Go/bin/go.exe build [C:/Users/Alyx/Go/Hi] pkg-config --cflags sdl exec: "pkg-config": executable file not found in %PATH% Error:…
Alyx
  • 93
  • 1
  • 1
  • 3
8
votes
1 answer

How do I supply a C library to stack on NixOS?

I have a stack-based project that depends on a couple C libraries. One of these C libraries, zlib, is available from a native NixOS package and I can put into the nix section of stack.yaml: nix: enable: true packages: - "zlib" The other is…
Jean-Paul Calderone
  • 47,755
  • 6
  • 94
  • 122
8
votes
1 answer

pkg-config: best practice for setting -rpath?

Are there any best practices to set -rpath or libtool's -R based on a pkg-config output? Do I have to resort to a sed trick?
nodakai
  • 7,773
  • 3
  • 30
  • 60
8
votes
1 answer

Installing pkg-config files to proper path on CentOS with automake

I have a couple projects I maintain that are built using automake (let's call them lib1 and lib2). lib2 is dependent on lib1 as a library and I'm having some issues with the pkg-config defaults on CentOS. Ideally, I'd like users to not have to set…
Bill Brasky
  • 2,614
  • 2
  • 19
  • 20
8
votes
1 answer

Adding /usr/local/bin (homebrew) to QtCreator search path for pkg-config on Mac OSX

Setup Using Qt Creator on Mac OSX mountain lion. Installed packages in /usr/local using homebrew. /usr/local/bin/pkg-config exists. Want to use pkgconfig through the project file - QT_CONFIG -= no-pkg-config CONFIG += link_pkgconfig PKGCONFIG +=…
Spundun
  • 3,936
  • 2
  • 23
  • 36
8
votes
1 answer

./configure && make install failed

Good Morning While i'm installing RabbitMQ libraries, I found a problem: autoreconf -i && ./configure && make && sudo make install But ./configure stop at this position: checking for gcc option to accept ISO C99... -std=gnu99 ./configure: line…
Osin
  • 485
  • 1
  • 4
  • 12
7
votes
1 answer

pkg-config doesn't work on Cygwin

I try to compile a program (OpenFP) using cygwin. The program depends on a package FFTW3 which I've compiled and installed succesfully. However when I launch ./configure for the main program I get an error: No package 'fftw3' found configure:6138:…
Andrey Sboev
  • 7,454
  • 1
  • 20
  • 37
7
votes
4 answers

Error build Rust for linux in macos - Openssl

Trying to compile for linux from a mac throws this error, I have openssl and pkg-config installed from brew. And in the file ~/.cargo/config I have this configuration. [target.x86_64-unknown-linux-musl] linker =…
Orelvis15
  • 306
  • 4
  • 11
7
votes
2 answers

How to get pkg-config to use PKG_CONFIG_PATH?

I've written a small library and I'm trying to set it up to be usable with pkg-config, for those in my organization who might need to make use of it later. So my installer places a .pc file in /usr/local/lib/pkgconfig, and I've recently discovered…
Chris Robison
  • 153
  • 1
  • 1
  • 8
7
votes
1 answer

Compiling C program with dbus header files

I'm trying to compile a C program, with these headers: http://pastebin.com/SppCXb0U , on Ubuntu. At first I didn't have any luck at all, but after reading about pkg-config I crafted this line: gcc `pkg-config --cflags --libs dbus-1` `pkg-config…
Martin Hansen
  • 571
  • 4
  • 8
  • 14
7
votes
2 answers

how to map pkg-config names to yum/apt-get

Lots of makefiles use pkg-config but the names don't relate to package managers (e.g. yum / apt). How to map pkg-config names to them? is there a trick? Example: if I do yum searchName -- look through the name and approximate to pkg-config's…
resultsway
  • 12,299
  • 7
  • 36
  • 43
7
votes
2 answers

Portably include GLib headers in autoconf/automake

I need to include the GLib headers for a project that is built with an autoconf-based system for portability. How can I safely import the GLib headers in a portable manner? I know about pkg-config, but that is not entirely portable (since some…
alternative
  • 12,703
  • 5
  • 41
  • 41
1 2
3
31 32