[Taginfo-dev] Error compliling tagstats

Donal Diamond donal.diamond at gmail.com
Tue Dec 13 12:10:04 GMT 2011


Was eager to try out the latest taginfo with tag combinations but I'm
now having problems compiling tagstats.

I first updated and compiled the latest osmium.

however, when trying to compile tagstats I get:
g++ -O3 -std=c++0x -Wall -Wextra -Wredundant-decls
-Wdisabled-optimization -pedantic -DTAGSTATS_COUNT_USERS
-DTAGSTATS_COUNT_KEY_COMBINATIONS -DTAGSTATS_COUNT_TAG_COMBINATIONS
-DTAGSTATS_GEODISTRIBUTION_INT=uint32_t
-DTAGSTATS_GEODISTRIBUTION_FOR_WAYS=SparseTable -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I../../../osmium/osmium/include -o tagstats
tagstats.cpp -L/usr/local/lib -lexpat -lpthread -lz -lprotobuf-lite
-losmpbf -lgd -lz -lm -lsqlite3
In file included from /usr/include/boost/make_shared.hpp:15:0,
                 from /usr/include/osmium/input.hpp:27,
                 from /usr/include/osmium.hpp:116,
                 from tagstats.cpp:25:
/usr/include/boost/smart_ptr/make_shared.hpp: In function
‘boost::shared_ptr<T> boost::make_shared(Args&& ...) [with T =
Osmium::OSM::Way, Args = int]’:
/usr/include/osmium/input.hpp:215:21:   instantiated from
‘Osmium::OSM::Way& Osmium::Input::Base<THandler>::prepare_way() [with
THandler = TagStatsHandler]’
/usr/include/osmium/input/pbf.hpp:212:63:   instantiated from ‘void
Osmium::Input::PBF<THandler>::parse_way_group(const
OSMPBF::PrimitiveGroup&, const OSMPBF::StringTable&, T) [with T = void
(TagStatsHandler::*)(const boost::shared_ptr<const
Osmium::OSM::Way>&), THandler = TagStatsHandler]’
/usr/include/osmium/input/pbf.hpp:153:21:   instantiated from ‘void
Osmium::Input::PBF<THandler>::parse_group(const
OSMPBF::PrimitiveGroup&, const OSMPBF::StringTable&) [with THandler =
TagStatsHandler]’
/usr/include/osmium/input/pbf.hpp:86:33:   instantiated from ‘void
Osmium::Input::PBF<THandler>::parse() [with THandler =
TagStatsHandler]’
tagstats.cpp:160:1:   instantiated from here
/usr/include/boost/smart_ptr/make_shared.hpp:148:5: error: no matching
function for call to ‘forward(int&)’
make: *** [tagstats] Error 1

Only change I've made to tagstats/Makefile is to set CXXFLAGS +=
-DTAGSTATS_GEODISTRIBUTION_INT=uint32_t

I'm running on 32bit architecture:
Ubuntu 11.04 (GNU/Linux 2.6.38-11-generic i686)
libboost-dev                         1.42.0.1ubuntu1
libprotobuf-lite6                    2.3.0-4ubuntu2
protobuf-compiler                    2.3.0-4ubuntu2

I also tried updating to latest OSM-binary but I get the same error
compiling tagstats.

Any suggestions?

D



More information about the Taginfo-dev mailing list