[OSM-talk] Using osm2pgsql to keep up with dailies?

Michal Migurski mike at stamen.com
Sun Aug 3 23:45:54 BST 2008


>> So, when I attempt to do that, I get a failure here:
>>
>> 	...
>> 	g++ -g -O2 -Wall -DGEOS_INLINE -g -O2 -Wall -Wextra -I/usr/include/
>> libxml2 -I/usr/include -I/usr/include/postgresql -DVERSION=
>> \"0.55-20080803\" -DHAVE_PTHREAD -I/usr/include   -c -o
>> build_geometry.o build_geometry.cpp
>> 	build_geometry.cpp: In function 'char* get_wkt(size_t)':
>> 	build_geometry.cpp:155: error: 'malloc' is not a member of 'std'
>> 	make: *** [build_geometry.o] Error 1
>>
>> This is after installing the dependencies mentioned on the OSM wiki:
>> build-essential libxml2-dev libgeos-dev libpq-dev libbz2-dev. Does
>> this error look familiar to anyone?
>
> #include <cstdlib> missing in build_geometry.cpp which is needed for  
> gcc
> 4.3. I just commited this change to svn, so it should work now.


Nice, works very well.

One hiccup I see is that if I run the executable from a directory  
other than the one where it was built, it complains that default.style  
can't be found. Otherwise works beautifully.

-mike.

----------------------------------------------------------------
michal migurski- mike at stamen.com
                  415.558.1610







More information about the talk mailing list