fedora 21 - Supply *.pc file for pkg-config -
hi got problem newly installed fedora linux distribution. pkg-config supposed provide linker flags, pkg-config --cflags libboost-dev
. pkg-config cannot find of library packages. pkg-config --list-all
shows can find few packages.
i searched online , learned pkg-config finds packages searching in pre-defined paths *.pc files. packages (both pre-installed , user-installed), there no such .pc file. *.pc file not generated everytime when package installs.
1, how can provide .pc file each of packages has been installed? 2, how can make sure each time new package installed, .pc file provided?
the fedora packaging guidelines give information way in packages should created, , files should contain.
the section -devel
packages particularly relevant.
to highlight parts
there types of files belong in
-devel
package:
- header files (foo.h), found in /usr/include
- static library files when package not provide matching shared library files. see packaging:guidelines#packaging_static_libraries more information scenario.
- unversioned shared system library files, when matching versioned shared system library file present.
in next section, regarding pkgconfig files, page informs reader
the placement of pkgconfig(.pc) files depends on usecase. since used development purposes, should placed in -devel package.
a reasonable exception when main package development tool not installed in user runtime, e.g. gcc or gdb.
as result, in order either header files #include
, or .pc
files tell compiler flags, need xyz-devel
package, xyz
name of standard package.
a useful website find appropriate names of packages install, if can't/don't want guess them, fedora packages search page.
Comments
Post a Comment