pkg-config

How to get pkg-config to use PKG_CONFIG_PATH?

痞子三分冷 提交于 2021-02-09 09:16:23
问题 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 that for some reason this isn't in the default list of directories that pkg-config scans for its pc files, despite /usr/local being the canonical prefix for locally-compiled software. So, I need to add /usr/local/lib/pkgconfig to PKG_CONFIG_PATH.

'pkg-config' is not recognized as an internal or external command when installing opencv

房东的猫 提交于 2021-02-08 10:12:33
问题 So I'm getting this error when attempting to install OpenCV on my computer. 'pkg-config' is not recognized as an internal or external command I've been searching around for this pkg-config package and I can't seem to find a proper download source anywhere. The only one I did find was pkg-config-lite. I tired to see if that one would work but no luck. 回答1: The original pkg-config release is available here: http://www.freedesktop.org/wiki/Software/pkg-config 来源: https://stackoverflow.com

'pkg-config' is not recognized as an internal or external command when installing opencv

限于喜欢 提交于 2021-02-08 10:12:11
问题 So I'm getting this error when attempting to install OpenCV on my computer. 'pkg-config' is not recognized as an internal or external command I've been searching around for this pkg-config package and I can't seem to find a proper download source anywhere. The only one I did find was pkg-config-lite. I tired to see if that one would work but no luck. 回答1: The original pkg-config release is available here: http://www.freedesktop.org/wiki/Software/pkg-config 来源: https://stackoverflow.com

CMake error with gtkmm

不打扰是莪最后的温柔 提交于 2021-02-07 20:32:29
问题 I'm using Debian 8 and have installed libgtkmm-3.0 (and also -dev). Now I have a very simple program using gtkmm, basically a Hello World: main.cpp: #include "../include/BrowserWindow.class.hpp" #include <gtkmm/application.h> int main(int argv, char *argc[]) { Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv, "org.gtkmm.example"); BrowserWindow helloworld; //Shows the window and returns when it is closed. return app->run(helloworld); } BrowserWindow.class.cpp: #include

CMake error with gtkmm

白昼怎懂夜的黑 提交于 2021-02-07 20:30:01
问题 I'm using Debian 8 and have installed libgtkmm-3.0 (and also -dev). Now I have a very simple program using gtkmm, basically a Hello World: main.cpp: #include "../include/BrowserWindow.class.hpp" #include <gtkmm/application.h> int main(int argv, char *argc[]) { Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv, "org.gtkmm.example"); BrowserWindow helloworld; //Shows the window and returns when it is closed. return app->run(helloworld); } BrowserWindow.class.cpp: #include

gcc raises “unrecognized command line option” error with pkg-config

▼魔方 西西 提交于 2021-02-07 10:24:43
问题 I am trying to compile a gtk program using the tutorial here. When I issue the command gcc -o tut tut.c $(pkg-config --cflags --libs gtk+-2.0 gmodule-2.0) I get the following error: gcc: error: unrecognized command line option ‘-pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86

gcc raises “unrecognized command line option” error with pkg-config

冷暖自知 提交于 2021-02-07 10:24:25
问题 I am trying to compile a gtk program using the tutorial here. When I issue the command gcc -o tut tut.c $(pkg-config --cflags --libs gtk+-2.0 gmodule-2.0) I get the following error: gcc: error: unrecognized command line option ‘-pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86

pkg-config can't find opencv

一笑奈何 提交于 2021-02-07 06:24:56
问题 I installed opencv on a lubuntu 12.10 distro. Then when I try to compile a code which is using opencv it says it can't find it. So I try in a terminal : pkg-config --cflags --libs opencv It answers me that it can't find opencv. But the files are installed in /usr/lib. I don't understand why it can't find them. 回答1: You have to put pkg-config --cflags --libs opencv at the end of your g++ line. For example : g++ test.cpp -o test `pkg-config --cflags --libs opencv` Compiles g++ `pkg-config -

pkg-config can't find opencv

∥☆過路亽.° 提交于 2021-02-07 06:23:41
问题 I installed opencv on a lubuntu 12.10 distro. Then when I try to compile a code which is using opencv it says it can't find it. So I try in a terminal : pkg-config --cflags --libs opencv It answers me that it can't find opencv. But the files are installed in /usr/lib. I don't understand why it can't find them. 回答1: You have to put pkg-config --cflags --libs opencv at the end of your g++ line. For example : g++ test.cpp -o test `pkg-config --cflags --libs opencv` Compiles g++ `pkg-config -

“opencv2: no such file or directory” while trying to build Darknet?

不想你离开。 提交于 2021-01-28 19:58:39
问题 I am trying to use Darkent with OpenCV and CUDA. I installed darknet according to these instructions: https://pjreddie.com/darknet/install/ I installed CUDA according to these instructions: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html Finally, I installed OpenCV according to these instructions: http://www.linuxfromscratch.org/blfs/view/svn/general/opencv.html I then added the following lines to the end of my bashrc: export PATH=/usr/local/cuda-11.1/bin${PATH:+:${PATH}