Lazarus
Programming => Operating Systems => macOS / Mac OS X => Topic started by: comdora on July 09, 2022, 06:01:23 pm
-
Hello everyone,
wondering if anyone has done ZLIB compression on a MAC using freepascal and Lazarus? If so, can you direct me to the component, or to the library from which to read? I found about jcl and bzip2lib, but it only applies to Windows and Linux.
Thank you so much.
-
It looks like I need to import independently from the libz.1.dylib library. That there is no already imported support for pascal on MAC.
-
In my "Lazarus Mailinglist Reader" (https://sourceforge.net/p/wp-laz/code/HEAD/tree/Lazarus%20MailingList%20Reader/), gzip-compressed mails are read by routines published at https://www.gocher.me/GZIP (in German, but the code comments are in English). Just tested my application on a VM with macOC, and it is working fine, i.e. the gz files are read correctly. Based on FCL's PasZLib.
-
Hi wp,
thanks for your answer.
Unfortunately for me, it's only a partially converted zlib library content. There are some very important methods missing that I also need.
I couldn't even import them directly, but I have to recode them myself, based on the zlib source, which is open source.
When trying to import from the library, I get a linker error, that it is not compiled for x86_64.
But by all means thanks for trying to help me.
Bojan
-
Unfortunately for me, it's only a partially converted zlib library content. There are some very important methods missing that I also need.
I couldn't even import them directly, but I have to recode them myself, based on the zlib source, which is open source.
When trying to import from the library, I get a linker error, that it is not compiled for x86_64.
I'm not a zlib expert, so I can't help any further. But when you are sure that the implementation in PasZLib is incomplete, write a bug report, describe your issue there, and list the missing function. Many developers do not read the forum posts.
This is the link to the fpc bug tracker: https://gitlab.com/freepascal.org/fpc/source/-/issues
-
Я делал, смотрите здесь. (https://github.com/Seenkao/New-ZenGL/tree/ZenGL_3_29/Zengl_SRC/lib/zip/cocoa-darwin) Именно для x86_64. Как мне сообщили я это делал зря. MacOS уже содержит в себе необходимые библиотеки, вы можете их использовать.
Eng:
I did, see here. (https://github.com/Seenkao/New-ZenGL/tree/ZenGL_3_29/Zengl_SRC/lib/zip/cocoa-darwin) Exactly for x86_64. As I was told, I did it in vain. MacOS already contains the necessary libraries, you can use them.