Op 09-05-18 om 03:41 schreef Ryan Joseph:
Ok it finally worked. The fpmake.pp file
athttps://svn.freepascal.org/svn/projects/pas2js/trunk was totally different
than the one in the compiler sources.
May I suggest you put these instructions at the top level of the wiki? It’s
pretty easy but I
On Wed, 9 May 2018, Ryan Joseph wrote:
On May 9, 2018, at 1:46 PM, Ryan Joseph wrote:
Ok got it working now finally. Now I need to learn how to do anything at all
besides writeln. :)
Finally got a context open and working. Next things:
1) what’s the best way to handle long strings? in
On Wed, 9 May 2018 15:42:41 +0700
Ryan Joseph wrote:
>[...] > On May 9, 2018, at 1:46 PM, Ryan Joseph
>wrote:
> >
> > Ok got it working now finally. Now I need to learn how to do anything at
> > all besides writeln. :)
>
> Finally got a context open and working. Next things:
These questio
> On May 9, 2018, at 1:46 PM, Ryan Joseph wrote:
>
> Ok got it working now finally. Now I need to learn how to do anything at all
> besides writeln. :)
Finally got a context open and working. Next things:
1) what’s the best way to handle long strings? in JS they’ll loading text from
divs bu
On Wed, 9 May 2018, Ryan Joseph wrote:
On May 9, 2018, at 1:25 PM, Mattias Gaertner wrote:
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
> On May 9, 2018, at 1:25 PM, Mattias Gaertner
> wrote:
>
> 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
On Wed, 9 May 2018, Ryan Joseph wrote:
On May 9, 2018, at 1:20 PM, Michael Van Canneyt wrote:
Where is the rtl.js file ? is it in /Developer/pas2js/packages/rtl ? it
should be in one of the directories specified with -Fu.
I misunderstood the wiki I guess. I thought that command was supp
> On May 9, 2018, at 1:20 PM, Michael Van Canneyt
> wrote:
>
> Where is the rtl.js file ? is it in /Developer/pas2js/packages/rtl ? it
> should be in one of the directories specified with -Fu.
I misunderstood the wiki I guess. I thought that command was supposed to
generate the file for you.
On Wed, 9 May 2018 09:03:29 +0700
Ryan Joseph wrote:
> > On May 9, 2018, at 8:41 AM, Ryan Joseph 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? Ca
On Wed, 9 May 2018, Ryan Joseph wrote:
On May 9, 2018, at 8:41 AM, Ryan Joseph 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
> On May 9, 2018, at 8:41 AM, Ryan Joseph 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 -Ji
> On May 8, 2018, at 6:47 PM, Michael Van Canneyt
> wrote:
>
> Do a checkout of the pas2js repo, and in the toplevel fpmake.pp, remove the
> line with AddLibrary.
Ok it finally worked. The fpmake.pp file at
https://svn.freepascal.org/svn/projects/pas2js/trunk was totally different than
the
On Tue, 8 May 2018, Ryan Joseph wrote:
You mean this line: PT:=P.Targets.AddLibrary('pas2jslib.pp’);?
Yes.
I removed that line but if I do a “make all” in the /utils/pas2js directory I
still get this error. I remember getting this in the past before and doing a
clean install seem to fix
You mean this line: PT:=P.Targets.AddLibrary('pas2jslib.pp’);?
I removed that line but if I do a “make all” in the /utils/pas2js directory I
still get this error. I remember getting this in the past before and doing a
clean install seem to fix it but not this time. The file system.ppu is the
cu
IMO the simplest solution for you is to use the pas2js repo:
Remove the line in fpMake.pp that adds the library.
Run make all.
You will not have the library version of the compiler, but the rest should
be compiled: command-line compiler and web compiler.
Michael.
On Tue, 8 May 2018, Ryan Jo
Are there any other ideas I could try to get this working? No idea why the PPU
version is wrong after a totally clean build (i.e. trashed the entire directory
and recompiled). If another Mac user has a binary they could upload that would
be nice also.
> On May 4, 2018, at 8:41 AM, Ryan Joseph
> On May 3, 2018, at 8:26 PM, Joost van der Sluis wrote:
>
> Change the current directory to utils/pas2js, then do 'make all'.
That’s what I tried first but was told to do it on the top level directory.
There’s the error I get. Maybe I need to trash entire directory and start fresh?
Ryans-Ma
On Thu, 3 May 2018, Ryan Joseph wrote:
On May 3, 2018, at 8:23 PM, Joost van der Sluis wrote:
Actually this makes no sense at all. Pas2js is a separate product that we
should be able to distribute separately from the compiler.
But doesn’t it extend the existing compiler to gain access
On Thu, 3 May 2018, Joost van der Sluis wrote:
Op 02-05-18 om 11:28 schreef Ryan Joseph:
So I need to build the entire compiler and I get pas2js in the end? I
didn’t realize it was built on the entire FPC compiler but I guess that makes
sense.
Actually this makes no sense at all. Pas2js is
> On May 3, 2018, at 8:23 PM, Joost van der Sluis wrote:
>
> Actually this makes no sense at all. Pas2js is a separate product that we
> should be able to distribute separately from the compiler.
But doesn’t it extend the existing compiler to gain access to the parser?
Regards,
Ryan
Op 03-05-18 om 11:00 schreef Ryan Joseph:
A "make all" in the top level directory should suffice (yes, that will build
all of FPC, but that is at least more or less guaranteed to work). You can then pick the
pas2js binary from the utils/pas2js/bin directory.
Make all built the compiler but I
Op 02-05-18 om 11:28 schreef Ryan Joseph:
So I need to build the entire compiler and I get pas2js in the end? I didn’t
realize it was built on the entire FPC compiler but I guess that makes sense.
Actually this makes no sense at all. Pas2js is a separate product that
we should be able to dist
> On May 3, 2018, at 12:53 PM, Sven Barth via fpc-pascal
> wrote:
>
> A "make all" in the top level directory should suffice (yes, that will build
> all of FPC, but that is at least more or less guaranteed to work). You can
> then pick the pas2js binary from the utils/pas2js/bin directory.
On Thu, 3 May 2018, Ryan Joseph wrote:
On May 3, 2018, at 12:53 PM, Sven Barth via fpc-pascal
wrote:
A "make all" in the top level directory should suffice (yes, that will build all of FPC, but that is at least more or less guaranteed to work). You can then pick the pas2js binary from th
> On May 3, 2018, at 12:53 PM, Sven Barth via fpc-pascal
> wrote:
>
> A "make all" in the top level directory should suffice (yes, that will build
> all of FPC, but that is at least more or less guaranteed to work). You can
> then pick the pas2js binary from the utils/pas2js/bin directory.
Ryan Joseph schrieb am Do., 3. Mai 2018, 04:54:
> Can someone put a simple guide to building on the wiki? I tried to build
> from my existing FPC sources and got this error. I never got UNIX down well
> so I don’t know what else I’m supposed to do besides cd to the directory
> and use the “make”
Can someone put a simple guide to building on the wiki? I tried to build from
my existing FPC sources and got this error. I never got UNIX down well so I
don’t know what else I’m supposed to do besides cd to the directory and use the
“make” command. Uploading a stable binary would be nice also b
> On May 2, 2018, at 11:36 PM, Sven Barth via fpc-pascal
> wrote:
>
> It's "Typename = class external name 'foobar' (Basetype)", not "class
> Typename = external name 'foobar' (Basetype)". We're not in C++ after all :P
>
> public
> const READ_BUFFER: nativeint;
> const UNPACK_ROW_L
Ryan Joseph schrieb am Mi., 2. Mai 2018, 15:57:
>
> class TJSWebGL2RenderingContextBase = external name
> 'WebGL2RenderingContextBase' (TJSObject)
>
It's "Typename = class external name 'foobar' (Basetype)", not "class
Typename = external name 'foobar' (Basetype)". We're not in C++ after all :
> On May 2, 2018, at 6:20 PM, Michael Van Canneyt
> wrote:
>
> Yes: You posted the link to 1.0.
I think it’s actually an extension to the original so nothing was lost. The
original didn’t have vertex array objects so it’s best to have both.
https://www.khronos.org/registry/webgl/specs/lates
On Wed, 2 May 2018, Ryan Joseph wrote:
On May 2, 2018, at 5:28 PM, Mattias Gaertner wrote:
What is the difference to the existing webgl.pas?
It’s missing a couple types and missing comments. :) I can fix that of course
and works for other .idl’s also I presume (if you have any other ex
> On May 2, 2018, at 5:28 PM, Mattias Gaertner
> wrote:
>
> What is the difference to the existing webgl.pas?
It’s missing a couple types and missing comments. :) I can fix that of course
and works for other .idl’s also I presume (if you have any other examples send
them and I’ll try). The
On Wed, 2 May 2018 16:28:10 +0700
Ryan Joseph wrote:
> > On May 2, 2018, at 2:08 PM, Michael Van Canneyt
> > wrote:
> >
> > Yes. the fpmkunit needs to be the latest version, for the AddLibrary call.
> > I will see if I can work around it.
>
> So I need to build the entire compiler and I ge
> On May 2, 2018, at 2:08 PM, Michael Van Canneyt
> wrote:
>
> Yes. the fpmkunit needs to be the latest version, for the AddLibrary call. I
> will see if I can work around it.
So I need to build the entire compiler and I get pas2js in the end? I didn’t
realize it was built on the entire FPC
On Wed, 2 May 2018, Ryan Joseph wrote:
On May 2, 2018, at 1:24 PM, Michael Van Canneyt wrote:
It will only work with trunk.
trunk of what? Do mean the entire fpc sources?
Yes. the fpmkunit needs to be the latest version, for the AddLibrary call.
I will see if I can work around it.
> On May 2, 2018, at 1:24 PM, Michael Van Canneyt
> wrote:
>
> It will only work with trunk.
trunk of what? Do mean the entire fpc sources?
cd /Users/ryanjoseph/Downloads/pas2js
ls
Makefilecompilerfpmake.pp utils
Makefile.fpcdemopackages
Regards,
On Wed, 2 May 2018, Ryan Joseph wrote:
On May 2, 2018, at 8:18 AM, Ryan Joseph wrote:
On Mac cd’ing to the directory and using make gives this error:
/usr/local/bin/ppc386 fpmake.pp -n
Fatal: Can't find unit system used by fpmake
Fatal: Compilation aborted
make: *** [fpmake] Error 1
> On May 2, 2018, at 8:18 AM, Ryan Joseph wrote:
>
> On Mac cd’ing to the directory and using make gives this error:
>
> /usr/local/bin/ppc386 fpmake.pp -n
> Fatal: Can't find unit system used by fpmake
> Fatal: Compilation aborted
> make: *** [fpmake] Error 1
Sorry that was the wrong dire
So how do you actually build the parser? I downloaded the source but I don’t
see a binary.
On Mac cd’ing to the directory and using make gives this error:
/usr/local/bin/ppc386 fpmake.pp -n
Fatal: Can't find unit system used by fpmake
Fatal: Compilation aborted
make: *** [fpmake] Error 1
Re
On Tue, 1 May 2018, Ryan Joseph wrote:
On May 1, 2018, at 9:56 PM, Michael Van Canneyt wrote:
You must do
gl := TJSWebGLRenderingContext(canvas.getContext('webgl'));
because getContext can return various classes depending on the argument.
Ok so getContext is method of TJSElement I gue
Ryan Joseph wrote:
>
>
> > On May 1, 2018, at 9:56 PM, Michael Van Canneyt
> wrote:
> >
> > You must do
> > gl := TJSWebGLRenderingContext(canvas.getContext('webgl'));
> >
> > because getContext can return various classes depending on the argument.
>
> Ok so getContext is method of TJSElement I
> On May 1, 2018, at 9:56 PM, Michael Van Canneyt
> wrote:
>
> You must do
> gl := TJSWebGLRenderingContext(canvas.getContext('webgl'));
>
> because getContext can return various classes depending on the argument.
Ok so getContext is method of TJSElement I guess.
Btw I’ve been reading and
On Tue, 1 May 2018, Ryan Joseph wrote:
On May 1, 2018, at 8:28 PM, Michael Van Canneyt wrote:
Check the canvas demo (demo/rtl/democanvas2d.pas)
something like this?
var
canvas: TJSElement; // What type should this be?
gl: TJSWebGLRenderingContext;
begin
canvas := document.createElem
> On May 1, 2018, at 8:28 PM, Michael Van Canneyt
> wrote:
>
> Check the canvas demo (demo/rtl/democanvas2d.pas)
something like this?
var
canvas: TJSElement; // What type should this be?
gl: TJSWebGLRenderingContext;
begin
canvas := document.createElement('canvas');
document.body.app
On Tue, 1 May 2018 15:28:45 +0200 (CEST)
Michael Van Canneyt wrote:
>[...]
> The "new web project" wizard will make the HTML file for you, if you
> installed the pas2js_dsgn.lpk package in Lazarus. I think it is available
> with the distributed latest lazarus,
No. It was added in 1.9.
Mattias
_
On Tue, 1 May 2018, Ryan Joseph wrote:
On May 1, 2018, at 7:49 PM, Michael Van Canneyt wrote:
I didn't. Some Regexps in an editor did the job handsomely...
By hand. Hardcore. ;)
Because I don’t see it on the wiki can post a minimal example/template of how
to get a canvas started?
Ch
> On May 1, 2018, at 7:49 PM, Michael Van Canneyt
> wrote:
>
> I didn't. Some Regexps in an editor did the job handsomely...
By hand. Hardcore. ;)
Because I don’t see it on the wiki can post a minimal example/template of how
to get a canvas started?
Basically I want that but it references
On Tue, 1 May 2018, Ryan Joseph wrote:
On May 1, 2018, at 7:40 PM, Michael Van Canneyt wrote:
Hi,
See subject. Rev 83 in pas2js subversion.
I have no experience with webgl, so if someone could provide several
examples which I can include in the demo folder of pas2js, please post on
the
> On May 1, 2018, at 7:40 PM, Michael Van Canneyt
> wrote:
>
>
> Hi,
>
> See subject. Rev 83 in pas2js subversion.
>
> I have no experience with webgl, so if someone could provide several
> examples which I can include in the demo folder of pas2js, please post on
> the pas2js mailing list o
Hi,
See subject. Rev 83 in pas2js subversion.
I have no experience with webgl, so if someone could provide several
examples which I can include in the demo folder of pas2js, please post on
the pas2js mailing list or send them to me in private.
They would be highly appreciated.
Obviously, if y
50 matches
Mail list logo