MaZderMind / osm-history-renderer

an experimental, work-in-progress history renderer (including supplementary tools like an importer and an animation-tool)
BSD 2-Clause "Simplified" License
79 stars 23 forks source link

-I/home/peter/osmium/include #3

Closed wiso closed 12 years ago

wiso commented 12 years ago

Hello, I've another problem, now trying to compile /osm-history-renderer/importe

osm-history-renderer/importer> make g++ -g -O3 -Wall -Wextra -pedantic getconf LFS_CFLAGS -I/home/peter/osmium/include -I/usr/include/postgresql/ -DOSMIUM_WITH_GEOS -o osm-history-importer importer.cpp -lexpat -lpq -lproj -lz -lprotobuf-lite -losmpbf -lpthread -lgeos importer.cpp:18:22: fatal error: osmium.hpp: File o directory non esistente compilation terminated. make: *\ [osm-history-importer] Errore 1

I think you need to edit the Makefile

wiso commented 12 years ago

pach:

diff --git a/importer/Makefile b/importer/Makefile index ac4c29a..8afb0d6 100644 --- a/importer/Makefile +++ b/importer/Makefile @@ -13,7 +13,7 @@ CXXFLAGS += getconf LFS_CFLAGS

CXXFLAGS += -Wpadded -Winline

path to osmium

-CXXFLAGS += -I/home/peter/osmium/include -I/usr/include/postgresql/ +CXXFLAGS += -Iosmium/include -I/usr/include/postgresql/

compile & link against expat to have xml reading support

LDFLAGS += -lexpat

MaZderMind commented 12 years ago

would be better if you could send a git pull request (it's not that hard with github). Fixed in 30bb73ed5061b77150029c10aa3543581cd99672