Opened 7 years ago

Closed 7 years ago

#4134 closed defect (fixed)

find the good library of mapnik

Reported by: tom@… Owned by: jburgess777@…
Priority: minor Milestone:
Component: mod_tile Version:
Keywords: Cc: kakrueger@…

Description

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

Change History (4)

comment:1 Changed 7 years ago by tom@…

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

comment:2 Changed 7 years ago by amm

Cc: kakrueger@… added

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.

comment:3 Changed 7 years ago by Ldp

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.

comment:4 Changed 7 years ago by tom@…

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.