[ELGIS] libmapscript.so not built with mapserver-java-6.0.1-2.el6.x86_64.rpm or from source.rpm?

Hatzopoulos, Nikolaos hatzopou at chapman.edu
Wed Sep 28 13:41:13 EDT 2011


so for the mapserver-java-6.0.1-2.el6.x86_64.rpm
the mapscript is here:
/usr/share/java/mapscript.jar
and we don't pass the libmapscript.so it is here:
/home/nickhatz/rpmbuild/BUILD/mapserver-6.0.1/mapscript/java/libmapscript.so

which means we compile it and we don't install it

but where we suppose to install it? any sugestions?

line 171 mapserver.spec:

# install java
mkdir -p %{buildroot}%{_javadir}
install -p -m 644 mapscript/java/mapscript.jar %{buildroot}%{_javadir}/

we need to add a line here to install the libmapscript.so propably

--Nikos

________________________________________
From: el-bounces at lists.osgeo.org [el-bounces at lists.osgeo.org] on behalf of Hatzopoulos, Nikolaos [hatzopou at chapman.edu]
Sent: Wednesday, September 28, 2011 10:22 AM
To: pj at admin.cassens.com; el at lists.osgeo.org
Subject: RE: [ELGIS] libmapscript.so not built with     mapserver-java-6.0.1-2.el6.x86_64.rpm or from source.rpm?

I didn't mention I was using gdal 1.8.1

--Nikos
________________________________________
From: el-bounces at lists.osgeo.org [el-bounces at lists.osgeo.org] on behalf of Hatzopoulos, Nikolaos [hatzopou at chapman.edu]
Sent: Wednesday, September 28, 2011 10:20 AM
To: pj at admin.cassens.com; el at lists.osgeo.org
Subject: RE: [ELGIS] libmapscript.so not built with     mapserver-java-6.0.1-2.el6.x86_64.rpm or from source.rpm?

so I was trying to compile  6.0.1 mapserver with geos library 3.2
it didn't work, it works though with the 3.3

--Nikos
________________________________________
From: el-bounces at lists.osgeo.org [el-bounces at lists.osgeo.org] on behalf of Hatzopoulos, Nikolaos [hatzopou at chapman.edu]
Sent: Wednesday, September 28, 2011 10:01 AM
To: pj at admin.cassens.com; el at lists.osgeo.org
Subject: RE: [ELGIS] libmapscript.so not built with     mapserver-java-6.0.1-2.el6.x86_64.rpm or from source.rpm?

/home/nickhatz/rpmbuild/BUILD/mapserver-5.6.5/mapscript/java/libmapscript.so

yes I don't see it somewhere elese other than there

I'll try to recompile the 6.0.1 to see where it went :)

--Nikos
________________________________________
From: el-bounces at lists.osgeo.org [el-bounces at lists.osgeo.org] on behalf of pj at admin.cassens.com [pj at admin.cassens.com]
Sent: Tuesday, September 27, 2011 6:19 PM
To: el at lists.osgeo.org
Subject: [ELGIS] libmapscript.so not built with mapserver-java-6.0.1-2.el6.x86_64.rpm or from source.rpm?

Question: How do I get the file libmapscript.so? The developer in charge of a software project needs it. I can not find it in the mapserver-java as the developer states. An rpm install of the the prebuilt binary does not have. I have attempted to compile the mapserver-6.0.1-2.el6.src.rpm and only find mentions in the build output of libmapscript like:

mapscript_wrap.c:384: note: expected 'signed char *' but argument is of type 'unsigned char *'
g++ -shared  -fpic mapscript_wrap.o -o libmapscript.so  -L../.. -lmapserver -lfreetype -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11  -lexpat   -lproj -ljpeg -lpng -lgif  -lgdal -L/usr/lib64 -lpq  -lcurl    -L/usr/lib64 -lgeos_c -lpthread -lc  -L/usr/lib64 -lxslt -L/usr/lib64 -lexslt -lz -lxml2 -lz -lm -lfribidi   -lm -lstdc++ -lfreetype -lfontconfig -lz -lcairo -lpng12
jar cf mapscript.jar edu

or

ar rc libmapserver.a renderers/agg/src/clipper.o renderers/agg/src/agg_arc.o renderers/agg/src/agg_curves.o renderers/agg/src/agg_vcgen_contour.o renderers/agg/src/agg_vcgen_dash.o renderers/agg/src/agg_vcgen_stroke.o renderers/agg/src/agg_image_filters.o renderers/agg/src/agg_line_aa_basics.o renderers/agg/src/agg_line_profile_aa.o renderers/agg/src/agg_sqrt_tables.o renderers/agg/src/agg_embedded_raster_fonts.o renderers/agg/src/agg_trans_affine.o renderers/agg/src/agg_vpgen_clip_polygon.o renderers/agg/src/agg_vpgen_clip_polyline.o renderers/agg/src/agg_font_freetype.o renderers/agg/src/agg_svg_parser.o renderers/agg/src/agg_svg_path_renderer.o renderers/agg/src/agg_svg_path_tokenizer.o mapgeomutil.o mapdummyrenderer.o mapogl.o mapoglrenderer.o mapoglcontext.o mapimageio.o mapcairo.o maprendering.o mapgeomtransform.o mapquantization.o maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o mapagg.o mapoutput.o mapgdal.o mapimagemap.o mapows.o mapwfs.o mapwfs11.o mapwfslayer.o mapcontext.o maphttp.o mapdrawgdal.o mapjoin.o mapgraticule.o mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o mapwcs11.o mapcpl.o cgiutil.o maprasterquery.o mapobject.o mapgeos.o classobject.o layerobject.o mapio.o mappool.o mapregex.o mappluginlayer.o mapogcsos.o mappostgresql.o mapcrypto.o mapowscommon.o maplibxml2.o mapdebug.o mapchart.o maptclutf.o mapxml.o mapkml.o mapkmlrenderer.o mapogroutput.o mapwcs20.o  mapogcfiltercommon.o mapunion.o mapcluster.o
ranlib libmapserver.a
# We don't want to let the shared library get out of sync with the
# static library if it exists.
if test -r libmapserver.so ; then \
          make shared ; \
        fi

I'm lost.

I've google'd a bunch and have come up with only fleeting comments and an ignored bug for the Fedora side (https://bugzilla.redhat.com/show_bug.cgi?id=526887) for the reason why libmapscript.so is not being built in general.

I finally stumbled here for help... Please be gentle as I am very new to compiling mapserver and using it (I am a long time Linux admin, however). My preference as an admin is to use built rpm's like the ones found here (and epel etc) and *NOT* compile from source directly. I don't mind compiling *.src.rpm's, however.

Any gentle pointers on what's wrong?

Thanks

pjwelsh
_______________________________________________
el mailing list
el at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/el
_______________________________________________
el mailing list
el at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/el
_______________________________________________
el mailing list
el at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/el
_______________________________________________
el mailing list
el at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/el


More information about the el mailing list