pkg-config

autoconf-generated Makefile does not pass flags for library headers when using PKG_CHECK_MODULES

笑着哭i 提交于 2019-12-21 20:55:16
问题 My project depends upon a library (more precisely, GTK+) so I added the following configurations in my configure.ac : PKG_CHECK_MODULES([GTK], [gtk+-2.0]) AC_SUBST([GTK_CFLAGS]) AC_SUBST([GTK_LIBS]) My Makefile.am is: bin_PROGRAMS = secretary secretary_SOURCES = secretary.c For its turn, my secretary.c is as follows: #include <gtk/gtk.h> int main(int argc, char *argv[]) { gtk_init(&argc, &argv); GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_show(window); gtk_main();

Can't get System.Numerics to work with command-line Mono (mcs) on OS X

僤鯓⒐⒋嵵緔 提交于 2019-12-20 02:05:14
问题 We're trying to run a simple Mono script on the command line on OS X. Most scripts work fine for us, but as soon as we try to use System.Numerics, we get "error CS0234: The type or namespace name `Numerics' does not exist in the namespace System." This isn't too surprising, and should be fixable with an appropriate command-line option to mcs, plus properly set up PKG_CONFIG_PATH... but this is where we get stumped. First, here's the script so you can follow along at home: using System; using

How to use pkg-config in CMake (juCi++)

北城余情 提交于 2019-12-14 04:12:32
问题 I've been happily programming in C++ and compiling with g++ for quite a while. Not long ago, I'd decided to get an IDE, and I came accross juCi++. This IDE is absolutely brilliant, but it uses CMake (or Meson) to build projects. This wasn't a problem, until I had to include a library (GTK+ 3.0 if you're wondering) using pkg-config . This could be done quite easily when compiling with g++, but, as I am completely new to CMake, I have no idea how to do it in the new IDE. Can somebody please

Package check was not found in the pkg-config search path

ぃ、小莉子 提交于 2019-12-13 17:45:58
问题 I am using check package in netbeans for C programming, But I receive this error from netbeans: Package check was not found in the pkg-config search path. Perhaps you should add the directory containing `check.pc' to the PKG_CONFIG_PATH environment variable No package 'check' found In the terminal if I insert this line: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig and then pkg-config --modversion check it can find the check package, but in netbeans I still get the same error. What should I

Finding Libraries using pkg-config in Windows

我只是一个虾纸丫 提交于 2019-12-12 11:05:55
问题 I am, trying to find the gstreamer lib in windows (msvc) using pkg-config pkg-config gstreamer-0.10 --cflags --libs but i am getting any result like this Package gstreamer-0.10 was not found in the pkg-config search path. Perhaps you should add the directory containing `gstreamer-0.10.pc' to the PKG_CONFIG_PATH environment variable No package 'gstreamer-0.10' found a .pc like is created when a library is installed (automatically through the use of an RPM, deb, or other binary packaging system

QMake and pkg-config

十年热恋 提交于 2019-12-11 21:12:45
问题 I am using libqtermwidget in one of my Qt applications. It so happens that in version 0.8.0 of the library, some new features have been introduced, which are absent in 0.6.0 version. Since libqtermwidget does not provide any version macros, I would like to use pkg-config to check its version, something like this, in qmake: # i would like a functionality like this if pkg-config --version qtermwidget5 < 0.8.0 DEFINES += OLD_QTERMWIDGET This of course could be used inside the cpp file: #ifndef

Undefined reference to cv::imread

时光毁灭记忆、已成空白 提交于 2019-12-11 20:33:36
问题 I know this has been asked several times but still I am struggling with linker error undefined reference for simple opencv code. This is my code: #include <opencv2/highgui.hpp> using namespace cv; int main(int argc, char** argv) { Mat inputImage = imread(argv[1]); imshow("Input Image", inputImage); waitKey(0); } I am using eclipse IDE, cygwin g++ compiler and opencv 3.0. I have correctly given include path, library search path as "C:\opencv\build\x64\vc11\lib" & "C:\opencv\build\x64\vc11

CMake's FindPkgConfig concatenates paths

北战南征 提交于 2019-12-11 15:15:00
问题 I am wresting with CMake's FindPkgConfig module using this MWE to find glib-2.0 and set flags correctly: cmake_minimum_required(VERSION 2.10 FATAL_ERROR) project(foo) find_package(PkgConfig REQUIRED) pkg_check_modules(GLIB REQUIRED glib-2.0) # print everything which could be defined, as per FindPkgConfig documentation message(WARNING "GLIB_LIBRARIES:" ${GLIB_LIBRARIES}) message(WARNING "GLIB_LIBRARY_DIRS:" ${GLIB_LIBRARY_DIRS}) message(WARNING "GLIB_LDFLAGS:" ${GLIB_LDFLAGS}) message(WARNING

Linking gtkmm libraries in Visual Studio

 ̄綄美尐妖づ 提交于 2019-12-11 09:04:42
问题 So I had the same problem as this asker, and followed the advice of the accepted answer. I entered all the include directories given by pkg-config gtkmm-2.4 --cflags into my project, and finally it seemed to compile without a hitch. Then I tried pkg-config gtkmm-2.4 --libs , and got -LC:/gtk/lib -Lc:/devel/dist/win32/libpng-1.4.3-1/lib -lgtkmm-2.4 -latkmm-1.6 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lgtk-win32-2.0 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0

Recompiling libiconv, gettext undefined symbols occurring after an already successful install

这一生的挚爱 提交于 2019-12-11 05:03:50
问题 Main Obvious Error " Undefined symbols for architecture x86_64 " How do I get these to compile successfully again? The Operating System is Mac OS X. Have installed multiple programs from their sources. Noticed the problem after having installed: binutils v2.25 , libtool v2.4.6 , glib v2.45.2 , OR pkgconfig v0.28 Before installing any of the above, recompiling libiconv and gettext produced no errors and both successfully installed multiple times. pkg-config --list-all does not display libiconv