#1 2018-10-23 15:35:25

JamesInform
Member
Registered: 2018-10-23
Posts: 2

Cannot compile SynSM.pas under Win64 (Delphi)

Hi,

I am evaluating your great framework and came across the spidermonkey integration.

I have made up a simple demo based on the information from your documentation.

It runs fine under win32 target platform. But I am not able to compile it for win64 target platform.

I am using Delphi Tokyo 10.2.3 with the 64 Bit compiler bugfix.

Steps to reproduce:

1. Create a new blank VCL project.
2. Add SynSM.pas to the uses clause in the interface section.
3. Set target platform to Windows 64
4. try to build the project

Then errors occur e.g. in SynSMApi.pas:
undeclared identifier: NSPRlib (Line 3713)
invalid typecast (Line 4457) 

What am I doing wrong?

Offline

#2 2018-10-23 17:59:21

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,567
Website

Re: Cannot compile SynSM.pas under Win64 (Delphi)

Welcome to forum.

We never compile SynSM for x64. Even more - I'm not sure SpinerMonkey24 on which SynSm is based it stable on x64. So It's for legacy only.

Currently we support a  SyNode sub-project. This is binding for SpiderMonkey 52 with modern JS (ES6) version. A little bit more complex compared to  SynSM, but compiled for x32 (Windows/Linux) and for x64 (Linux - tested on FPC). It's include remote debugger (either by FireFox59 or VSCode with plugin), CommonJS modules and compartible with many npm modules.
See samples inside SyNode/Samples

Offline

#3 2018-10-23 18:17:36

JamesInform
Member
Registered: 2018-10-23
Posts: 2

Re: Cannot compile SynSM.pas under Win64 (Delphi)

Thanks for the information.

So, I will turn your proposed way!

Maybe its a good idea to update your documentation on this topic.

Offline

Board footer

Powered by FluxBB