[Pas2js] PAS2JS design add on for Lazarus
Stephen Wright
stephenmichaelwright at yahoo.co.uk
Sun Mar 18 17:39:06 CET 2018
Hi Mattias
As you suggested last week, I have tried to add the Pas2JS design add on “components/pas2js/pas2jsdsgn.lpk” into Lazarus.
I did this after running FPCUpDelux to install the trunk versions of FPC and Lazarus as well as after downloading the RTL package from https://svn.freepascal.org/svn/projects/pas2js/trunk as recommended in the Pas2JS wiki.
The package “pas2jsdsgn” compiles and installs but when I create a 'Web Browser Application' project this will not compile unless the package pas2js_rtl is downloaded . After this is done, the RTL package will not compile without asking for “Pas2JS.exe”. We have placed a version of “Pas2JS.exe” in the project folder but it is not clear if this is the specific version needed. Having done this, the project still will not compile (Fatal: Compilation aborted) so we have not been able to use this option to explore your latest demos.
Any suggestions on how to get this working?
As I was stuck on “Plan A” I tried plan B which is to directly include the PAS2JSCompiler, Pas2jsLogger, and Pas2jsFileUtils, units in a test program of my own. This happily compiles, runs and transpiles a “hello world” program. However when I then added “PAS2JSCompiler” to the uses clause of the Hello world program in order to see if it is possible to build a Javascript version of Pas2JS I got a memory access error which I cannot debug, probably relating to reading incompatible units?
I guess going straight from “hello world” to expecting the transpiler to transpile itself is a big jump. However any thoughts on what might be causing these problems or how to track it down will be much appreciated.
Regards Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20180318/e4d74a92/attachment.html>
More information about the Pas2js
mailing list