Hi,

I've not used this functionality myself, and I remember at a MapServer 
codesprint there were problems trying to compile this over 5 years ago. In 
answer to your question about getting it working with MapServer 8 - I doubt 
this is possible without updating the source code. 

As Jeff wrote it will need someone to attempt to update this to work with newer 
versions. It would require experience of the v8 engine and its API changes in 
the last 10 years to get this working again. A few links that may be useful to 
get started:

- the code - 
https://github.com/MapServer/MapServer/tree/4b7ad75eda030eca919b7f7d06de8a8e95ca52f3/mapscript/v8
- the RFC about its implementation - 
https://mapserver.org/development/rfc/ms-rfc-106.html
- the original pull request - https://github.com/MapServer/MapServer/pull/4827

Just to note this support is to allow shapes to be manipulated with JS 
functions in a Mapfile, and unrelated to MapScript. Adding MapScript JS support 
is probably easier as it is one of the SWIG target languages. 

Seth

--
web:https://geographika.net & https://mapserverstudio.net
twitter: @geographika

On Thu, Jun 8, 2023, at 6:22 PM, Сухно Николай wrote:
> in this case the situation is different  
> https://github.com/MapServer/MapServer/issues/5484
> The author of the topic tried to use the compiled libraries from 
> version 3.14, although 3.20 is needed
> Version 7.0.4 is also discussed there.
> I have a positive experience building a mapserver 7.0.0 with v8 support 
>  for windows and Linux(centos 7). 
> If someone needs it, I can give instructions on this.
>
> But my original question is about mapserver 8. 
>
> -----Original Message-----
> From: MapServer-users <[email protected]> On 
> Behalf Of Jeff McKenna
> Sent: Thursday, June 8, 2023 6:32 PM
> To: [email protected]
> Subject: Re: [MapServer-users] FW: Unable to build mapserver 8 on 
> WIndows with v8 support
>
> I honestly don't think that any love has been given to V8 support in 
> many years (see the discussion at
> https://github.com/MapServer/MapServer/issues/5484 )
>
> Might be good to give that issue a ping, and for you to post your exact 
> errors there, and maybe even a pull request if possible.
>
> PS. as MS4W distributes all mapscripts, V8 is not yet included, and I'm 
> willing to add it....but it seems it will take some effort, a community 
> effort...
>
> -jeff
>
>
>
> --
> Jeff McKenna
> GatewayGeo: Developers of MS4W, MapServer Consulting and Training 
> co-founder of FOSS4G http://gatewaygeo.com/
>
>
>
> On 2023-06-08 12:09 p.m., [email protected] wrote:
>> Good day to all!
>> 
>> I'm trying to compile a mapserver with v8 support for windows
>> 
>> as written in the docs 
>> https://mapserver.org/installation/v8.html#obtaining-compiling-and-installing-v8-and-v8-mapscript
>>  
>> <https://mapserver.org/installation/v8.html#obtaining-compiling-and-installing-v8-and-v8-mapscript>
>>  «you have to use v8 3.20»
>> 
>> The problem in v8, that  is a very old version and it can't be built for 
>> MSVC versions higher than 2013
>> 
>> At the same time, the SDK  mapserver 8 is only available for 2022 
>> https://gisinternals.com/sdk.php <https://gisinternals.com/sdk.php>
>> 
>> Previously I built v8 under MSVC 2013, but this lib’s  not work with 
>> MSVC 2022 due to binary incompatibility
>> 
>> 
>> _______________________________________________
>> MapServer-users mailing list
>> [email protected]
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> _______________________________________________
> MapServer-users mailing list
> [email protected]
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> MapServer-users mailing list
> [email protected]
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to