pkg-config

Generate pkg-config out of Makefile

不打扰是莪最后的温柔 提交于 2021-01-28 19:25:59
问题 For a project, which historically uses make I would now like to generate a pkg-config file. However I cannot seem to prevent the substitution of the variables mylib.pc: echo 'prefix='$(PREFIX) > bzip2.pc echo "exec_prefix=\${prefix}" >> mylib.pc echo 'libdir=\${prefix}/lib' >> mylib.pc install: mylib.pc Afterwards I have a mylib.pc with expanded variables, which is not what I want. So how does one generate a pkg-config out of a Makefile or how do I prevent variable substitution? 回答1: This

Generate pkg-config out of Makefile

有些话、适合烂在心里 提交于 2021-01-28 18:52:50
问题 For a project, which historically uses make I would now like to generate a pkg-config file. However I cannot seem to prevent the substitution of the variables mylib.pc: echo 'prefix='$(PREFIX) > bzip2.pc echo "exec_prefix=\${prefix}" >> mylib.pc echo 'libdir=\${prefix}/lib' >> mylib.pc install: mylib.pc Afterwards I have a mylib.pc with expanded variables, which is not what I want. So how does one generate a pkg-config out of a Makefile or how do I prevent variable substitution? 回答1: This

How do I make clion work with following make and pkg-config?

拟墨画扇 提交于 2021-01-28 09:57:07
问题 I have following simple C program which notifies me on which workspace I am in Xfce. I can successfully compile it and use it with a command gcc -O2 -DWNCK_I_KNOW_THIS_IS_UNSTABLE -o wsnd pkg-config --cflags --libs libnotify --libs libwnck-1.0 wsn.c But how would I set Cmake configuration file so clion would compile it also? How do I use pkg-config with Cmake? #include <libnotify/notify.h> #include <libwnck-3.0/libwnck/libwnck.h> #define N_SUMMARY "Workspace Changed" #define N_ICON "dialog

pkg_config_path error on building with docker

人走茶凉 提交于 2021-01-01 07:50:31
问题 When I am building an image for my Go application through docker, I am getting the following error: # pkg-config --cflags oci8 Package oci8 was not found in the pkg-config search path. Perhaps you should add the directory containing `oci8.pc' to the PKG_CONFIG_PATH environment variable No package 'oci8' found pkg-config: exit status 1 I have set the environment variable in my Dockerfile also. But still the issue persists. My Dockerfile is: *FROM golang:1.9 ARG app_env ENV APP_ENV $app_env ENV

pkg_config_path error on building with docker

﹥>﹥吖頭↗ 提交于 2021-01-01 07:50:25
问题 When I am building an image for my Go application through docker, I am getting the following error: # pkg-config --cflags oci8 Package oci8 was not found in the pkg-config search path. Perhaps you should add the directory containing `oci8.pc' to the PKG_CONFIG_PATH environment variable No package 'oci8' found pkg-config: exit status 1 I have set the environment variable in my Dockerfile also. But still the issue persists. My Dockerfile is: *FROM golang:1.9 ARG app_env ENV APP_ENV $app_env ENV

Failed to launch external program in VSCode with pkg-config

╄→гoц情女王★ 提交于 2020-08-07 07:39:30
问题 I have created a simple main.cpp. I have also created a tasks.json under .vscode folder which is as follow. { // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "0.1.0", "command": "g++ $(pkg-config --cflags --libs opencv)", "isShellCommand": true, "args": ["main.cpp"], "showOutput": "always" } g++ $(pkg-config --cflags --libs opencv) main.cpp is running properly in terminal. However, it's not working in the task runner in

Failed to launch external program in VSCode with pkg-config

爷,独闯天下 提交于 2020-08-07 07:36:37
问题 I have created a simple main.cpp. I have also created a tasks.json under .vscode folder which is as follow. { // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "0.1.0", "command": "g++ $(pkg-config --cflags --libs opencv)", "isShellCommand": true, "args": ["main.cpp"], "showOutput": "always" } g++ $(pkg-config --cflags --libs opencv) main.cpp is running properly in terminal. However, it's not working in the task runner in

Error:Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

倖福魔咒の 提交于 2020-08-05 05:24:32
问题 I am using Point cloud library 1.5.1. When I run CMake 3.4.0-rc2 to build my project, it has error: Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) How do I fix this error? 回答1: This error is raised because the pkg-config utility is not available on your system. Using PkgConfig with CMake is not a truly cross-platform solution, as Windows does not come with the pkg-config utility installed. (The PCL developers should instead use find_package() in their CMake. Perhaps, this is worth