[fpc-pascal] pas2js Webgl unit committed
Michael Van Canneyt
michael at freepascal.org
Wed May 9 08:20:19 CEST 2018
On Wed, 9 May 2018, Ryan Joseph wrote:
>
>
>> On May 9, 2018, at 8:41 AM, Ryan Joseph <ryan at 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.
More information about the fpc-pascal
mailing list