Closed yay closed 4 months ago
You need to link to several frameworks on Apple. CoreFoundation, Security https://github.com/zlib-ng/minizip-ng/blob/fe5fedc365f7824ada0cf9a84fb79b30d5fc97a8/CMakeLists.txt#L474C16-L491C39
@Nekto89 That worked, thanks! But I'm still seeing the remaining three:
Undefined symbols for architecture arm64:
"_compression_stream_destroy", referenced from:
_mz_stream_libcomp_close in libminizip-ng.a[10](mz_strm_libcomp.c.o)
"_compression_stream_init", referenced from:
_mz_stream_libcomp_open in libminizip-ng.a[10](mz_strm_libcomp.c.o)
"_compression_stream_process", referenced from:
_mz_stream_libcomp_read in libminizip-ng.a[10](mz_strm_libcomp.c.o)
ld: symbol(s) not found for architecture arm64
Any thoughts on how to fix these?
https://github.com/zlib-ng/minizip-ng/blob/fe5fedc365f7824ada0cf9a84fb79b30d5fc97a8/CMakeLists.txt#L162 try compression library
On Mon, 22 Jul 2024, 21:47 Vitaly Kravchenko, @.***> wrote:
@Nekto89 https://github.com/Nekto89 That worked, thanks! But I'm still seeing the remaining three:
Undefined symbols for architecture arm64: "_compression_stream_destroy", referenced from: _mz_stream_libcomp_close in libminizip-ng.a10 "_compression_stream_init", referenced from: _mz_stream_libcomp_open in libminizip-ng.a10 "_compression_stream_process", referenced from: _mz_stream_libcomp_read in libminizip-ng.a10 ld: symbol(s) not found for architecture arm64
Any thoughts on how to fix these?
— Reply to this email directly, view it on GitHub https://github.com/zlib-ng/minizip-ng/issues/791#issuecomment-2243600840, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAUCRBUIBO5JPQOA5JO4K3ZNVHVVAVCNFSM6AAAAABLIAKHWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTGYYDAOBUGA . You are receiving this because you were mentioned.Message ID: @.***>
https://github.com/zlib-ng/minizip-ng/blob/fe5fedc365f7824ada0cf9a84fb79b30d5fc97a8/CMakeLists.txt#L162 try compression library … On Mon, 22 Jul 2024, 21:47 Vitaly Kravchenko, @.> wrote: @Nekto89 https://github.com/Nekto89 That worked, thanks! But I'm still seeing the remaining three: Undefined symbols for architecture arm64: "_compression_stream_destroy", referenced from: _mz_stream_libcomp_close in libminizip-ng.a10 "_compression_stream_init", referenced from: _mz_stream_libcomp_open in libminizip-ng.a10 "_compression_stream_process", referenced from: _mz_stream_libcomp_read in libminizip-ng.a10 ld: symbol(s) not found for architecture arm64 Any thoughts on how to fix these? — Reply to this email directly, view it on GitHub <#791 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAUCRBUIBO5JPQOA5JO4K3ZNVHVVAVCNFSM6AAAAABLIAKHWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTGYYDAOBUGA . You are receiving this because you were mentioned.Message ID: @.>
Not sure I understand. I already use MZ_LIBCOMP flag:
-- The following features have been enabled:
* MZ_LIBCOMP, Enables Apple compression
Should I add something else to the cmake -S . -B build
flags?
Ah, got it, https://github.com/zlib-ng/minizip-ng/issues/478 MZ_LIBCOMP actually had to be disabled in my case. @Nekto89 Thanks a lot for the help!
I'm trying to link statically into an Odin executable, building minizip-ng with the following flags:
but building the target Odin executable I get the following errors:
On Windows, I am able to use minizip-ng with no issues, and don't run into
_mz_stream_libcomp
errors. I also realize_SecRandomCopyBytes
and_kSecRandomDefault
are macOS specific, but don't know why I'm getting these errors on a mac.I've tried various combination of build flags, but I still get at least these 5 symbol errors. The only thing I need minizip-ng to do is to unzip unencrypted archives. Am I missing something?