mapnik / Ruby-Mapnik

Ruby Bindings for Mapnik
MIT License
66 stars 13 forks source link

Compile errors in _mapnik_markers_symbolizer.rb.cpp #27

Closed gravitystorm closed 11 years ago

gravitystorm commented 11 years ago

Compiling against mapnik v2.1.0-995-gfeaf757 (trunk, March 19th 2013) I get the following errors:

_mapnik_markers_symbolizer.rb.cpp:34:22: error: mapnik::path_processor_type’ has not been declared

and

_mapnik_markers_symbolizer.rb.cpp:38:22: error: ‘parse_path’ is not a member of ‘mapnik’

full log:

andy@eiger:~/src/ruby-mapnik$ rake
mkdir -p tmp/x86_64-linux/ruby_mapnik/1.9.3
cd tmp/x86_64-linux/ruby_mapnik/1.9.3
/usr/bin/ruby1.9.1 -I. ../../../../ext/ruby_mapnik/extconf.rb
checking for main() in -lrice... yes
creating Makefile
cd -
cd tmp/x86_64-linux/ruby_mapnik/1.9.3
make
compiling ../../../../ext/ruby_mapnik/_mapnik_line_symbolizer.rb.cpp
compiling ../../../../ext/ruby_mapnik/_mapnik_datasource_cache.rb.cpp
compiling ../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp: In function ‘Rice::Object {anonymous}::get_text_displacement(const mapnik::text_symbolizer&)’:
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp:37:47: warning: ‘const position& mapnik::text_symbolizer::get_displacement() const’ is deprecated (declared at /usr/local/include/mapnik/text_symbolizer.hpp:120) [-Wdeprecated-declarations]
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp: In function ‘mapnik::horizontal_alignment {anonymous}::get_text_horizontal_alignment(const mapnik::text_symbolizer&)’:
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp:52:76: warning: ‘mapnik::horizontal_alignment_e mapnik::text_symbolizer::get_horizontal_alignment() const’ is deprecated (declared at /usr/local/include/mapnik/text_symbolizer.hpp:136) [-Wdeprecated-declarations]
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp: In function ‘mapnik::justify_alignment {anonymous}::get_text_justify_alignment(const mapnik::text_symbolizer&)’:
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp:61:70: warning: ‘mapnik::justify_alignment_e mapnik::text_symbolizer::get_justify_alignment() const’ is deprecated (declared at /usr/local/include/mapnik/text_symbolizer.hpp:138) [-Wdeprecated-declarations]
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp: In function ‘mapnik::label_placement_enum {anonymous}::get_text_label_placement(const mapnik::text_symbolizer&)’:
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp:70:71: warning: ‘mapnik::label_placement_e mapnik::text_symbolizer::get_label_placement() const’ is deprecated (declared at /usr/local/include/mapnik/text_symbolizer.hpp:115) [-Wdeprecated-declarations]
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp: In function ‘mapnik::text_transform {anonymous}::get_text_transform(const mapnik::text_symbolizer&)’:
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp:79:64: warning: ‘mapnik::text_transform_e mapnik::text_symbolizer::get_text_transform() const’ is deprecated (declared at /usr/local/include/mapnik/text_symbolizer.hpp:86) [-Wdeprecated-declarations]
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp: In function ‘mapnik::vertical_alignment {anonymous}::get_vertical_alignment(const mapnik::text_symbolizer&)’:
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp:88:72: warning: ‘mapnik::vertical_alignment_e mapnik::text_symbolizer::get_vertical_alignment() const’ is deprecated (declared at /usr/local/include/mapnik/text_symbolizer.hpp:117) [-Wdeprecated-declarations]
compiling ../../../../ext/ruby_mapnik/ruby_mapnik.cpp
compiling ../../../../ext/ruby_mapnik/_mapnik_polygon_pattern_symbolizer.rb.cpp
compiling ../../../../ext/ruby_mapnik/_mapnik_polygon_symbolizer.rb.cpp
compiling ../../../../ext/ruby_mapnik/_mapnik_stroke.rb.cpp
compiling ../../../../ext/ruby_mapnik/_mapnik_color.rb.cpp
compiling ../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp: In function ‘const string {anonymous}::get_filename(const mapnik::markers_symbolizer&)’:
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp:34:22: error: ‘mapnik::path_processor_type’ has not been declared
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp: In function ‘void {anonymous}::set_filename(mapnik::markers_symbolizer&, const string&)’:
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp:38:22: error: ‘parse_path’ is not a member of ‘mapnik’
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp: In function ‘const string {anonymous}::get_filename(const mapnik::markers_symbolizer&)’:
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp:35:3: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [_mapnik_markers_symbolizer.rb.o] Error 1
rake aborted!
Command failed with status (2): [make...]
/var/lib/gems/1.9.1/gems/rake-compiler-0.8.3/lib/rake/extensiontask.rb:112:in `block (2 levels) in define_compile_tasks'
/var/lib/gems/1.9.1/gems/rake-compiler-0.8.3/lib/rake/extensiontask.rb:111:in `block in define_compile_tasks'
Tasks: TOP => default => test => compile => compile:x86_64-linux => compile:ruby_mapnik:x86_64-linux => copy:ruby_mapnik:x86_64-linux:1.9.3 => tmp/x86_64-linux/ruby_mapnik/1.9.3/ruby_mapnik.so
(See full trace by running task with --trace)
gravitystorm commented 11 years ago

Fixed by 34d47b7a73737c - thanks Dane!