Package Details: libkml-git r742.9b50572-3

Git Clone URL: (read-only)
Package Base: libkml-git
Description: A KML library written in C++ with bindings to other languages
Upstream URL:
Licenses: BSD
Conflicts: libkml, minizip
Provides: libkml, minizip
Submitter: hdevalence
Maintainer: None
Last Packager: hotaru
Votes: 2
Popularity: 0.000000
First Submitted: 2014-01-27 05:00
Last Updated: 2015-06-11 20:26

Dependencies (6)

Required by (78)

Sources (1)

Latest Comments

1 2 Next › Last »

dreieck commented on 2019-04-06 20:21

I encounter a build-error related to -Werror=deprecated-declarations:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src -I../../../third_party/boost_1_34_1 -I../../../third_party/gtest-1.7.0/include -I../../../third_party/uriparser-0.7.5/include -I../../../third_party/zlib-1.2.3/contrib -Wall -Wextra -Wno-unused-parameter -Werror -pedantic -fno-rtti -Wno-long-long -O2 -MT attributes.lo -MD -MP -MF .deps/attributes.Tpo -c  -fPIC -DPIC -o .libs/attributes.o
In file included from ../../../src/kml/base/attributes.h:34,
../../../third_party/boost_1_34_1/boost/scoped_ptr.hpp:63:30: error: ‘template<class> class std::auto_ptr’ is deprecated [-Werror=deprecated-declarations]
     explicit scoped_ptr(std::auto_ptr<T> p): ptr(p.release()) // never throws
In file included from /usr/include/c++/8.2.1/memory:80,
                 from ../../../third_party/boost_1_34_1/boost/scoped_ptr.hpp:19,
                 from ../../../src/kml/base/attributes.h:34,
/usr/include/c++/8.2.1/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
cc1plus: all warnings being treated as errors
make[4]: *** [Makefile:1209: attributes.lo] Error 1
make[4]: Leaving directory '/tmp/libkml-git/src/libkml/src/kml/base'
make[3]: *** [Makefile:424: all-recursive] Error 1
make[3]: Leaving directory '/tmp/libkml-git/src/libkml/src/kml'
make[2]: *** [Makefile:374: all-recursive] Error 1
make[2]: Leaving directory '/tmp/libkml-git/src/libkml/src'
make[1]: *** [Makefile:428: all-recursive] Error 1
make[1]: Leaving directory '/tmp/libkml-git/src/libkml'
make: *** [Makefile:360: all] Error 2

Adding a respective -Wno-error mitigates this issue.

dreieck commented on 2019-04-06 20:06

./configure fails for me when trying out the C-compiler:

==> Starting build()...
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/libkml-git/src/libkml':
configure: error: C compiler cannot create executables
See `config.log' for more details
==> ERROR: A failure occurred in build().

config.log shows, amongst others, the lines

gcc version 8.2.1 20181127 (GCC) 
configure:3440: $? = 0
configure:3429: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3440: $? = 1
configure:3429: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3440: $? = 1
configure:3460: checking whether the C compiler works
configure:3482: gcc -O3 -g0 -march=native -ftree-vectorize -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -Wl,-z,relro,-z,now -D_FORTIFY_SOURCE=2 -fPIC -pie -fPIE -fstack-protector  -Wl,-O1,-z,relro,-z,now,--strip-all,--as-needed,--relax,--sort-common,--hash-style=gnu-Wl,--no-as-needed conftest.c  >&5
/sbin/ld: invalid hash style `gnu-Wl'
collect2: error: ld returned 1 exit status

--> invalid options (missing delimiters?) passed to the compiler.

Without $CFLAGS, $CXXFLAGS and $LDFLAGS set ./configure works fine; but on other packages also my $CFLAGS, $CXXFLAGS and $LDFLAGS work, so I thing ./configure is doing something wrong here with the existing flags.

Fenrihr commented on 2019-03-19 21:07

Build fails in:

| fatal error: minizip/crypt.h not found

It seams that it is a problem with the internal minizip. i archived a success build with the HEAD of the branch

qs9rx commented on 2018-05-15 20:58

I had to install minizip for building.

orontee commented on 2017-02-16 08:38

The installed library isn't visible to pkg-config:

libkml-git (master)$ pkg-config --libs libkml
Package libkml was not found in the pkg-config search path.
Perhaps you should add the directory containing `libkml.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libkml' found

I know it is when installing libkml on MSYS2 which use Pacman too. May be you should have a look at their PKGBUILD?

kikislater commented on 2016-12-12 12:10

Thank you orontee. It works with this :

CXXFLAGS+=' -Wno-long-long -O2 -Wno-deprecated-declarations -std=c++98 ' LDFLAGS+=-Wl,--no-as-needed PYTHON=python2 \

Please update package

orontee commented on 2016-08-15 13:53

Please update dependencies: Configuration succeeded after installing jdk8-openjdk; Or pass --disable-java option to ./configure.

One also needs to add -Wno-deprecated-declarations and -std=c++98 to CXXFLAGS to build.

orontee commented on 2016-08-15 13:34

Configure fails on an up-to-date system:

libkml-git (master)$ LANG=C makepkg -csif
checking for strstr... yes
checking for swig... swig
checking for java... nojava
configure: error: no java binary in PATH
==> ERROR: A failure occurred in build().

hdevalence commented on 2015-05-09 16:29

Hey, thanks for the suggestion. Unfortunately I've stopped running Arch, so I can't fix it. I've disowned the package if anyone else wants to take it over.

hotaru commented on 2015-05-06 14:58

> # TODO: Use existing libminizip package instead of conflicting with it.
> conflicts=('libminizip','libkml')
> provides=('libkml')
the existing package is called just "minizip", not "libminizip", and it'd be nice to put it in provides as well, if using the existing minizip package is too difficult.