pombreda / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

Feature Request: support for pkg-config #146

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to link to libkml using pkg-config.
2. Fail to link.
3. :) 

What version of the product are you using? On what operating system?
libkml 1.2.0
Fedora 12 64 & 32 bit
CentOS 5.2

Please provide any additional information below.
You can support pkg-config by adding the following to the source tree:

libkml.pc.in:
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libkml
Description: A implementation of the OGC KML 2.2 standard.
Requires: liburiparser
Version: @VERSION@
Libs: -L${libdir} -lkmlbase -lkmlconvenience -lkmlengine -lkmldom
Cflags: -I${includedir}

Then adding libkml.pc to your AC_CONFIG_FILES([]) in configure.ac

Original issue reported on code.google.com by geoff.la...@gmail.com on 20 Apr 2010 at 5:20

GoogleCodeExporter commented 9 years ago
I just realized that another piece needed. The above will create the libkml.pc 
file,
but it will never get installed when a 'make install' command is given. To do 
that,
add the following to the appropriate Makefile.am (maybe 
src/kml/base/Makefile.am):

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libkml.pc

Original comment by geoff.la...@gmail.com on 20 Apr 2010 at 7:54

GoogleCodeExporter commented 9 years ago
I made rpm package of libkml-1.2.0 for Fedora 13 x86_64 with your suggestion. 
But "appropriate Makefile.am" is ./Makefile.am
You can download packages from 
http://wiki.gospogied.lezajsk.pl/doku.php?id=komputery:linux:nawigacja:libkml

Original comment by killer.1...@gmail.com on 17 Aug 2010 at 9:42