Java MapScript 'make test' error

Philip Mark Donaghy philip.donaghy at GMAIL.COM
Sat Jun 3 02:48:07 EDT 2006


I've resolved the javac issues.

I changed line 23 to,

                        shapeObj shp = new shapeObj(
layer.getType().swigValue()
);

This seems to do the right thing. Now I have a libmapscript.so error.

java.lang.UnsatisfiedLinkError:
/home/phil/opensource/mapserver/mapscript/java/libmapscript.so:
/home/phil/opensource/mapserver/mapscript/java/libmapscript.so: undefined
symbol: msOWSDispatch

Not really sure where to resolve this.

Phil

On 6/2/06, Philip Mark Donaghy <philip.donaghy at gmail.com> wrote:
>
> More info on my environment Java 1.5.0 and Linux 2.6.8 on Debian.
>
> Phil
>
>
> On 6/2/06, Philip Mark Donaghy <philip.donaghy at gmail.com> wrote:
> >
> > I am trying out Java MapScript and I encountered the following error
> > when I run 'make test',
> >
> > examples/QueryByAttributeUnicode.java:23: cannot find symbol
> > symbol  : constructor shapeObj(edu.umn.gis.mapscript.MS_LAYER_TYPE)
> > location: class edu.umn.gis.mapscript.shapeObj
> >                         shapeObj shp = new shapeObj( layer.getType()  );
> >                                        ^
> > 1 error
> > make: *** [test] Error 1
> >
> > Effectivly, the shapeObj does not have a constructor with argument
> > MS_LAYER_TYPE.
> >
> > I am building using the following versions, mapserver CVS,
> > freetype-2.1.10, gdal-1.3.1, libpng-1.2.10, zlib-1.2.3, gd-2.0.33,
> > jpeg-6b, proj-?. Using the guide,
> > http://mapserver.gis.umn.edu/docs/howto/javamapscript
> >
> > Has anyone (Umberto) done this lately?
> >
> > Phil
> > --
> > Philip Donaghy
> > donaghy.blogspot.com del.icio.us/donaghy/philip
> > Skype: philipmarkdonaghy
> > Office: +33 5 56 60 88 02
> > Mobile: +33 6 20 83 22 62
> >
>
>
>
> --
> Philip Donaghy
> donaghy.blogspot.com del.icio.us/donaghy/philip
> Skype: philipmarkdonaghy
> Office: +33 5 56 60 88 02
> Mobile: +33 6 20 83 22 62
>



-- 
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20060603/c6c8bb30/attachment.html


More information about the mapserver-dev mailing list