Pkg config download windows

Как установить pkg config в windows?

Я пытаюсь это сделать, но все, что я могу получить, — это какой-то исходный код, с которым я не знаю, как справиться, я скачал с http://pkgconfig.freedesktop.org/releases/ .

7 ответов

Я пытаюсь установить какое-то программное обеспечение на свой mac, однако постоянно получаю одну и ту же ошибку: configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config.

Каков хороший способ на данный момент (октябрь 2014 года) установить pkg-config на Windows в среде (no HTTPS) MinGW / MinGW-w64 ? (См. Также этот вопрос от 2009 .) Если есть двоичный пакет, который не тянет в GTK+, это было бы здорово, но я его не нашел. Строительство из источника-это прекрасно.

Это процедура step-by-step получить ПКГ-конфиг работает на Windows, основываясь на моем опыте, используя информацию из комментария Оливер Зенделя по.

Я предполагаю здесь, что MinGW был установлен на C:\MinGW. Было доступно несколько версий пакетов, и в каждом случае я просто загружал последнюю версию.

Теперь CMake сможет использовать pkg-config, если он настроен на использование MinGW.

Скачать pkg-config и его зависимые библиотеки :

Альтернативой без зависимости glib является pkg-config-lite .

Извлеките pkg-config.exe из архива и поместите его на свой путь.

Сейчас этот пакет доступен с помощью chocolatey , тогда он может быть установлен с помощью chocolatey.

Я скомпилировал pkg-config с MSVC и поместил готовый двоичный файл (*.exe) в %PATH% , с целью скомпилировать/установить открытые исходники с MSVC через MinGW shell и заставить pkg-config установить файлы *.pc в какое-то место, заданное переменной PKG_CONFIG_PATH, которую я уже установил с помощью.

Я запускаю ubuntu сервер 12.04. Я хочу скомпилировать Monetdb на Virtual box, но получаю ошибку, что я не установил pkg-config. Когда я использую sudo apt-get install pkg-config, я получаю ошибку: Package pkg-config is not available, but is referred to by another package. This mean that the.

Я сделал это, установив Cygwin64 по этой ссылке https:/ / www.cygwin.com / Then-Wiew Full, Search gcc и прокрутите вниз, чтобы найти pkg-config . Нажмите на значок, чтобы выбрать последнюю версию. Это хорошо работало на меня.

  1. Установите mingw64 с https://sourceforge.net/projects/mingw-w64/ . Избегайте установки папки program files/(x86). Экс. c:/mingw-w64
  2. Скачать pkg-config__win64.zip можно здесь
  3. Извлеките вышеуказанный файл zip и скопируйте все файлы из папки pkg-config/bin в папку mingw-w64. В моем случае это ‘C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin’
  4. Теперь установите path = C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin taddaaa вы закончили.

Если вы обнаружите какие-либо проблемы с безопасностью, то также выполните следующие действия

  1. Поиск windows defender security center в системе
  2. Перейдите в приложения-браузер & control> защита от эксплойтов settings> программа setting> нажмите на+Добавить программы настройки
  3. Выберите Добавить программу по имени
  4. Введите имя программы: pkgconf.exe
  5. OK
  6. Теперь проверяем все настройки и выставьте все настройки и применить.

Еще одно место, где вы можете получить более обновленные двоичные файлы,можно найти на сайте Fedora Build System. Прямая ссылка на пакет mingw-pkg-config является: http://koji.fedoraproject.org/Кодзи/buildinfo?buildID=354619

для компьютеров на базе w64 необходимо установить mingw64. Если pkg-config.exe отсутствует, то вы можете обратиться к http:/ / ftp.acc.umu.se/pub/gnome/binaries/win64 / dependencies/

Читайте также:  Синие экраны смерти windows 10 как избавиться от

Распакуйте и скопируйте / объедините pkg-config.exe в вашу установку C:\mingw-w64, например, в on my pc into C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin

Похожие вопросы:

Configuring cairo-0.12.0. setup.exe: The program pkg-config version >=0.9.0 is required but it could not be found. cabal: Error: some packages failed to install: cairo-0.12.0 failed during the.

Я хочу изменить каталог, в котором pkg-config ищет файлы .pr . Я использую pkg-config под MinGW на Windows. Я обнаружил, что это можно сделать, изменив переменную окружения PKG_CONFIG_PATH с помощью.

Я пытаюсь установить rmagick на свою машину Mac OS X v10.9 (Mavericks). Однако. Я получаю эту ошибку /usr/local/bin/Magick-config: line 41: pkg-config: command not found.

Я пытаюсь установить какое-то программное обеспечение на свой mac, однако постоянно получаю одну и ту же ошибку: configure: error: The pkg-config script could not be found or is too old. Make sure.

Каков хороший способ на данный момент (октябрь 2014 года) установить pkg-config на Windows в среде (no HTTPS) MinGW / MinGW-w64 ? (См. Также этот вопрос от 2009 .) Если есть двоичный пакет, который.

Я скомпилировал pkg-config с MSVC и поместил готовый двоичный файл (*.exe) в %PATH% , с целью скомпилировать/установить открытые исходники с MSVC через MinGW shell и заставить pkg-config установить.

Я запускаю ubuntu сервер 12.04. Я хочу скомпилировать Monetdb на Virtual box, но получаю ошибку, что я не установил pkg-config. Когда я использую sudo apt-get install pkg-config, я получаю ошибку.

Я столкнулся со следующей проблемой. Я установил GTK+-3.0 и pkg-config через MSYS64. pkg-config.exe находится в C:\msys64\usr\bin , и я добавил Это в среду PATH из windows. Если я выполню pkg-config.

Я компилирую стороннюю библиотеку, которая использует следующие команды для поиска Eigen3: find_package( PkgConfig ) pkg_check_modules( EIGEN3 REQUIRED eigen3 ).

Я написал небольшую библиотеку и пытаюсь настроить ее так, чтобы она могла использоваться с pkg-config для тех сотрудников моей организации, которым она может понадобиться позже. Поэтому мой.

Pkg config download windows

pkgconf is a program which helps to configure compiler and linker flags for development libraries. It is similar to pkg-config from freedesktop.org.

libpkgconf is a library which provides access to most of pkgconf ‘s functionality, to allow other tooling such as compilers and IDEs to discover and use libraries configured by pkgconf.

using pkgconf with autotools

Implementations of pkg-config, such as pkgconf, are typically used with the PKG_CHECK_MODULES autoconf macro. As far as we know, pkgconf is compatible with all known variations of this macro. pkgconf detects at runtime whether or not it was started as ‘pkg-config’, and if so, attempts to set program options such that its behaviour is similar.

In terms of the autoconf macro, it is possible to specify the PKG_CONFIG environment variable, so that you can test pkgconf without overwriting your pkg-config binary. Some other build systems may also respect the PKG_CONFIG environment variable.

To set the environment variable on the bourne shell and clones (i.e. bash), you can run:

comparison of pkgconf and pkg-config dependency resolvers

pkgconf builds an acyclic directed dependency graph. This allows for the user to more conservatively link their binaries — which may be helpful in some environments, such as when prelink(1) is being used. As a result of building a directed dependency graph designed for the specific problem domain provided by the user, more accurate dependencies can be determined.

Читайте также:  Crossover linux microsoft office

Current release versions of pkg-config, on the other hand, build a database of all known pkg-config files on the system before attempting to resolve dependencies, which is a considerably slower and less efficient design. Efforts have been made recently to improve this behaviour.

As of the 1.1 series, pkgconf also fully implements support for Provides rules, while pkg-config does not. pkg-config only provides the —print-provides functionality as a stub. There are other intentional implementation differences in pkgconf’s dependency resolver verses pkg-config’s dependency resolver in terms of completeness and correctness, such as, for example, how Conflicts rules are processed.

linker flags optimization

As previously mentioned, pkgconf makes optimizations to the linker flags in both the case of static and shared linking in order to avoid overlinking binaries and also simplifies the CFLAGS and LIBS output of the pkgconf tool for improved readability.

This functionality depends on the pkg-config module properly declaring it’s dependency tree instead of using Libs and Cflags fields to directly link against other modules which have pkg-config metadata files installed.

Doing so is discouraged by the freedesktop tutorial anyway.

compatibility with pkg-config

We do not provide bug-level compatibility with pkg-config.

What that means is, if you feel that there is a legitimate regression versus pkg-config, do let us know, but also make sure that the .pc files are valid and follow the rules of the pkg-config tutorial, as most likely fixing them to follow the specified rules will solve the problem.

compiling pkgconf and libpkgconf on UNIX

pkgconf is basically compiled the same way any other autotools-based project is compiled:

If you are installing pkgconf into a custom prefix, such as /opt/pkgconf , you will likely want to define the default system includedir and libdir for your toolchain. To do this, use the —with-system-includedir and —with-system-libdir configure flags like so:

compiling pkgconf and libpkgconf with CMake (usually for Windows)

pkgconf is compiled using CMake on Windows. In theory, you could also use CMake to build on UNIX, but this is not recommended at this time as it pkgconf is typically built much earlier than CMake.

