[fpc-pascal] pas2js Webgl unit committed

Mattias Gaertner nc-gaertnma at netcologne.de
Wed May 9 08:25:57 CEST 2018


On Wed, 9 May 2018 09:03:29 +0700
Ryan Joseph <ryan at thealchemistguild.com> 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
> 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



More information about the fpc-pascal mailing list