Giter VIP home page Giter VIP logo

Comments (7)

thomersch avatar thomersch commented on June 16, 2024

Ok. It turns out, the linker doesn't look at the proper paths. When hardcoding /usr/include/gdal/ into ogr.go, the compiler/linker does the job properly. Still, rather a workaround than a solution.

from imposm3.

olt avatar olt commented on June 16, 2024

Hah. Thanks for pointing that out. I didn't considered that the binaries are not forward-compatible. Guess I'll have to downgrade my build system to Ubuntu 10.4 to support everything from SLES11, RHEL6 and Debian 5 (http://en.wikipedia.org/wiki/GNU_C_Library#Version_history).

For levigo: Yes, you need a more recent LevelDB version, or the levigo_leveldb_1.4 bindings which supports the Debian version of LevelDB. If you want to work with larger PBFs (Europe or Planet) then I would suggest to try https://github.com/rescrv/HyperLevelDB.

For OGR: The Debian/Ubuntu packages of libgdal are putting the header files inside gdal/ which differs from a default configure && make install. I will have to see how to support both locations.

from imposm3.

milovanderlinden avatar milovanderlinden commented on June 16, 2024

Fails on archlinux too:

[miblon@dogo001 imposm]$ uname -a
Linux dogo001 3.11.5-1-ARCH 
#1 SMP PREEMPT Mon Oct 14 08:31:43 CEST 2013 x86_64 GNU/Linux
[miblon@dogo001 imposm]$ go get imposm3
# github.com/jmhodges/levigo
batch.go:3:24: fatal error: leveldb/c.h: No such file or directory
 // #cgo LDFLAGS: -lleveldb

from imposm3.

milovanderlinden avatar milovanderlinden commented on June 16, 2024

And:

[miblon@dogo001 imposm]$ go get github.com/jmhodges/levigo
# github.com/jmhodges/levigo
batch.go:3:24: fatal error: leveldb/c.h: No such file or directory
 // #cgo LDFLAGS: -lleveldb
                        ^
compilation terminated.

from imposm3.

milovanderlinden avatar milovanderlinden commented on June 16, 2024

My wrong, turns out I needed to install leveldb first.

from imposm3.

kapouer avatar kapouer commented on June 16, 2024

This might be totally out of subject (and i would be sorry for that) but:
gdal-config --cflags
could help.

from imposm3.

olt avatar olt commented on June 16, 2024

Closing this as current binaries are supported even by older Linux distributions.

from imposm3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.