Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-11

What is GeckoPort version 2 status?

11 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Maxim Ganetsky

Hello.

As far as I can see latest SVN version of GeckoPort version 2 is broken. It cannot be compiled via Lazarus package (e.g. each-version directory is missing). Also GeckoPort version 2 cannot be installed via FpPkg (at least with FPC 2.6.1).

What's its status? Will it be fixed? Is it usable at all?

Best regards, Maxim Ganetsky mailto:

Reply by email

Joost van der Sluis
to Maxim Ganetsky
Maxim Ganetsky wrote 6 lines
As far as I can see latest SVN version of GeckoPort version 2 is broken. It cannot be compiled via Lazarus package (e.g. each-version directory is missing). Also GeckoPort version 2 cannot be installed via FpPkg (at least with FPC 2.6.1). What's its status? Will it be fixed? Is it usable at all?

This might be a really old message, but if you still need help in getting it to work, I'm available.

What's the problem you do have with the fppkg installation?

Joost.

Reply by email

Joost van der Sluis
Maxim Ganetsky wrote 15 lines
11.01.2013 19:50, Joost van der Sluis ?????: > On Sat, 2012-11-03 at 02:39 +0400, Maxim Ganetsky wrote: >> As far as I can see latest SVN version of GeckoPort version 2 is broken. >> It cannot be compiled via Lazarus package (e.g. each-version directory >> is missing). Also GeckoPort version 2 cannot be installed via FpPkg (at >> least with FPC 2.6.1). >> >> What's its status? Will it be fixed? Is it usable at all? > > This might be a really old message, but if you still need help in > getting it to work, I'm available. > > What's the problem you do have with the fppkg installation? Wow, thanks for your reply.

No problem. It was me that was so late...

The problem is that GeckoPort v2 fails to compile. See full log:

Could you try again?

For installation into Lazarus you have to supply the path of lazarus in your fppkg.cfg. Did you do that?

Show quoted text 5 lines
Installation to Lazarus via LPK fails too, of course. It seems, some files are missing. BTW, is it possible to update GeckoPort to work with latest Gecko ESR (as far as I understand, it is version 17)?

In principle it is. But I don't know if they changed a lot since I look at it for the last time.

There is a parser that parses the sdk-files and generates pascal code. That way it should be possible to update to gecko 17.

I just tested it with Gecko 9 on Windows. The GBrowser example did work, only the registration of the mouse-events went wrong. I disabled those by commenting-out line 1636 in GeckoBrowser (this is in the Lazarus-package):
// FDOMEvents := PGeckoDOMEventRegisterArray(@events);

If you can get this to work, we can look if it is possible to update to gecko-18.

Joost.

Reply by email

Maxim Ganetsky
to Joost van der Sluis

18.01.2013 20:15, Joost van der Sluis ?????:

On Sat, 2013-01-12 at 04:14 +0400, Maxim Ganetsky wrote: > The problem is that GeckoPort v2 fails to compile. See full log: Could you try again?

Now it compiles OK, thanks.

For installation into Lazarus you have to supply the path of lazarus in your fppkg.cfg. Did you do that?

I added the following string to my fppkg.cfg:

FPMakeOptions=--lazarusdir=i:\FPC\lazarus\

But although this path definitely exists, Fppkg insists on the opposite:

[100%] Compiled package gecko
Installing package gecko
Lazarus directory 'i:\FPC\lazarus\' does not exist. Lazarus-package registration skipped.
Installation package gecko for target i386-win32 succeeded

Show quoted text 22 lines
> Installation to Lazarus via LPK fails too, of course. It seems, some > files are missing. > > BTW, is it possible to update GeckoPort to work with latest Gecko ESR > (as far as I understand, it is version 17)? In principle it is. But I don't know if they changed a lot since I look at it for the last time. There is a parser that parses the sdk-files and generates pascal code. That way it should be possible to update to gecko 17. I just tested it with Gecko 9 on Windows. The GBrowser example did work, only the registration of the mouse-events went wrong. I disabled those by commenting-out line 1636 in GeckoBrowser (this is in the Lazarus-package): // FDOMEvents := PGeckoDOMEventRegisterArray(@events); If you can get this to work, we can look if it is possible to update to gecko-18. Joost.
Best regards, Maxim Ganetsky mailto:

Reply by email

Maxim Ganetsky
to Maxim Ganetsky

19.01.2013 1:47, Maxim Ganetsky ?????:

