On Wed, 9 May 2018 09:03:29 +0700
Ryan Joseph <r...@thealchemistguild.com> wrote:

> > On May 9, 2018, at 8:41 AM, Ryan Joseph <r...@thealchemistguild.com> wrote:
> > 
> > Ok it finally worked.  
> 
> Making progress but the wiki is incomplete I think. I figured out how to add 
> the rtl with -Fu but I’m getting an error. What’s wrong with that name? Can 
> you show an example of a working command line?
> 
> ./pas2js -Jc -Jirtl.js -Tbrowser -Fu/Developer/pas2js/packages/rtl 
> /Users/ryanjoseph/Downloads/hello.pas
> Fatal: Compilation aborted
> invalid custom JS file name "rtl.js"

It means file not found. I will change the error message.

The -Ji option searches in the unit search path. In the svn the rtl.js
is only in "compiler/utils/pas2js/dist/rtl.js". So you need to add a
-Fu.
In the release it is in "packages/rtl/rtl.js" as well, so it can be
found without an extra -Fu.


Mattias
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to