[Pas2js] Building problem

Michael Van Canneyt michael at freepascal.org
Tue Sep 29 08:02:35 CEST 2020



On Mon, 28 Sep 2020, Ryan Joseph wrote:

> It's been a couple years since I tried build pas2js and I'm having some problems. Does this error make sense or did I get the command wrong? I didn't even keep build instructions for my older projects and I can't remember! Thanks.
>
> macro_test$ pas2js -h
> Pas2JS Compiler version 1.5.1 [2020/09/19] for Darwin x86_64
> Copyright (c) 2019 Free Pascal team.
>
> pas2js -Jc -Jirtl.js -Tbrowser /Users/ryanjoseph/Developer/Projects/pas2js/WebGL/Pas2JS_WebGL.pas
> /Users/ryanjoseph/Developer/Projects/pas2js/WebGL/Pas2JS_WebGL.pas(2,5) Error: can't find unit "System"
> Fatal: Compilation aborted

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/*

Michael.


More information about the Pas2js mailing list