Show quoted text 22 lines
18.01.2013 20:15, Joost van der Sluis ?????: > On Sat, 2013-01-12 at 04:14 +0400, Maxim Ganetsky wrote: >> The problem is that GeckoPort v2 fails to compile. See full log: > > Could you try again? Now it compiles OK, thanks. > For installation into Lazarus you have to supply the path of lazarus in > your fppkg.cfg. Did you do that? I added the following string to my fppkg.cfg: FPMakeOptions=--lazarusdir=i:\FPC\lazarus\ But although this path definitely exists, Fppkg insists on the opposite: [100%] Compiled package gecko Installing package gecko Lazarus directory 'i:\FPC\lazarus\' does not exist. Lazarus-package registration skipped. Installation package gecko for target i386-win32 succeeded

Forget this, updating to latest FPC 2.6.1 made this problem disappear.

Now when I try to install GeckoComponent in Lazarus via "Add/Remove packages" dialog I get the following build error.

Free Pascal Compiler version 2.6.1 [2013/01/19] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Win32 for i386
Compiling GeckoComponents.pas
Compiling GeckoBrowser.pas
Compiling CallbackInterfaces.pas
Compiling GeckoChromeWindow.pas
GeckoChromeWindow.pas(79,25) Hint: Parameter "Sender" not used H:\Documents and Settings\Max\Local Settings\Application Data\FreePascal\fppkg\fpc-gecko\GeckoChromeWindow.pas(175,32) Error: Incompatible types: got "LongWord" expected "Pointer" H:\Documents and Settings\Max\Local Settings\Application Data\FreePascal\fppkg\fpc-gecko\GeckoChromeWindow.pas(556) Fatal: There were 1 errors compiling module, stopping

Show quoted text 24 lines
>> Installation to Lazarus via LPK fails too, of course. It seems, some >> files are missing. >> >> BTW, is it possible to update GeckoPort to work with latest Gecko ESR >> (as far as I understand, it is version 17)? > > In principle it is. But I don't know if they changed a lot since I look > at it for the last time. > > There is a parser that parses the sdk-files and generates pascal code. > That way it should be possible to update to gecko 17. > > I just tested it with Gecko 9 on Windows. The GBrowser example did work, > only the registration of the mouse-events went wrong. I disabled those > by commenting-out line 1636 in GeckoBrowser (this is in the > Lazarus-package): > // FDOMEvents := PGeckoDOMEventRegisterArray(@events); > > If you can get this to work, we can look if it is possible to update to > gecko-18. > > Joost.
Best regards, Maxim Ganetsky mailto:

Reply by email

Joost van der Sluis

Sent from my phone, sorry for top posting. The error about the not existing dir is fixed in the latest lazmkunit package. Did you do an fppkg update, then fppkg install gecko? Maybe you need to explicitely update lazmkunit. (fppkg install lazmkunit)Op 18-01-13 22:47 schreef Maxim Ganetsky: 18.01.2013 20:15, Joost van der Sluis ?????:

On Sat, 2013-01-12 at 04:14 +0400, Maxim Ganetsky wrote: > The problem is that GeckoPort v2 fails to compile. See full log: Could you try again?

Now it compiles OK, thanks.

For installation into Lazarus you have to supply the path of lazarus in your fppkg.cfg. Did you do that?

I added the following string to my fppkg.cfg:

FPMakeOptions=--lazarusdir=i:\FPC\lazarus\

But although this path definitely exists, Fppkg insists on the opposite:

[100%] Compiled package gecko
Installing package gecko
Lazarus directory 'i:\FPC\lazarus\' does not exist. Lazarus-package registration skipped.
Installation package gecko for target i386-win32 succeeded

Show quoted text 22 lines
> Installation to Lazarus via LPK fails too, of course. It seems, some > files are missing. > > BTW, is it possible to update GeckoPort to work with latest Gecko ESR > (as far as I understand, it is version 17)? In principle it is. But I don't know if they changed a lot since I look at it for the last time. There is a parser that parses the sdk-files and generates pascal code. That way it should be possible to update to gecko 17. I just tested it with Gecko 9 on Windows. The GBrowser example did work, only the registration of the mouse-events went wrong. I disabled those by commenting-out line 1636 in GeckoBrowser (this is in the Lazarus-package): // FDOMEvents := PGeckoDOMEventRegisterArray(@events); If you can get this to work, we can look if it is possible to update to gecko-18. Joost.
Best regards, Maxim Ganetsky mailto: --

