[mapguide-users] Java and Linux

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Tue Jun 17 13:50:18 EDT 2008


Not sure if it helps you out, but MgGuardDisposable was introduced in 
MGOS 2.0 and was not part of MGOS 1.2.
You will get errors like "Missing MgGuardDisposeableToDisposable" if you 
try to mix the two versions of the API.

Regards, Kenneth Skovhede, GEOGRAF A/S



gimbrogno @smartlab skrev:
> Hi all,
> excuse me for my continuos requests, but I'm still trying to solve my
> problems with MapGuide on Linux and Java example.
>
> I'll try to describe all steps I've covered, just to be sure I'm not leaving
> anything behind and doing nothing wrong.
>
> I've compiled and tryied both the 2.0.1 and 1.2 releases without success,
> it's going to get frustrating as all my day is spent compiling and trying to
> figure out what's wrong, while I can read on this list you all have the
> things up and running smoothly... please, help me exit the tunnel! :-P
>
> Well, what I've done is compile the entire MapGuide project with some
> modifications to Makefiles as they were not working (missing libraries,
> wrong gcc as the one I was using didn't support march-i386 and stuff like
> this) on my Centos 5 server.
>
> I've managed to compile the entire suite and I'm actually able to use the
> PHP ajax viewer example without any problem, but when it comes to Java
> viewer I'm facing some strange linkage errors regarding a missing
> SWIGMgSerializableToMgGuardDisposable native function.
>
> I've gone deeper on the problem and I finally understood the Java API is
> practically generated through SWIG from C++ code and I'm wondering if that
> generation process could have produced any nonworking code.
>
> So, my qyestions are:
>  - should I regenerate the java api through SWIG to be sure the code was
> generated correctly?
>  - should I try to generate the java library using the latest version of
> SWIG?
>  - should I tell my boss we can't use the java library at all?
>  - in case the first two questions get a positive answer can someone help me
> pointing to some documentation for the generation process regarding the
> MapGuide code (which sources should I use as input and stuff like that)?
>
> Thank you all guys!
>   


More information about the mapguide-users mailing list