简体   繁体   English

如何在Win8中安装pkg文件?

[英]How to install pkg file in Win8?

Not find any way to install this file from the Windows 8! 找不到任何从Windows 8安装此文件的方法! What can I do? 我能做什么?

Search previous questions, but could not resolve the problem 搜索以前的问题,但无法解决问题

This is a step-by-step procedure to get pkg-config working on Windows, based on my experience, using the info from Oliver Zendel's comment. 根据我的经验,这是使用Oliver Zendel注释中的信息逐步使pkg-config在Windows上运行的分步过程。

I assume here that MinGW was installed to C:\\MinGW. 我在这里假设MinGW已安装到C:\\ MinGW。 There were multiple versions of the packages available, and in each case I just downloaded the latest version. 软件包有多个版本,在每种情况下,我只是下载了最新版本。

  1. go to http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/ 转到http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/
  2. download the file pkg-config_0.26-1_win32.zip 下载文件pkg-config_0.26-1_win32.zip
  3. extract the file bin/pkg-config.exe to C:\\MinGW\\bin 将文件bin / pkg-config.exe解压缩到C:\\ MinGW \\ bin
  4. download the file gettext-runtime_0.18.1.1-2_win32.zip 下载文件gettext-runtime_0.18.1.1-2_win32.zip
  5. extract the file bin/intl.dll to C:\\MinGW\\bin 将文件bin / intl.dll提取到C:\\ MinGW \\ bin
  6. go to http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28 转到http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28
  7. download the file glib_2.28.8-1_win32.zip 下载文件glib_2.28.8-1_win32.zip
  8. extract the file bin/libglib-2.0-0.dll to C:\\MinGW\\bin 将文件bin / libglib-2.0-0.dll解压缩到C:\\ MinGW \\ bin

Now CMake will be able to use pkg-config if it is configured to use MinGW. 现在,如果将其配置为使用MinGW,则CMake将能够使用pkg-config。

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

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