Recent

Author Topic: ZLib  (Read 8118 times)

Bro

  • Guest
ZLib
« on: July 14, 2004, 05:56:05 pm »
Hi.

I want to make a application with Lazarus under Win32, which is using ZLib compression. Everything is fine - the project compiles, but on run display error that z.dll (?!) can't be found.
I submit that error as a bug, but the developers told that the problem come from my instalation of windows(?!).
But Delphi works perfect in that conditions.

Can someone tell me what I must do, so I to be able to run the application.

Thank you.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
ZLib
« Reply #1 on: July 14, 2004, 09:07:28 pm »
Can you give a link to the Delphi program? Does it use an external library for the compression?

Bro

  • Guest
ZLib
« Reply #2 on: July 14, 2004, 09:40:00 pm »
Quote from: "Vincent"
Can you give a link to the Delphi program? Does it use an external library for the compression?


Nop. But I can write and send you one if you want, and it will work without any dll requtements...
And can you give me a link to z.dll ot download it, ot some lazarus app that work with ZLib ?

Thank you.
Best regards,
Bro.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
ZLib
« Reply #3 on: July 14, 2004, 10:58:29 pm »
please mail me at <email address removed>

I have some cygwin components installed and one of the files if cygz.dll. If you rename that to z.dll, it can be used as implementation of the compression. The zlib unit that comes with fpc, doesn't contain any implementation of the compression.

But the paszlib package does. You can find sources at packages\base\paszlib.

HTH,
Vincent.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
ZLib
« Reply #4 on: July 15, 2004, 07:19:21 pm »
I don't have Delphi, so I don't know what Dephi's zlib unit contains.

Looking at the source you sent me, the solution whould be to use the zstream unit, included with fpc FCL.

In fpc the zlib unit is simply a wrapper for the functionality in z compression library, which is comonly available on unix system as libz.so.

Fpc also has a paszlib unit (source in packages\base\paszlib) which is a pascal implementation of the z-compression functions, so this unit does not depend on external libraries. The zstream unit (containing among others TCompressionStream) uses this unit.

 

TinyPortal © 2005-2018