[mapserver-users] MapScript Java ?!
Tobias Zuegel
neodym at datagis.com
Thu Sep 13 10:06:27 PDT 2001
Hi list,
I desperately need help! I tried to generate a java version of
MapScript using SWIG 1.3.7. But that does not work at all :(((
First, I get this message:
[root at datagis4 ~/cvs/mapserver/mapscript/java]# swig -java -shadow
mapscript.i
../../map.h:454. Warning: class keyword used, but not in C++ mode.
Well ... I ignored this warning and tried to compile, but then I got
another error:
[root at datagis4 ~/cvs/mapserver/mapscript/java]# gcc -Dbool=char -DHAS_BOOL
-O2 -m486 -fno-strength-reduce -fPIC -DIGNORE_MISSING_DATA -DUSE_PROJ
-DUSE_PROJ_API_H -DUSE_TIFF -ldg -ljpeg -lttf -ltiff -lz -c
mapscript_wrap.c -I/usr/local/jdk1.2.2/include -I../../
-I/root/opensource_map/mapserver/gd-1.2
mapscript_wrap.c: In function `_SWIG_exception':
mapscript_wrap.c:77: parse error before `excep'
mapscript_wrap.c:78: request for member `ExceptionClear' in something not
a structure or union
mapscript_wrap.c:79: `excep' undeclared (first use in this function)
mapscript_wrap.c:79: (Each undeclared identifier is reported only once
mapscript_wrap.c:79: for each function it appears in.)
mapscript_wrap.c:79: request for member `FindClass' in something not a
structure or union
mapscript_wrap.c:82: request for member `ThrowNew' in something not a
structure or union
I removed those lines and it compiled. But when I tried to access the
classes he complains about missing symbols for "ms_error".
So, I removed everything containing ms_error from the sources, compiled
again and got another error about missing symbols for "msLoadMap"
Thats where I am standing now, and I have no idea what to try next ...
Can anybody tell me what to try now to get it work?
Greetings,
Toby
More information about the MapServer-users
mailing list