Repository navigation
Closed
Description
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)
Metadata
Metadata
Assignees
Labels
No labels
Activity
springmeyer commentedon Oct 17, 2014
that option was removed from mapnik >= 2.3 and Ruby-Mapnik needs a corresponding update to remove it to.
matkoniecz commentedon Oct 17, 2014
Is there a chance that it will happen in the near future? Following https://github.com/mapnik/mapnik/wiki/UbuntuInstallation on Ubuntu 14.04 for installing v2.2.0 results in 2.3.0-pre (well, it was not supposed to work for 14.04).
Is there some way to install Mapnik before 2.3 but one that is 2.x on Ubuntu 14.04?
springmeyer commentedon Oct 17, 2014
hmm, this was already fixed (abb0171), can you make sure you are up to date and pulling latest master of this repo?
matkoniecz commentedon Oct 18, 2014
I installed from packages
Now I am trying to install master version (I ended with 3.0.0-pre - that according to https://github.com/mapnik/Ruby-Mapnik/blob/master/README.rdoc will not work).
rake now fails with following log:
Improve legibility of shop names.
gravitystorm commentedon Sep 9, 2015
Both the code and the tests for get_force_odd_labels have been removed, see /9f8f5658e8221c499645cde5ba7f4641eae0a5c0