There are a few defines such as SYSTEM_LIBDIR, PKGCONFIGDIR and SYSTEM_INCLUDEDIR. However, on Windows, the default PKGCONFIGDIR value is usually overridden at runtime based on path relocation.

If you want pkgconf to be used when you invoke pkg-config , you should install a symlink for this. We do not do this for you, as we believe it is better for vendors to make this determination themselves.

Release tarballs are available at https://distfiles.dereferenced.org/pkgconf/. Please only use the tarballs from distfiles.dereferenced.org.

You can report bugs at https://todo.sr.ht/

There is a mailing list at https://lists.sr.ht/

You can contact us via IRC at #pkgconf at irc.freenode.net .

About

package compiler and linker metadata toolkit

How to install pkg config in windows?

I am trying to do it, but all I can get is some source code that I don’t know how to do deal with I downloaded from http://pkgconfig.freedesktop.org/releases/ .

Читайте также:  Tnod user password windows

8 Answers 8

Download pkg-config and its depend libraries :

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.

I assume here that MinGW was installed to C:\MinGW. There were multiple versions of the packages available, and in each case I just downloaded the latest version.

Now CMake will be able to use pkg-config if it is configured to use MinGW.

A alternative without glib dependency is pkg-config-lite.

Extract pkg-config.exe from the archive and put it in your path.

Nowdays this package is available using chocolatey, then it could be installed whith

I did this by installing Cygwin64 from this link https://www.cygwin.com/ Then — View Full, Search gcc and scroll down to find pkg-config. Click on icon to select latest version. This worked for me well.

  1. Install mingw64 from https://sourceforge.net/projects/mingw-w64/. Avoid program files/(x86) folder for installation. Ex. c:/mingw-w64
  2. Download pkg-config__win64.zip from here
  3. Extract above zip file and copy paste all the files from pkg-config/bin folder to mingw-w64. In my case its ‘C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin’
  4. Now set path = C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin taddaaa you are done.

If you find any security issue then follow steps as well

  1. Search for windows defender security center in system
  2. Navigate to apps & browser control> Exploit protection settings> Program setting> Click on ‘+add program customize’
  3. Select add program by name
  4. Enter program name: pkgconf.exe
  5. OK
  6. Now check all the settings and set it all the settings to off and apply.

I would like to extend the answer of @dzintars about the Cygwin version of pkg-config in that focus how should one use it properly with CMake, because I see various comments about CMake in this topic.

I have experienced many troubles with CMake + Cygwin’s pkg-config and I want to share my experience how to avoid them.

1. The symlink C:/Cygwin64/bin/pkg-config -> pkgconf.exe does not work in Windows console.

It is not a native Windows .lnk symlink and it won’t be callable in Windows console cmd.exe even if you add «.;» to your %PATHEXT% (see https://www.mail-archive.com/cygwin@cygwin.com/msg104088.html).

It won’t work from CMake, because CMake calls pkg-config with the method execute_process() (FindPkgConfig.cmake) which opens a new cmd.exe.

Solution: Add -DPKG_CONFIG_EXECUTABLE=C:/Cygwin64/bin/pkgconf.exe to the CMake command line (or set it in CMakeLists.txt).

2. Cygwin’s pkg-config recognizes only Cygwin paths in PKG_CONFIG_PATH (no Windows paths).

For example, on my system the .pc files are located in C:\Cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\lib\pkgconfig. The following three paths are valid, but only path C works in PKG_CONFIG_PATH:

  • A) c:/Cygwin64/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig — does not work.
  • B) /c/cygdrive/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig — does not work.
  • C) /usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig — works.

Solution: add .pc files location always as a Cygwin path into PKG_CONFIG_PATH.

3) CMake converts forward slashes to backslashes in PKG_CONFIG_PATH on Cygwin.

It happens due to the bug https://gitlab.kitware.com/cmake/cmake/-/issues/21629. It prevents using the workaround described in [2].

Solution: manually update the function _pkg_set_path_internal() in the file C:/Program Files/CMake/share/cmake-3.x/Modules/FindPkgConfig.cmake. Comment/remove the line:

4) CMAKE_PREFIX_PATH, CMAKE_FRAMEWORK_PATH, CMAKE_APPBUNDLE_PATH have no effect on pkg-config in Cygwin.

Solution: Use only PKG_CONFIG_PATH as an environment variable if you run CMake builds on Cygwin. Forget about CMAKE_PREFIX_PATH, CMAKE_FRAMEWORK_PATH, CMAKE_APPBUNDLE_PATH.

Оцените статью