On Wed, 9 May 2018, Ryan Joseph 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
The above should be fine. It may be easier to use a config file, though.
Fatal: Compilation aborted invalid custom JS file name "rtl.js"
Where is the rtl.js file ? is it in /Developer/pas2js/packages/rtl ? it should be in one of the directories specified with -Fu. my .pas2js.cfg config file contains the following: -Fu/home/michael/projects/pas2js/packages/rtl -Fu/home/michael/projects/pas2js/packages/* And I have symlinked rtl.js (available in compiler/utils/pas2js/dist/) in directory /home/michael/projects/pas2js/packages/rtl, so the compiler will always find it. Michael.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal