简体   繁体   English

如何让cmake的PKG_CHECK_MODULES在Windows中找到我的cairo库

[英]How to get cmake's PKG_CHECK_MODULES to find my cairo library in Windows

I'm trying to build OpenSceneGraph's pdf plugin on a win32 box. 我正在尝试在win32机器上构建OpenSceneGraph的pdf插件。 The plugin is using cmake's PKG_CHECK_MODULES macro to find cairo and poppler libraries. 该插件使用cmake的PKG_CHECK_MODULES宏来查找cairo和poppler库。 I don't know how to install these in such a way as to help it find them though. 我不知道如何以这样的方式安装它们,以帮助它找到它们。

There is no "special" way to install them. 没有“特殊”的方式来安装它们。 Any time you install (a correctly designed) library it also contains a PACKAGENAME.pc file which is copied in a directory where pkg-config can find it. 每次安装(设计正确的)库时,它都包含一个PACKAGENAME.pc文件,该文件被复制到pkg-config可以找到它的目录中。

At least this happens in Linux. 至少在Linux中会发生这种情况。 I don't know if pkg-config would work like this under win32 我不知道pkg-config在win32下是否会像这样工作

Have you also installed pkg-config as well as poppler and cairo ? 你有没有安装pkg-config以及popplercairo

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM