[OSM-talk] OSM2SHP

hanoj enemy at mail.muni.cz
Tue May 15 21:35:41 BST 2007


Hello Nick,

for now is problem this...


g++ -I/usr/local/include -I../libosm -I/usr/include   -c -o osm2shp.o 
osm2shp.cpp
osm2shp.cpp: In function ‘int main(int, char**)’:
osm2shp.cpp:19: error: expected primary-expression before ‘<<’ token
make: *** [osm2shp.o] Error 1


thanks

Hanoj



Nick Whitelegg napsal(a):
> On Tuesday 15 May 2007 17:05, Eamonn Linehan wrote:
>> Im new to linux and am having trouble compiling the export utility
>> osm2shp. I've been careful to first compile and link the libosm library.
>> Can anyone help me? The error I receive is below.
>>
>> Thanks,
>> - Éamonn
>>
>>
>> make
>> g++ -I/usr/local/include -I../../libs/libosm    -c -o osm2shp.o
>> osm2shp.cpp
>> osm2shp.cpp: In function ‘int main(int, char**)’:
>> osm2shp.cpp:30: error: no matching function for call to
>> ‘OSM::Components::makeShp(char*&, char*&)’
>> /usr/local/include/Components.h:134: note: candidates are: bool
>> OSM::Components::makeShp(const std::string&, const std::string&, const
>> std::string&, const std::string&)
>> make: *** [osm2shp.o] Error 1
> 
> Hello Eamonn,
> 
> The version in svn was missing a couple of vital command line parameters.
> 
> You also need to supply the shapefile to store areas, and the XML file which 
> differentiates, by tags, polylines and areas. (This is in SVN in the libosm 
> directory - it's the file features.xml)
> 





More information about the talk mailing list