Skip to content

Failed install ‘get_force_odd_labels’ is not a member of ‘mapnik::text_symbolizer’ #47

Description

@matkoniecz

Ubuntu 14.04

mapnik-config -v gives 2.3.0-pre

I installed following gems: rake-compiler rake hoe rice chunky_png cairo.

rake fails:

Defaulting gemspec to MIT license.
Call license in hoe spec to change.
cd tmp/i686-linux/ruby_mapnik/1.9.3
make
../../../../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/include/mapnik/text_symbolizer.hpp:118) [-Wdeprecated-declarations]
mapnik::position pos = t.get_displacement();
^
../../../../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/include/mapnik/text_symbolizer.hpp:134) [-Wdeprecated-declarations]
mapnik::horizontal_alignment alignment = self.get_horizontal_alignment();
^
../../../../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/include/mapnik/text_symbolizer.hpp:136) [-Wdeprecated-declarations]
mapnik::justify_alignment alignment = self.get_justify_alignment();
^
../../../../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/include/mapnik/text_symbolizer.hpp:113) [-Wdeprecated-declarations]
mapnik::label_placement_enum alignment = self.get_label_placement();
^
../../../../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/include/mapnik/text_symbolizer.hpp:86) [-Wdeprecated-declarations]
mapnik::text_transform transform = self.get_text_transform();
^
../../../../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/include/mapnik/text_symbolizer.hpp:115) [-Wdeprecated-declarations]
mapnik::vertical_alignment transform = self.get_vertical_alignment();
^
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp: In function ‘void register_text_symbolizer(Rice::Module)’:
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp:240:59: error: ‘get_force_odd_labels’ is not a member of ‘mapnik::text_symbolizer’
rb_ctext_symbolizer.define_method("force_odd_labels?", &mapnik::text_symbolizer::get_force_odd_labels);
^
../../../../ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp:249:59: error: ‘set_force_odd_labels’ is not a member of ‘mapnik::text_symbolizer’
rb_ctext_symbolizer.define_method("force_odd_labels=", &mapnik::text_symbolizer::set_force_odd_labels);
^
make: *** [_mapnik_text_symbolizer.rb.o] Error 1
rake aborted!
Command failed with status (2): [make...]
Tasks: TOP => default => test => compile => compile:i686-linux => compile:ruby_mapnik:i686-linux => copy:ruby_mapnik:i686-linux:1.9.3 => tmp/i686-linux/ruby_mapnik/1.9.3/ruby_mapnik.so
(See full trace by running task with --trace)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions