dreamstreat / libkml

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

Build fails on Ubuntu 12.04 'precise' #182

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install Ubuntu 12.04, build-essentials, etc
2. svn co libkml_trunk
3. autogen and configure

What is the expected output? What do you see instead?
fails to build
--
../../../third_party/boost_1_34_1/boost/config/suffix.hpp:436:18: error: ISO 
C++ 1998 does not support 'long long' [-Werror=long-long]
In file included from ../../../third_party/boost_1_34_1/boost/config.hpp:57:0,
                 from ../../../third_party/boost_1_34_1/boost/intrusive_ptr.hpp:16,
                 from ../../../src/kml/base/xml_element.h:31,
                 from ../../../src/kml/dom/kml_cast.h:29,
                 from ../../../src/kml/dom.h:32,
                 from csv_file.cc:34:
../../../third_party/boost_1_34_1/boost/config/suffix.hpp:435:18: error: ISO 
C++ 1998 does not support 'long long' [-Werror=long-long]
../../../third_party/boost_1_34_1/boost/config/suffix.hpp:436:18: error: ISO 
C++ 1998 does not support 'long long' [-Werror=long-long]

Original issue reported on code.google.com by brian.da...@gmail.com on 30 Sep 2012 at 6:32

GoogleCodeExporter commented 9 years ago
I ran into the same issue as well as another issue with some linking orders.  
Attached patch works for me on 12.04, no guarantees.  Switches some linking 
orders and removes handles -Wlonglong.

Original comment by ksshannon@gmail.com on 4 Jan 2013 at 10:03

Attachments:

GoogleCodeExporter commented 9 years ago
I have also confirmed the problem, and the suggested fix.  I have the patch up 
for review internally.

Original comment by fwarmerdam@gmail.com on 29 Jan 2013 at 10:13

GoogleCodeExporter commented 9 years ago

Original comment by fwarmerdam@gmail.com on 29 Jan 2013 at 10:18

GoogleCodeExporter commented 9 years ago

Original comment by fwarmerdam@gmail.com on 29 Jan 2013 at 10:34

GoogleCodeExporter commented 9 years ago
Issue 170 has been merged into this issue.

Original comment by fwarmerdam@gmail.com on 30 Jan 2013 at 11:10

GoogleCodeExporter commented 9 years ago
For what it's worth, I've forked the project on github and fixed this issue, as 
well as adding a bit of the KML specification that libkml wasn't supporting. 
(Specifically the <Styles> tag inside Placemarks).

https://github.com/kubark42/libkml

I don't aim to replicate libkml development, but this way we can solve any 
outstanding bugs while the developers at google prepare their next release.

Original comment by sebe...@gmail.com on 11 Jun 2013 at 10:41

GoogleCodeExporter commented 9 years ago
I've just had the same experience that trunk does not build for me on 12.04 
with this same error, yet kubark42's fork does. Would be nice to get his 
changes (at least the build ones) pulled to trunk. Also would like to see 1.3 
released at some point since I am not able to get libkml to work with gdal on 
my mac and it appears to be a 1.2v1.3 issue.

Original comment by ortel...@gmail.com on 4 Dec 2013 at 4:41

GoogleCodeExporter commented 9 years ago
I've made some headway on clearing up some of these issues. Try the github 
repro, which should build, run and pass all tests on most recent flavours of 
Linux and OS X:

http://github.com/google/libkml

The windows build is still in an unknown and most likely very broken state.

I'll be decommissioning this repository soon-ish. Any future development will 
continue on github.

Original comment by kml.mash...@gmail.com on 4 Dec 2013 at 6:29