Results 1 to 4 of 4

Thread: ZLib in FPC

  1. #1

    ZLib in FPC

    Well, finnally, after lots of hacks I managed to compile my game in FPC ( was created originally in Delphi). I used PNGImage unit to load PNGs, but unfortunaly this lib uses some .obj files and FPC seems to not support it.

    After exploring fpc, I discovered the ZLib unit, that is 99% compatible with the delphi PNGLib implementation. The problem is, that the game compiled in FPC with ZLib requires a z.dll. This works if I use the zlib.dll and rename it, but its possible to compile it without need for dlls? I'm willing to give FPC a try, but I would like to not have external dlls like in the Delphi version :roll:
    www.pascalgameengine.com - Crossplatform 3D game engine

  2. #2

    ZLib in FPC

    There is also a PASzlib unit, which is 100% Pascal and therefore doesn't need a DLL.

  3. #3

    ZLib in FPC

    Yes, but it seems to be more complex than zlib. How do I see the interface of the units? Since they are only ppu files, the source isnt there, I dont know how their implementation works, I tried ppudump but it didnt show me nothing about the functions :?
    www.pascalgameengine.com - Crossplatform 3D game engine

  4. #4

    ZLib in FPC

    Use the source, see http://svn.freepascal.org/svn/fpc/tr...ib/paszlib.pas It is very much like the other zlib, you need little or no changes other than use the paszlib unit.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •