pkg-config

Why freeglut3-dev doesn't provide .pc file for pkg-config?

余生长醉 提交于 2019-12-10 15:55:50
问题 Why latest Debian's Sid ( Sid , which is after Debian Buster 10.0 ) testing repositories doesn't contain .pc file for pkg-config? Result of dpkg -L freeglut3-dev : /. /usr /usr/include /usr/include/GL /usr/include/GL/glut.h /usr/include/GL/freeglut_std.h /usr/include/GL/freeglut_ext.h /usr/include/GL/freeglut.h /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libglut.a /usr/share /usr/share/doc /usr/share/doc/freeglut3-dev /usr/share/doc/freeglut3-dev/changelog.gz /usr/share/doc

pkg-config fails to find packages when run from eclipse

主宰稳场 提交于 2019-12-10 10:49:21
问题 I have an annoying problem. I use pkg-config in a project. It has worked fine but now it doesn't (dont know that has changed) When I link from inside eclipse with this line: g++ `pkg-config --libs opencv` -o"RawConverterTgi" ./main.o I get the error: Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing `opencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found But when I run pkg-config --libs opencv in a console I

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

ぐ巨炮叔叔 提交于 2019-12-10 10:15:44
问题 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: process exited with code 2. But then I get an error for "pkg-config" which at first I didn't have installed. (I'm trying to compile the SDL binding with a test that lists the fullscreen modes) Then I got it all set up in the C:\MinGW\Bin folder (pkg

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

烂漫一生 提交于 2019-12-09 17:53:40
问题 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 name Result: $ pkg-config --libs dbus-glib-0 Package dbus-glib-0 was not found in the pkg-config search path. Perhaps you should add the directory containing `dbus-glib-0.pc' to the PKG_CONFIG_PATH environment variable No package 'dbus-glib-0' found $

Portably include GLib headers in autoconf/automake

不羁岁月 提交于 2019-12-09 11:22:38
问题 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 systems don't have it and I would prefer to only rely on autoconf for configuration). 回答1: The GLib 2.22 INSTALL file states that pkg-config is a requirement for installing this library. I am not being GLib (pun intended!); statement of this requirement

How to use pkg-config for setting include paths in Xcode?

蹲街弑〆低调 提交于 2019-12-08 16:23:04
问题 For example, if I need Gtk+ include paths. How to use pkg-config gtk+-2.0 --cflags in Xcode project settings? 回答1: One option, but it's not very portable to other developers on the project -- you can just run pkg-config gtk+-2.0 --cflags in your Terminal and paste it into Build Settings -> Other C Flags . I'd be interested to hear how others deal with this in a more portable way though. Ideally, it would be nice to have pkg-config run at compile-time to make building more system-independent.

pkg-config 0.26 on OS X Lion seems to be ignoring PKG_CONFIG_PATH

天涯浪子 提交于 2019-12-08 09:33:41
问题 I am using pkg-config 0.26 on OS X Lion. When I echo $PKG_CONFIG_PATH , it seems that the variable is blank. When I assign into it, e.g. PKG_CONFIG_PATH=/path/to/my/folder/containing/pc/files , and then run pkg-config --list-all , the .pc files in the directory that I ostensibly just added are not found. I have been side-stepping this issue by soft linking to individual .pc files from /opt/local/share/pkgconfig , but I would prefer to figure out what the right way is. 回答1: Aha! This works:

pkg-config fails to find packages when run from eclipse

一个人想着一个人 提交于 2019-12-06 11:26:53
I have an annoying problem. I use pkg-config in a project. It has worked fine but now it doesn't (dont know that has changed) When I link from inside eclipse with this line: g++ `pkg-config --libs opencv` -o"RawConverterTgi" ./main.o I get the error: Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing `opencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found But when I run pkg-config --libs opencv in a console I get -L/usr/local/opencv2.3.1/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv

pkg-config fails to find package under sysroot directory

﹥>﹥吖頭↗ 提交于 2019-12-06 11:04:38
问题 Can anyone please tell me why this might fail: afeder@ubuntu:~/android/toolchain/sysroot$ ls $PKG_CONFIG_SYSROOT_DIR/usr/local/lib/pkgconfig/mozjs185.pc /home/afeder/android/toolchain/sysroot/usr/local/lib/pkgconfig/mozjs185.pc afeder@ubuntu:~/android/toolchain/sysroot$ pkg-config mozjs185 --cflags Package mozjs185 was not found in the pkg-config search path. Perhaps you should add the directory containing `mozjs185.pc' to the PKG_CONFIG_PATH environment variable No package 'mozjs185' found

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

三世轮回 提交于 2019-12-06 00:58:39
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: process exited with code 2. But then I get an error for "pkg-config" which at first I didn't have installed. (I'm trying to compile the SDL binding with a test that lists the fullscreen modes) Then I got it all set up in the C:\MinGW\Bin folder (pkg-config.exe and the extra dll's). But then it still wouldn't work. Went into CMD typed in its name "not