[Pas2js] Building problem
Michael Van Canneyt
michael at freepascal.org
Tue Sep 29 18:03:32 CEST 2020
On Tue, 29 Sep 2020, Ryan Joseph wrote:
>
>
>> On Sep 29, 2020, at 12:02 AM, Michael Van Canneyt <michael at freepascal.org> wrote:
>>
>> Your configuration file /etc/pas2js.cfg or ~/.pas2js.cfg is either missing or wrong.
>> pas2js works always with sources, it needs the paths to the sources of all
>> units. My config file contains:
>>
>> -Fu/Users/michael/pas2js/packages/rtl
>> -Fu/Users/michael/pas2js/packages/*
>
> Ok, I added the config file and it finds system now. Still the command I'm using must be wrong.
>
> macro_test$ pas2js -Jc -Jirtl.js -Tbrowser /Users/ryanjoseph/Developer/Projects/pas2js/WebGL/Pas2JS_WebGL.pas
> /Users/ryanjoseph/Developer/pas2js/packages/rtl/system.pas(369,1) Error: Expected "asm"
>
> In my config file:
>
> -Sc
> -Fu~/Developer/pas2js/packages/rtl
> -Fu~/Developer/pas2js/packages/*
That should be correct. Didn't know for sure the ~ is supported.
Not sure what version you are using, though:
Line 369 contains (in my copy):
function ParamStr(Index: Longint): String;
The 1.4.x (released) version contains a comment on line 369.
Michael.
More information about the Pas2js
mailing list