pkg-config

Can't install cairo with cabal on Windows - how to get pkg-config on win?

百般思念 提交于 2019-11-30 08:37:25
问题 Configuring cairo-0.12.0... setup.exe: The program pkg-config version >=0.9.0 is required but it could not be found. cabal: Error: some packages failed to install: cairo-0.12.0 failed during the configure step. The exception was: ExitFailure 1 so how can I get pkg-config on windows or how to install cairo then ? 回答1: Do you have the cairo development files installed? Recall this isn't the same as having a cairo dll! See the Windows section of their download page for binaries. Also, you can

How to specify dependency on external C library in .cabal?

♀尐吖头ヾ 提交于 2019-11-30 06:46:55
I maintain a library with FFI bindings on Hackage. So my Haskell library depends on the corresponding C library and its header files. Now I specify the external dependency in the .cabal file like this: PkgConfig-Depends: libfoo >= 1.2 And it works well for me in Linux. However, I have a user of the library who reports, that installing pkg-config on Windows is rather cumbersome, and instead he prefers Includes: foo.h Extra-libraries: foo I'd like my library to be as easy to build as possible, and don't want to force build dependencies which are not strictly required. However, I see that Cabal

what is the significance of pkg-config in gcc?

别等时光非礼了梦想. 提交于 2019-11-30 06:43:00
While building a dbus-example, I found that we need to add a pkg-config in gcc. For example: gcc `pkg-config --cflags --libs dbus-1` <file_name> -o <file_name.out> What is the significance of pkg-config --cflags --libs dbus-1 ? what is pkg-config here? what is cflags extra here? what is --libs here? gcc `pkg-config --cflags --libs dbus-1` <file_name> -o <file_name.out> will run the pkg-config command, and pass its output as parameters to gcc. The purpose of pkg-config is to make linking against libraries much easier, as different operating systems and distributions require different

How to use pkg-config to link a library statically

99封情书 提交于 2019-11-30 04:37:17
问题 I'd like to link libpng found by pkg-config statically. pkg-config --libs --static libpng outputs -L/usr/local/Cellar/libpng/1.6.15/lib -lpng16 -lz I have both libpng16.a libpng16.dylib in that directory, and if I use these flags the library gets linked dynamically. How can I tell either pkg-config or the linker (preferably in some portable-ish way) that I really want it linked statically? I've tried adding -static before pkg-config's flags, but that makes clang's ld try and fail to link

How do I fix 'brew install pkg-config'?

笑着哭i 提交于 2019-11-30 01:42:19
Warning: Could not link pkg-config. Unlinking... Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local You can try again using `brew link pkg-config`‏‏‏‏‏‏ brew reinstall pkg-config rm -R offending-directory repeat step 1 As Michael Pigg said above, in my case it was the folder permission issue. I had to do the following: sudo chmod 777 /usr/local/bin sudo chmod 777 /usr/local/share/man/man1 brew link pkg-config And after I'm done: sudo chmod 755 /usr/local/bin sudo chmod 755 /usr/local/share/man/man1 to restore the original

No package 'lua' found but i have it installed

拈花ヽ惹草 提交于 2019-11-29 22:56:36
I'm trying to install Lsyncd on Ubuntu 10.4 LTS but i get some error : > checking for LUA... no checking for > LUA... no checking for LUA... > configure: error: Package requirements > (lua >= 5.1.3) were not met: > > No package 'lua' found > > Consider adjusting the PKG_CONFIG_PATH > environment variable if you installed > software in a non-standard prefix. > > Alternatively, you may set the > environment variables LUA_CFLAGS and > LUA_LIBS to avoid the need to call > pkg-config. See the pkg-config man > page for more details. Or I know I have Lua installed : # lua -v Lua 5.1.4 Copyright (C)

Can't install cairo with cabal on Windows - how to get pkg-config on win?

我的未来我决定 提交于 2019-11-29 07:22:01
Configuring cairo-0.12.0... setup.exe: The program pkg-config version >=0.9.0 is required but it could not be found. cabal: Error: some packages failed to install: cairo-0.12.0 failed during the configure step. The exception was: ExitFailure 1 so how can I get pkg-config on windows or how to install cairo then ? Do you have the cairo development files installed? Recall this isn't the same as having a cairo dll! See the Windows section of their download page for binaries . Also, you can run cabal install -v for more verbosity in the error (which you should post if you're still stuck). you need

what is the significance of pkg-config in gcc?

99封情书 提交于 2019-11-29 06:26:22
问题 While building a dbus-example, I found that we need to add a pkg-config in gcc. For example: gcc `pkg-config --cflags --libs dbus-1` <file_name> -o <file_name.out> What is the significance of pkg-config --cflags --libs dbus-1 ? what is pkg-config here? what is cflags extra here? what is --libs here? 回答1: gcc `pkg-config --cflags --libs dbus-1` <file_name> -o <file_name.out> will run the pkg-config command, and pass its output as parameters to gcc. The purpose of pkg-config is to make linking

R devtools fails as “Package libxml-2.0 was not found in the pkg-config search path”

本小妞迷上赌 提交于 2019-11-28 03:48:56
问题 I am trying to install devtools in R version 3.2.1, however when I do the following error is thrown: Package libxml-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing libxml-2.0.pc to the PKG_CONFIG_PATH environment variable when I run dpkg -L libxml2-dev in a terminal I find: /usr /usr/bin /usr/bin/xml2-config /usr/share /usr/share/aclocal /usr/share/aclocal/libxml2.m4 /usr/share/doc /usr/share/doc/libxml2-dev /usr/share/doc/libxml2-dev/copyright

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

半世苍凉 提交于 2019-11-27 17:58:18
I have installed OpenCV using the instructions in https://help.ubuntu.com/community/OpenCV $ sudo su $ sudo apt-get install build-essential $ sudo apt-get install libavformat-dev $ sudo apt-get install ffmpeg $ sudo apt-get install libcv2.3 libcvaux2.3 libhighgui2.3 python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev now when i execute "pkg-config --cflags --libs opencv" i get this 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 how can