[Zoo-discuss] ZOO and Mapserver 6.4

Fenoy Gerald gerald.fenoy at geolabs.fr
Thu Nov 5 04:57:10 PST 2015


Hi Jeff,
it would be really great to try it on windows platform.

I guess that you will need to edit the name.opt to also point to the « build » subdirectory from the MapServer source code for being able to build against MapServer 7.0.0. Well, after looking into the building procedure when the MapServer support was activated, it seems that we are requiring the name.opt coming from MapServer. Hopefully this file seems to be still present in the MapServer source directory [1] so I guess yo won’t have any issue by applying the patch. In case you have any compilation issue please le us know.

Knut if you are around you may also give the MapServer 7.0.0 version support a try on Windows.

Hope we succeed in supporting MapServer 7.0.0,
Best regards,

> Le 5 nov. 2015 à 13:30, Jeff McKenna <jmckenna at gatewaygeomatics.com> a écrit :
> 
> Hi Gérald, I am curious if you were able to get this MapServer 7 patch working with Windows.  Please let me know.
> 
> -jeff
> 
> 
> 
> On 2015-11-05 6:22 AM, Fenoy Gerald wrote:
>> Dear Luca,
>> as promised I take a quick look for trying to build the ZOO-Kernel against the MapServer 7.0.0 version.
>> 
>> Strangely it worked with only few modifications in the source code, in fact commenting 2 lines was enough to get it working. I probably tried before the official release of the 7.0.0 version cause it seems to work perfectly from what I can see. I’ve re-used the workshop material in the VM and put in place the MapServer 7.0.0 version, then rebuild the ZOO-Kernel and strongly it worked. Obviously I had to modify the ZOOMakefile.opts to fit with my MapServer setup (mainly to make it able to find the mapserver-config.h which was unfortunately not installed by make install from the MapSever directory).
>> 
>> I’ve made all the modifications required available in the patch attached to this mail to avoid having to edit any files during the building procedure.
>> 
>> So I would like you to try the following, starting a fresh svn checkout :
>> 
>> patch -p0 < ms7.patch
>> autoconf
>> ./configure —with-python —with-js —with-mapserver=<FULL_PATH_TO_MS_SOURCE_CODE>
>> make
>> sudo make install && sudo ldconfig
>> 
>> This suppose that you run make not directly in the MapServer source code directory but in a build subdirectory. In other case you will need to edit the configure.ac file to point to your build location (it is required to find the mapserver-config.h file).
>> 
>> I have made only tests using the routing service from the ZOO-Project workshop so there may be some issue for some specific services but I don’t why we may have any issue in publishing something else than lines (the result of the routing service is a set of lines).
>> 
>> I hope you can confirm that the MapServer 7.0.0 support is working, if it is also working on your side, then I will apply a more general patch to the SVN and commit it. I think that we should keep the source code as it was for the 6.2.0 version which is working like a charm for some years now and adapt for the 7.0.0 version by using ifdef block around the two lines I’ve juste commented in the patch I provided.
>> 
>> I hope to hear back from you,
>> Best regards,
>> 
>> 
>> 
>> 
>> 
>> 
>>> Le 5 nov. 2015 à 10:26, Fenoy Gerald <gerald.fenoy at geolabs.fr> a écrit :
>>> 
>>> Dear Luca,
>>> thanks a lot for coming back on this topic.
>>> 
>>> I’ve discussed the issue I faced when passing to 7.0 with Thomas during the foss4g in Seoul and he told me that now we have to initialize the map object with some initializing functions dedicated to allocate memory. Indeed from what I was able to try some months back the ZOO-Kernel failed due to segmentation violation which should be caused by a memory part which was not correctly initialized.
>>> 
>>> I will try to upgrade to MapServer 7.0 on a VM and will let you know what are the result.
>>> 
>>> Best regards,
>>> 
>>>> Le 5 nov. 2015 à 09:33, Luca Delucchi <lucadeluge at gmail.com> a écrit :
>>>> 
>>>> On 28 January 2014 at 11:12, Fenoy Gerald <gerald.fenoy at geolabs.fr> wrote:
>>>>> Dear Luca,
>>>> 
>>>> 
>>>> Dear Gerald,
>>>> 
>>>> I'm back on this topic
>>>> 
>>>>> you should try using the following:
>>>>> 
>>>>>> MS_LDFLAGS=/home/lucadelu/compilati/mapserver-6-4-1/build/libmapserver.so
>>>>> 
>>>>> 
>>>>> You kept the « -L » in what you gave initially.
>>>>> 
>>>>> For the CFLAGS, I’m not sure this is correct as you said that you built Mapserver in some other place, so the "-I/home/lucadelu/compilati/mapserver-6-4-1/"  should point to the location where MapServer was built.
>>>>> 
>>>>>> MS_CFLAGS=-DUSE_MS   -I/home/lucadelu/compilati/mapserver-6-4-1/
>>>>> 
>>>> 
>>>> any news to compile zoo against mapserver 6.4.1? or in the worst case
>>>> did you try with mapserver 7?
>>>> 
>>>>> 
>>>>> Hope this helps,
>>>>> Best regards,
>>>>> 
>>>> 
>>>> 
>>>> --
>>>> ciao
>>>> Luca
>>>> 
>>>> http://gis.cri.fmach.it/delucchi/
>>>> www.lucadelu.org
>>>> _______________________________________________
>>>> Zoo-discuss mailing list
>>>> Zoo-discuss at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/zoo-discuss
>>> 
>>> 
>>> 
>>> Gérald Fenoy
>>> http://wiki.osgeo.org/wiki/User:Djay
>>> 
> 
> -- 
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/zoo-discuss



Gérald Fenoy
http://wiki.osgeo.org/wiki/User:Djay



More information about the Zoo-discuss mailing list