Broken Linux build post-VS2015 migration

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Broken Linux build post-VS2015 migration

Jackie Ng
Hi All,

I've been trying to build MapGuide on (Ubuntu) Linux after the VS2015 migration and have ran into several compiler errors:

Oem/DWFTK/develop/global/src/dwf/package/DefinedObject.cpp:

It's complaining about LONG_PTR being undefined. This seems to be a windows-only typedef. What should be used on Linux (go back to long as it was originally)?

Various files under Oem/geos:

It's complaining about std::fmax being undefined. This is a new function in the C++11 standard library, should we be compiling all our code as C++11 (-std=c++11), or just #ifdef back in the original code for Linux?

There's probably others I've yet to encounter.

- Jackie

Reply | Threaded
Open this post in threaded view
|

Re: Broken Linux build post-VS2015 migration

Andy Zhang
Hi Jackie,

We are working on the Linux build now. For the problems you encounter, I prefer to use #ifdef back in the original code for Linux.

Best Regards
Andy

-----Original Message-----
From: mapguide-internals [mailto:[hidden email]] On Behalf Of Jackie Ng
Sent: Thursday, October 29, 2015 7:01 AM
To: [hidden email]
Subject: [mapguide-internals] Broken Linux build post-VS2015 migration

Hi All,

I've been trying to build MapGuide on (Ubuntu) Linux after the VS2015 migration and have ran into several compiler errors:

Oem/DWFTK/develop/global/src/dwf/package/DefinedObject.cpp:

It's complaining about LONG_PTR being undefined. This seems to be a windows-only typedef. What should be used on Linux (go back to long as it was originally)?

Various files under Oem/geos:

It's complaining about std::fmax being undefined. This is a new function in the C++11 standard library, should we be compiling all our code as C++11 (-std=c++11), or just #ifdef back in the original code for Linux?

There's probably others I've yet to encounter.

- Jackie





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Broken-Linux-build-post-VS2015-migration-tp5233213.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.
_______________________________________________
mapguide-internals mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-internals