我正在尝试使用pkg-config在windows (msvc)中查找gstreamer。
pkg-配置gstreamer-0.10 -c标志--lib
但我会得到这样的结果
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当安装库时(通过使用RPM、deb或其他二进制打包系统或通过从源代码编译),.pc就会创建.I无法在我的gstreamer目录中找到.pc文件。
我应该创建一个包含所有必要细节的.pc文件吗?
prefix=C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.7
exec_prefix=${prefix}
libdir=${exec_prefix}\lib
includedir=${prefix}\sdk\include\gstreamer-0.10
toolsdir=${exec_prefix}\bin
pluginsdir=${exec_prefix}\lib\gstreamer-0.10
datarootdir=${prefix}\share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer
Description: Streaming media framework
Requires: glib-2.0, gobject-2.0, gmodule-no-export-2.0, gthread-2.0, libxml-2.0
Version: 0.10.35
Libs: -L${libdir} -lgstreamer-0.10
Cflags: -I${includedir}或者还有其他的方法来做这件事,还是我错过了什么?
希望你能help.Thankz花时间阅读这个问题。
我这样做是为了找出为什么我要在gstreamer的waf配置中获得not found消息的解决方案
conf.check_cfg(atleast_pkgconfig_version='0.0.0')
conf.check_cfg(package='gstreamer-0.10', uselib_store='GSTREAMER', args='--cflags --libs', mandatory=True)代码在linux中工作,也应该在windows中工作。
后来添加了
创建.pc并设置.pc dir到PKG_CONFIG_PATH环境变量的路径,trick.Its做得不困难吗?
看看这。谢谢你的阅读和帮助我
发布于 2012-06-17 16:07:59
pkg-config是一个很好的工具,但不幸的是,在Windows (vs.unix)上没有标准的可执行路径或PKG_CONFIG_PATH。
当您可以恢复到定义选项-具有-gstreamer-包含-dir.-与-gstreamer-lib-dir.并且避免pkg-config依赖,还可以使用--pkgconfig-exe c:\path\to\pkg-config.exe -pkgconfig-path c:\path\to\gstreamer;c:\path\to\otherlib,这将有助于创建一个好看的wscript,特别是在使用大量pkg-config库时。
典型的Win32用户可能会遇到直接设置PKG_CONFIG_PATH和路径的问题,或者遇到一个神秘的“找不到”错误,然后检查config.log。
如果您确实添加了特定于windows的pkg-config选项,那么每个人都可能会感兴趣。您可以编写一个pkgconfig_opts工具并将其作为waf附加文件提交。
https://stackoverflow.com/questions/10810279
复制相似问题