Reply by email

Joost van der Sluis

Hmmmm. I thought i fixed that. Maybe forgot to commit and package. Normally lazarus shows the error location. Cast the nativewindow (or something like that) to a thandle. You have to do this on two or three locations. I'll update the package tomorrow.. Op 18-01-13 23:38 schreef Maxim Ganetsky: 19.01.2013 1:47, Maxim Ganetsky ?????:

Show quoted text 22 lines
18.01.2013 20:15, Joost van der Sluis ?????: > On Sat, 2013-01-12 at 04:14 +0400, Maxim Ganetsky wrote: >> The problem is that GeckoPort v2 fails to compile. See full log: > > Could you try again? Now it compiles OK, thanks. > For installation into Lazarus you have to supply the path of lazarus in > your fppkg.cfg. Did you do that? I added the following string to my fppkg.cfg: FPMakeOptions=--lazarusdir=i:\FPC\lazarus\ But although this path definitely exists, Fppkg insists on the opposite: [100%] Compiled package gecko Installing package gecko Lazarus directory 'i:\FPC\lazarus\' does not exist. Lazarus-package registration skipped. Installation package gecko for target i386-win32 succeeded

Forget this, updating to latest FPC 2.6.1 made this problem disappear.

Now when I try to install GeckoComponent in Lazarus via "Add/Remove packages" dialog I get the following build error.

Free Pascal Compiler version 2.6.1 [2013/01/19] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Win32 for i386
Compiling GeckoComponents.pas
Compiling GeckoBrowser.pas
Compiling CallbackInterfaces.pas
Compiling GeckoChromeWindow.pas
GeckoChromeWindow.pas(79,25) Hint: Parameter "Sender" not used H:\Documents and Settings\Max\Local Settings\Application Data\FreePascal\fppkg\fpc-gecko\GeckoChromeWindow.pas(175,32) Error: Incompatible types: got "LongWord" expected "Pointer" H:\Documents and Settings\Max\Local Settings\Application Data\FreePascal\fppkg\fpc-gecko\GeckoChromeWindow.pas(556) Fatal: There were 1 errors compiling module, stopping

Show quoted text 24 lines
>> Installation to Lazarus via LPK fails too, of course. It seems, some >> files are missing. >> >> BTW, is it possible to update GeckoPort to work with latest Gecko ESR >> (as far as I understand, it is version 17)? > > In principle it is. But I don't know if they changed a lot since I look > at it for the last time. > > There is a parser that parses the sdk-files and generates pascal code. > That way it should be possible to update to gecko 17. > > I just tested it with Gecko 9 on Windows. The GBrowser example did work, > only the registration of the mouse-events went wrong. I disabled those > by commenting-out line 1636 in GeckoBrowser (this is in the > Lazarus-package): > // FDOMEvents := PGeckoDOMEventRegisterArray(@events); > > If you can get this to work, we can look if it is possible to update to > gecko-18. > > Joost.
Best regards, Maxim Ganetsky mailto: --

Reply by email

Joost van der Sluis
Show quoted text 19 lines
Hmmmm. I thought i fixed that. Maybe forgot to commit and package. Normally lazarus shows the error location. Cast the nativewindow (or something like that) to a thandle. You have to do this on two or three locations. I'll update the package tomorrow.. Free Pascal Compiler version 2.6.1 [2013/01/19] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling GeckoComponents.pas Compiling GeckoBrowser.pas Compiling CallbackInterfaces.pas Compiling GeckoChromeWindow.pas GeckoChromeWindow.pas(79,25) Hint: Parameter "Sender" not used H:\Documents and Settings\Max\Local Settings\Application Data\FreePascal\fppkg\fpc-gecko\GeckoChromeWindow.pas(175,32) Error: Incompatible types: got "LongWord" expected "Pointer" H:\Documents and Settings\Max\Local Settings\Application Data\FreePascal\fppkg\fpc-gecko\GeckoChromeWindow.pas(556) Fatal: There were 1 errors compiling module, stopping

Should be fixed. Try 'fppkg update' 'fppkg install gecko' and then install the gecko package into Lazarus.

Joost.

Reply by email

Maxim Ganetsky
to Joost van der Sluis

19.01.2013 16:39, Joost van der Sluis ?????:

Show quoted text 21 lines
> Hmmmm. I thought i fixed that. Maybe forgot to commit and package. Normally > lazarus shows the error location. Cast the nativewindow (or something like > that) to a thandle. You have to do this on two or three locations. I'll update > the package tomorrow.. > Free Pascal Compiler version 2.6.1 [2013/01/19] for i386 > Copyright (c) 1993-2012 by Florian Klaempfl and others > Target OS: Win32 for i386 > Compiling GeckoComponents.pas > Compiling GeckoBrowser.pas > Compiling CallbackInterfaces.pas > Compiling GeckoChromeWindow.pas > GeckoChromeWindow.pas(79,25) Hint: Parameter "Sender" not used > H:\Documents and Settings\Max\Local Settings\Application > Data\FreePascal\fppkg\fpc-gecko\GeckoChromeWindow.pas(175,32) Error: > Incompatible types: got "LongWord" expected "Pointer" > H:\Documents and Settings\Max\Local Settings\Application > Data\FreePascal\fppkg\fpc-gecko\GeckoChromeWindow.pas(556) Fatal: There > were 1 errors compiling module, stopping Should be fixed. Try 'fppkg update' 'fppkg install gecko' and then install the gecko package into Lazarus.

Thanks, now it installs fine and after changes you mentioned earlier GBrowser (using Gecko 9) example does work with
http://www.lazarus.freepascal.org (but immediately crashes with http://maps.google.com ;) ).

Best regards, Maxim Ganetsky mailto:

Reply by email

Joost van der Sluis

Could be the exception mask, which does not cooperate with javascript. You could try to experiment with that.Op 19-01-13 15:56 schreef Maxim Ganetsky: 19.01.2013 16:39, Joost van der Sluis ?????:

Show quoted text 21 lines
> Hmmmm. I thought i fixed that. Maybe forgot to commit and package. Normally > lazarus shows the error location. Cast the nativewindow (or something like > that) to a thandle. You have to do this on two or three locations. I'll update > the package tomorrow.. > Free Pascal Compiler version 2.6.1 [2013/01/19] for i386 > Copyright (c) 1993-2012 by Florian Klaempfl and others > Target OS: Win32 for i386 > Compiling GeckoComponents.pas > Compiling GeckoBrowser.pas > Compiling CallbackInterfaces.pas > Compiling GeckoChromeWindow.pas > GeckoChromeWindow.pas(79,25) Hint: Parameter "Sender" not used > H:\Documents and Settings\Max\Local Settings\Application > Data\FreePascal\fppkg\fpc-gecko\GeckoChromeWindow.pas(175,32) Error: > Incompatible types: got "LongWord" expected "Pointer" > H:\Documents and Settings\Max\Local Settings\Application > Data\FreePascal\fppkg\fpc-gecko\GeckoChromeWindow.pas(556) Fatal: There > were 1 errors compiling module, stopping Should be fixed. Try 'fppkg update' 'fppkg install gecko' and then install the gecko package into Lazarus.

Thanks, now it installs fine and after changes you mentioned earlier GBrowser (using Gecko 9) example does work with
http://www.lazarus.freepascal.org (but immediately crashes with http://maps.google.com ;) ).

Best regards, Maxim Ganetsky mailto:

Reply by email

Maxim Ganetsky
to Joost van der Sluis

20.01.2013 5:12, Joost van der Sluis ?????:

Could be the exception mask, which does not cooperate with javascript. You could try to experiment with that.

It is Access Violation. Backtrace is not very useful:

Program received signal SIGSEGV, Segmentation fault. 0x02f1891f in
xul!?GetVisibleRegion at at mozilla@@QAEABVnsIntRegion@@XZ () from i:\FPC\geckoport\version2\SampleApps\xulrunner\xul.dll (gdb) bt
#0 0x02f1891f in
xul!?GetVisibleRegion at at mozilla@@QAEABVnsIntRegion@@XZ () from i:\FPC\geckoport\version2\SampleApps\xulrunner\xul.dll #1 0x1b51ed58 in ?? ()
#2 0x03380d9c in
xul!?GetType at at mozilla@@UBE?AW4LayerType at at XZ () from i:\FPC\geckoport\version2\SampleApps\xulrunne\xul.dll #3 0x00000000 in ?? ()

All FPU exceptions are disabled in GBrowser. Enabling them does not change behavior in any way.

Best regards, Maxim Ganetsky mailto:

Reply by email