[mapguide-internals] mapguide 2 trunk cmake patches and instructions - with links instead of patches

Helio Chissini de Castro helio at kde.org
Thu Oct 23 15:19:23 EDT 2008


On Quinta 23 Outubro 2008 17:02:19 Zac Spitzer wrote:
> [ 53%] Building CXX object
> Common/Foundation/CMakeFiles/MgFoundation.dir/FoundationBuild.cpp.o
> Linking CXX shared library libMgFoundation.so
> [ 53%] Built target MgFoundation
> Scanning dependencies of target MgGeometry
> [ 53%] Building CXX object
> Common/Geometry/CMakeFiles/MgGeometry.dir/GeometryBuild.cpp.o
> In file included from
> /home/zac/mapguide-2.0.2/Common/Geometry/GeometryBuild.cpp:61:
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp: In static
> member function 'static bool MgGeosUtil::Contains(MgGeometry*,
> MgGeometry*)':
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:75: error:
> expected type-specifier
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:75: error:
> expected unqualified-id before '::' token
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:75: error:
> expected `)' before '::' token
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:75: error:
> expected `{' before '::' token
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:75: error:
> expected initializer before ')' token
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:75: error:
> expected primary-expression before 'catch'
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:75: error:
> expected `;' before 'catch'
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:75: error:
> expected primary-expression before 'catch'
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:75: error:
> expected `;' before 'catch'
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:75: error:
> expected primary-expression before 'catch'
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:75: error:
> expected `;' before 'catch'
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp: In static
> member function 'static bool MgGeosUtil::Intersects(MgGeometry*,
> MgGeometry*)':
> /home/zac/mapguide-2.0.2/Common/Geometry/GeosUtil.cpp:112: error:
> expected type-specifier

This is a little more obvious. If you read Jason previous post, he has Geos 
2.x in their Ubuntu, which means if you applied my patch, i just changed 
exception to match Geos 3.x

To back to geos 2.x, change in 
mapguide-2.0.2/Common/Geometry/GeometryExceptionDef.h

- catch (geos::util::GEOSException* e)
+ catch (GEOSException* e)

-        arguments.Add(MgUtil::MultiByteToWideChar(e->what()));
+        arguments.Add(MgUtil::MultiByteToWideChar(e->toString()));           


Of course this is temporary, as if people decide to adopt build i will just 
add a proper test for versions ( should be done before but i was dealing 
always with geos 3.x )





-- 
Helio Chissini de Castro
KDE Project
Brasil and South America Primary Contact


More information about the mapguide-internals mailing list