#1 2017-12-21 14:25:08

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

SyNode for linux/FPC 3.1.1 status

A month ago we start to adopt a SyNode to be compiled by FPC and used under Linux. While SpiderMonkey low level wrappers work perfectly under Linux more hi-level API like SyNodeSimpleProto - a wrapper around old-style RTTI classes have a problems (mostly because of diffs between FPC & Delphi). To not broke a trunk we continue to work on SyNode in fb_SyNode_fpc311 branch. I hope we finish soon

Offline

#2 2017-12-21 15:22:19

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: SyNode for linux/FPC 3.1.1 status

That's great, MPV! The current SyNode is already a great achievement you have achieved!


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#3 2018-03-04 12:02:56

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

Re: SyNode for linux/FPC 3.1.1 status

We finish SyNode version for FPC3.1.1 ( @ab - please, merge pull request 93 and delete fb_SyNode_fpc311 - because of LFS I'm unable to do anything with this brunch form my side)

So, now SyNode can be compiled by FPC 3.1.1 and work for win64 and linux64 targets.
Our roadmap is:
- improve nodeJS compatibility (first of all we need to add to the fs binding  functions for working with file descriptors fs.openSync and other)
- MacOS FPC3.1.1 target

Offline

#4 2018-03-04 15:05:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: SyNode for linux/FPC 3.1.1 status

Merge done - including in fossil as https://synopse.info/fossil/info/056f6e17ba

Thanks a lot for this very valuable input!

Offline

#5 2018-03-05 22:42:53

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

Re: SyNode for linux/FPC 3.1.1 status

In order to run the same SyNode binary on Ubuntu 16.04 and CentOS 7 we recompile a libmozjs-52 with glibc2.17.
Can be downloaded here

Offline

#6 2018-03-20 15:33:02

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

Re: SyNode for linux/FPC 3.1.1 status

To avoid conflicts with a packaged (available in apt, yum etc.) version of  libmozjs-52 library we rename our patched version of SpiderMonkey library to synmozjs52.dll / libsynmozjs52.so - see patch.
Now libsynmozjs52.so can be placed inside `/usr/lib` directory without naming conflicts. Downloads paths to precompiled binaries is in the SyNode Readme

Last edited by mpv (2018-03-20 15:37:40)

Offline

Board footer

Powered by FluxBB