Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

find the good library of mapnik #4134

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments
Closed

find the good library of mapnik #4134

openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments

Comments

@openstreetmap-trac
Copy link

Reporter: tom[at]tcweb.org
[Submitted to the original trac issue database at 12.24pm, Friday, 9th December 2011]

Hello

when we compile mod_tile on debian stable, that work fine. On sid it's an other story, ld failed with message : cannot find -lmapnik. It's because mapnik has evolved to mapnik2 ... If we change Makefile :

  • RENDER_LDFLAGS += -lmapnik -Liniparser3.0b -liniparser
  • RENDER_LDFLAGS += -lmapnik2 -Liniparser3.0b -liniparser
    that work fine ... but it's not very easy for all people.

I propose to change the Makefile with :

  • RENDER_LDFLAGS += -lmapnik -Liniparser3.0b -liniparser
  • RENDER_LDFLAGS += -Liniparser3.0b -liniparser
  • MAPNIK2 = $(shell ldconfig -p | grep -c mapnik2)
  • ifeq ($(MAPNIK2), 0)
  • RENDER_LDFLAGS += -lmapnik
  • else
  • RENDER_LDFLAGS += -lmapnik2
  • endif
@openstreetmap-trac
Copy link
Author

Author: tom[at]tcweb.org
[Added to the original trac issue at 12.39pm, Friday, 9th December 2011]

with a more prety code :

Hello

when we compile mod_tile on debian stable, that work fine. On sid it's an other story, ld failed with message : cannot find -lmapnik. It's because mapnik has evolved to mapnik2 ... If we change Makefile :

- RENDER_LDFLAGS += -lmapnik -Liniparser3.0b -liniparser 
+ RENDER_LDFLAGS += -lmapnik2 -Liniparser3.0b -liniparser

that work fine ... but it's not very easy for all people.

I propose to change the Makefile with :

- RENDER_LDFLAGS += -lmapnik -Liniparser3.0b -liniparser 
+ RENDER_LDFLAGS += -Liniparser3.0b -liniparser 
+ MAPNIK2 = $(shell ldconfig -p | grep -c mapnik2) 
+ ifeq ($(MAPNIK2), 0) 
+ RENDER_LDFLAGS += -lmapnik 
+ else 
+ RENDER_LDFLAGS += -lmapnik2 
+ endif

@openstreetmap-trac
Copy link
Author

Author: amm
[Added to the original trac issue at 3.51am, Sunday, 11th December 2011]

I am considering trying to use autotools to create a configure script to build mod_tile and renderd. Hopefully that will help make it more flexible to detect different versions of Mapnik, which may also be installed in different locations.

@openstreetmap-trac
Copy link
Author

Author: Ldp
[Added to the original trac issue at 9.55pm, Tuesday, 20th March 2012]

The name libmapnik2 only occurs in mapnik 2.0.0 release. After that, it has gone back to plain old libmapnik.

It was only temporarily libmapnik2 to facilitate migration scenarios and parallel installs.

@openstreetmap-trac
Copy link
Author

Author: tom[at]tcweb.org
[Added to the original trac issue at 9.22am, Wednesday, 21st March 2012]

With actual "autotools" Makefile builder, that work fine ... we can close this bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant