Recent

Author Topic: Zeos for Lazarus is officially ported!  (Read 86824 times)

Stevie

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« on: May 03, 2005, 07:32:58 pm »
Hi everyone,

the port to lazarus is done - fpc now has full support for variants and interfaces. Because the port is not "much more" than "a few" compiler directives, therefore the functionality is the same as it is on delphi or kylix. The sources you can get from the cvs on http://sourceforge.net/projects/zeoslib/

Regards,
Stevie

Anonymous

  • Guest
Zeos for Lazarus is officially ported!
« Reply #1 on: May 04, 2005, 09:38:27 am »
Could you give a little bit detailed download and build instructions ?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Zeos for Lazarus is officially ported!
« Reply #2 on: May 04, 2005, 10:34:18 am »
Stevie, may I suggest you create a zip with the needed sources and lazarus package? I think it would be great to have this component on Lazarus Code and Components page and available for download at the Lazarus CCR Files page.

hombergs

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« Reply #3 on: May 04, 2005, 10:58:57 am »
@ Stevie:
I reported a Patch for FPC/Lazarus under linux.
Cause there are some functions missing.
And I reported a bug.
Cause under Linux the Firebird and SQLite driver will raise a range check error when you set the Connected propertie of the TZConnection to true.
This will only happen when yyou set the propertie in  the IDE to true for testing.

@Guest:
You need a CVS client for getting this great piece of software. ;)
If you use Windows then try TortoiseCVS.
The CVS server is: cvs.sourceforge.net
Username: anonymous
Repository Path: /cvsroot/zeoslib
No password.
Checkout the zeosdbo_rework (this is the actual Zeos).
After checking out install the components in the following order:
zcore.lpk
zparsesql.lpk
zplain.lpk
zdbc.lpk
zcomponent.lpk
Zeos Teammember

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Zeos for Lazarus is officially ported!
« Reply #4 on: May 04, 2005, 11:07:11 am »
I did some browsing through the cvs and have some questions/suggestions/remarks.

The zcomponent package has a absolute path to the include files:
<IncludeFiles Value="E:\Programme\Lazarus\components\zeos\src\component\"/>

If I understand the lazarus pacakge system correctly, the zcore, zparsesql, zplain and the zdbc package can be a runtime package only, because they don't install any components. Of course other packages can use it, and it still will be included in the lazarus executable.

Stevie

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« Reply #5 on: May 04, 2005, 02:49:04 pm »
@hombergs: I must confess that I only tested the windows version of Lazarus but this was only the first step. I try to setup a linux-system for testing and look for it, thanks!

@vincent: Yes, you are right, but in the past the delphi-packages of zeos had to be installed too (I changed this already) I still am not very familiar with Lazarus but a few weeks ago I was not able to install only the component package without the others (maybe this behaviour changed? I will test this)

Anonymous

  • Guest
Zeos for Lazarus is officially ported!
« Reply #6 on: May 04, 2005, 04:38:52 pm »
Thank you, I will try it. The "zeosdbo_rework" was the missing info. I tired checkout zeosdbo, but all files seems very old. The rework seems far better :-)

hombergs

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« Reply #7 on: May 04, 2005, 05:09:24 pm »
@Stevie: I found the bug. FPC/Lazarus defines HMODULE as longint. But the dlopen function from libc returns sometimes a negative value. So I redifine HMODULE in ZCompatibility as longword now and it works. I uploaded a new patchfile. This include the changes that Vincent has suggested. ;)
Zeos Teammember

Anonymous

  • Guest
Zeos for Lazarus is officially ported!
« Reply #8 on: May 04, 2005, 05:46:31 pm »
I tired to compile it, but I've got the following error messages:
Zeos.inc(42,2) Warning: Unsupported switch "$O"
Zeos.inc(44,2) Warning: Unsupported switch "$W"
Zeos.inc(42,2) Warning: Unsupported switch "$O"
Zeos.inc(44,2) Warning: Unsupported switch "$W"
Zeos.inc(42,2) Warning: Unsupported switch "$O"
Zeos.inc(44,2) Warning: Unsupported switch "$W"
Zeos.inc(42,2) Warning: Unsupported switch "$O"
Zeos.inc(44,2) Warning: Unsupported switch "$W"
/usr/lib/lazarus/zeos/src/plain/ZPlainLoader.pas(150,17) Error: Identifier not found "GetModuleHandle"
/usr/lib/lazarus/zeos/src/plain/ZPlainLoader.pas(154,19) Error: Identifier not found "HMODULE"
/usr/lib/lazarus/zeos/src/plain/ZPlainLoader.pas(181,5) Error: Identifier not found "FreeLibrary"
/usr/lib/lazarus/zeos/src/plain/ZPlainLoader.pas(181,24) Error: Illegal expression
/usr/lib/lazarus/zeos/src/plain/ZPlainLoader.pas(193,13) Error: Identifier not found "GetProcAddress"
/usr/lib/lazarus/zeos/src/plain/ZPlainLoader.pas(199) Fatal: There were 5 errors compiling module, stopping

The GetModuleHandle, etc seems WIN32 functions, I tired to compile it under linux (with the latest fpc binary snapshot).

hombergs

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« Reply #9 on: May 04, 2005, 06:17:14 pm »
Please apply the patch from the zeos patch tracker.
The direct link to the patch is in my first post.
The attached file is the newest patch.
After applying the patch Zeos will compile under Linux without a problem.
Zeos Teammember

Stevie

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« Reply #10 on: May 04, 2005, 06:34:30 pm »
I added your changes into the actual sources a few minutes ago. Now it should be compilable on linux.

jesusr

  • Sr. Member
  • ****
  • Posts: 470
Zeos for Lazarus is officially ported!
« Reply #11 on: May 04, 2005, 09:30:40 pm »
I did a small test using the firebird 1.5 employee sample database,  it seems to have problems with some numeric fields? check for example the DEPARTMENT and SALARY_HISTORY tables, here is a link to the lazarus project: http://mx.geocities.com/jesusrmx/lazarus/zeos_fbbrowser.tgz

Anonymous

  • Guest
Zeos for Lazarus is officially ported!
« Reply #12 on: May 05, 2005, 09:24:52 am »
I'm sorry, but when I tired the compile it under linux, I've got the following messages:
/usr/lib/lazarus/zeos/src/core/ZCompatibility.pas(132,13) Hint: Type "HMODULE" redefinition
/usr/lib/lazarus/zeos/src/core/ZCompatibility.pas(190,21) Error: Identifier not found "dl"

jesusr

  • Sr. Member
  • ****
  • Posts: 470
Zeos for Lazarus is officially ported!
« Reply #13 on: May 05, 2005, 09:59:50 am »
open ZCompatibility.pas and remove the "dl." prefix from each line that fails.

Anonymous

  • Guest
Zeos for Lazarus is officially ported!
« Reply #14 on: May 05, 2005, 03:18:58 pm »
Thank you, it is work for me!

 

TinyPortal © 2005-2018