A pkg-config module for CMake.
- Pkg-config For Mac Brew
- Pkg Config Windows
- Pkg-config Binary For Machinechoice.host Is Not Cached
- App Config Location
Pkg-config is a package configuration management tool. OSX comes with one, but it's very old and the Cairo build system wants a newer one. You may have a new one via something like macports, but we don't want some of the other macports derived pkg-config dependencies. 下载mac最新版pkg-config解压,终端cd到解压文件夹下运行配置文件进行系统配置:./configure -with-internal-glib编译pkgconfig:make安装包自检测: make check安装: make install. Configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKGCONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables OPENSSLCFLAGS and OPENSSLLIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. The installer command is used to install Mac OS X installer packages to a specified domain or volume. The installer command installs a single package per invocation, which is specified with the -package parameter ( -pkg is accepted as a synonym). It may be either a single package or a metapackage. Designed to help you customize the behavior of the Clover EFI bootloader, Clover Configurator is a simple but powerful software solution that can seamlessly generate personalized configuration files. Easy to install utility for generating Clover EFI configuration files. Upon launch, Clover Configurator.
Pkg-config For Mac Brew
Finds the
pkg-config
executable and add thepkg_check_modules()
and pkg_search_module()
commands.In order to find the
pkg-config
executable, it uses thePKG_CONFIG_EXECUTABLE
variable or the PKG_CONFIG
environment variable first.pkg_check_modules
¶Checks for all the given modules.
When the
REQUIRED
argument was set, macros will fail with an errorwhen module(s) could not be found.When the
QUIET
argument is set, no status messages will be printed.By default, if
CMAKE_MINIMUM_REQUIRED_VERSION
is 3.1 orlater, or if PKG_CONFIG_USE_CMAKE_PREFIX_PATH
is set, theCMAKE_PREFIX_PATH
, CMAKE_FRAMEWORK_PATH
, andCMAKE_APPBUNDLE_PATH
cache and environment variables willbe added to pkg-config
search path.The NO_CMAKE_PATH
and NO_CMAKE_ENVIRONMENT_PATH
argumentsdisable this behavior for the cache variables and the environmentvariables, respectively.It sets the following variables:
For the following variables two sets of values exist; first one is thecommon one and has the given PREFIX. The second set contains flagswhich are given out when
pkg-config
was called with the --static
option.There are some special variables whose prefix depends on the count ofgiven modules. When there is only one module, <PREFIX> staysunchanged. When there are multiple modules, the prefix will bechanged to <PREFIX>_<MODNAME>:
A <MODULE> parameter can have the following formats:
Examples
Requires at least version 2.10 of glib2 and defines e.g.
GLIB2_VERSION=2.10.3
Requires both glib2 and gtk2, and defines e.g.
FOO_glib-2.0_VERSION=2.10.3
and FOO_gtk+-2.0_VERSION=2.8.20
Defines for example:
pkg_search_module
¶Same as
pkg_check_modules()
, but instead it checks for givenmodules and uses the first working one.Examples
PKG_CONFIG_EXECUTABLE
¶Path to the pkg-config executable.
PKG_CONFIG_USE_CMAKE_PREFIX_PATH
¶Whether
pkg_check_modules()
and pkg_search_module()
should add the paths in CMAKE_PREFIX_PATH
,CMAKE_FRAMEWORK_PATH
, and CMAKE_APPBUNDLE_PATH
cache and environment variables to pkg-config
search path.If this variable is not set, this behavior is enabled by default if
CMAKE_MINIMUM_REQUIRED_VERSION
is 3.1 or later, disabledotherwise. pkg-config-mac.md
Pkg Config Windows
commented Aug 2, 2019
First, thanks for your share. And i am confusing about the first line of the code LDFLAGS='-framework CoreFoundation -framework Carbon' ./configure --with-internal-glib ,what's that means LDFLAGS='-framework CoreFoundation -framework Carbon' ? |
Pkg-config Binary For Machinechoice.host Is Not Cached
commented Dec 30, 2019
App Config Location
OSX & iOS uses a mechanism for managing development resources such as a libraries called Frameworks. These are generally frameworks in the Software Engineering sense however might also just be libraries. The flag informs the tool chain to build against these libraries. See Apple's documentation about it for more details. |
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment