Recent

Author Topic: Geckoport OK, SampleApps OK, webdesign preview NOT OK  (Read 40958 times)

José Mejuto

  • Full Member
  • ***
  • Posts: 136
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #15 on: January 03, 2011, 06:07:59 pm »
Quote
Can you get the two sample apps working?
As the title says, yes. Only the previewer of webdesign doesn't work.

Hello,

Can you recheck with my last changes ? I had changed a bit the initialization process.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8833
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #16 on: January 03, 2011, 06:37:56 pm »
Quote
Can you recheck with my last changes ?
Where? Sorry, I should've said that I use fppkg version rather than svn version.

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #17 on: January 03, 2011, 07:18:30 pm »
THandle is declared as System.THandle (32 bits) both in SysUtils and Classes. It's also declared as PtrUInt in LclType on non-Windows systems.

Hello,

Just for windows, system includes systemh.inc which includes sysosh.inc which defines:

{$ifdef CPU64}
  THandle = QWord;
  ULONG_PTR = QWord;
{$else CPU64}
  THandle = DWord;
  ULONG_PTR = DWord;
{$endif CPU64}

Correct. Hence why THtmlPort worked on Win64 without reordering the uses statement.

On OS X, something similar:

{$ifdef CPU64}
  THandle = Int64; 
{$else CPU64}
  THandle = Longint;
{$endif CPU64}

Although note that these are signed integers.

But on Linux:

  { fd are int in C also for 64bit targets (x86_64) }
  THandle = Longint;

I don't know what "fd" is, but this is what caused the conflict with the 64-bit THandle declared in LclType.

If you never use THandle, but instead use only its common surrogates (HFONT, HGDIOBJ, HWND, etc.), this conflict likely won't become apparent since these "H" types are all 64 bits with Linux64.

All in all, some things to keep us on our toes!

Thanks.

-Phil

José Mejuto

  • Full Member
  • ***
  • Posts: 136
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #18 on: January 03, 2011, 11:12:46 pm »
Quote
Can you recheck with my last changes ?
Where? Sorry, I should've said that I use fppkg version rather than svn version.

I do not know how "old" the fppkg version is, but windows version had a bug that prevent it for displaying anything in some situations. If my memory serves me it was events sequence related, so in some machines it works and in other it does not.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8833
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #19 on: January 04, 2011, 03:40:59 pm »
Quote
do not know how "old" the fppkg version is
my fppkg says: 0.9.0-846
Quote
If my memory serves me it was events sequence related, so in some machines it works and in other it does not.
Oh, that's bad to hear.

José Mejuto

  • Full Member
  • ***
  • Posts: 136
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #20 on: January 04, 2011, 07:38:16 pm »
Quote
do not know how "old" the fppkg version is
my fppkg says: 0.9.0-846

Hello,

Forst commit in lazarus-ccr is 1009 so I do not know what 846 means :-? Anyway I think you can replace the installed version by fppkg by the SVN one, overwritting files.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8833
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #21 on: January 05, 2011, 02:24:20 am »
Quote
Forst commit in lazarus-ccr is 1009 so I do not know what 846 means :-? Anyway I think you can replace the installed version by fppkg by the SVN one, overwritting files.
I don't see webdesign here.

José Mejuto

  • Full Member
  • ***
  • Posts: 136
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #22 on: January 06, 2011, 08:23:23 pm »
Quote
Forst commit in lazarus-ccr is 1009 so I do not know what 846 means :-? Anyway I think you can replace the installed version by fppkg by the SVN one, overwritting files.
I don't see webdesign here.

Hello,

No webdesign, only files that belongs to the geckoport. You should have some files like nsXRE.pas, update just those ones.

I'm not familiar with webdesign ;)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8833
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #23 on: January 07, 2011, 07:57:36 am »
Quote
no webdesign, only files that belongs to the geckoport
Oh, sorry. I thought you also takes care of it along with Joost. The geckoport is already updated, so probably there's an incorrect use in webdesign.

dkjMusic

  • Full Member
  • ***
  • Posts: 146
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #24 on: January 07, 2011, 01:58:08 pm »
OK, so I've the GBrowser to run but I get "Failed to initialise TGeckoBrowser."

What do I do now?
Windows 7 Ultimate/32 bit;
Lazarus 0.9.31/Rev 33300;
FPC 2.7.1/Rev 19464;
GDB 7.0.50;
(via CodeTyphon 2.30)

José Mejuto

  • Full Member
  • ***
  • Posts: 136
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #25 on: January 07, 2011, 02:19:16 pm »
OK, so I've the GBrowser to run but I get "Failed to initialise TGeckoBrowser."
What do I do now?

http://wiki.freepascal.org/GeckoPort#Win32_widgetset

Your code exe location does not meet any of those conditions. Drop the generated exe inside your Xulrunner folder and try again.

If you use a different widgetset check specific conditions. If it still does not work, please let me know where your xulrunner is and how you let Geckoport know here it is.

José Mejuto

  • Full Member
  • ***
  • Posts: 136
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #26 on: January 07, 2011, 02:22:24 pm »
Quote
no webdesign, only files that belongs to the geckoport
Oh, sorry. I thought you also takes care of it along with Joost. The geckoport is already updated, so probably there's an incorrect use in webdesign.

Hello,

I had changed somethings in initialization because the old way (changed by Joost) works fine when the control is loaded with the form, but dynamic creation was impossible. Now the expected behavior is that both modes should work. Are you working in Win32 ?

I think I should install webdesign :)

dkjMusic

  • Full Member
  • ***
  • Posts: 146
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #27 on: January 07, 2011, 02:26:04 pm »
OK, so I've the GBrowser to run but I get "Failed to initialise TGeckoBrowser."
What do I do now?

http://wiki.freepascal.org/GeckoPort#Win32_widgetset

Your code exe location does not meet any of those conditions. Drop the generated exe inside your Xulrunner folder and try again.

If you use a different widgetset check specific conditions. If it still does not work, please let me know where your xulrunner is and how you let Geckoport know here it is.

I'm on Linux/Ubuntu 10.10 using Lazarus 0.9.31 and fpc 2.4.0. I put xulrunner in my Lazarus directory and I run the app with the following script named RunGeckoBrowser:

#!/bin/sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/dennis/lazarus_SVN/xulrunner-1.9.2.13
/home/dennis/lazarus_SVN/lazarus/components/geckoport/SampleApps/GBrowser
Windows 7 Ultimate/32 bit;
Lazarus 0.9.31/Rev 33300;
FPC 2.7.1/Rev 19464;
GDB 7.0.50;
(via CodeTyphon 2.30)

José Mejuto

  • Full Member
  • ***
  • Posts: 136
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #28 on: January 08, 2011, 12:44:56 am »
I'm on Linux/Ubuntu 10.10 using Lazarus 0.9.31 and fpc 2.4.0. I put xulrunner in my Lazarus directory and I run the app with the following script named RunGeckoBrowser:

#!/bin/sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/dennis/lazarus_SVN/xulrunner-1.9.2.13
/home/dennis/lazarus_SVN/lazarus/components/geckoport/SampleApps/GBrowser

Hello,

fpc 2.4.0 is not valid, you need fpc SVN version for Linux because in 2.5.1 the needed calling convention has been added for non Windows platforms so 2.4.* will not work at all.

Also it does not work currently in Linux64 (unknown reason by now).

Leledumbo

  • Hero Member
  • *****
  • Posts: 8833
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Geckoport OK, SampleApps OK, webdesign preview NOT OK
« Reply #29 on: January 08, 2011, 01:36:45 am »
Quote
I had changed somethings in initialization because the old way (changed by Joost) works fine when the control is loaded with the form, but dynamic creation was impossible. Now the expected behavior is that both modes should work. Are you working in Win32 ?
Yes, I am.
Quote
I think I should install webdesign
Please do :D

 

TinyPortal © 2005-2018