Re: [Anjuta-list] How to set _LIBADD in shared object



Am Sun, 09 Sep 2007 11:15:36 +0300 schrieb Naba Kumar:

> Hi Andreas,
> 
> On Sun, 2007-09-09 at 01:45 +0200, Andreas Volz wrote:
> > I see no GUI way in Anjuta to define _LIBADD. It seems only _LDADD
> > is possible to edit. So how could I change _LIBADD with Anjuta?
> > 
> 1. Select the target.
> 2. Right click -> Properties.
> 3. Edit 'Libraries' field.
> 
> Depending on target type, exec or lib, it would be _LDADD or _LIBADD

Then I don't understand why this error. Here my Makefile.am as
generated by Anjuta for a shared lib:

## Process this file with automake to produce Makefile.in

## Created by Anjuta

INCLUDES = \
	-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
	-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" $(MAPNIK_CFLAGS)

AM_CFLAGS =\
	 -Wall\
	 -g

lib_LTLIBRARIES = \
	libmapnik.la

libmapnik_la_SOURCES = \
	agg_renderer.cpp\
	datasource_cache.cpp \
	distance.cpp \
	envelope.cpp \
	filter_factory.cpp \
	font_engine_freetype.cpp \
	graphics.cpp \
	image_reader.cpp \
	image_util.cpp \
	layer.cpp \
	line_pattern_symbolizer.cpp \
	load_map.cpp \
	map.cpp \
	memory.cpp \
	memory_datasource.cpp \
	params.cpp \
	placement_finder.cpp \
	plugin.cpp \
	png_reader.cpp \
	point_symbolizer.cpp \
	polygon_pattern_symbolizer.cpp \
	projection.cpp \
	proj_transform.cpp \
	save_map.cpp \
	scale_denominator.cpp \
	shield_symbolizer.cpp \
	text_symbolizer.cpp \
	tiff_reader.cpp \
	wkb.cpp

libmapnik_la_CFLAGS = \
	${PNG_CFLAGS}

libmapnik_la_LDADD = \
	${PNG_LIBS}

libmapnik_la_CXXFLAGS =     \
	-I../include

EXTRA_DIST = \
	$(libmapnik_HEADERS)\
	$(includes_HEADERS)


And here the error message;

Running automake --gnu  ...
src/Makefile.am:51: use `libmapnik_la_LIBADD', not `libmapnik_la_LDADD'
src/Makefile.am:51: variable `libmapnik_la_LDADD' is defined but no
program or src/Makefile.am:51: library has `libmapnik_la' as canonic
name (possible typo)

If I change it to _LIBADD all works.

regards
Andreas




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]