Closed kelson42 closed 10 months ago
Why do you think that libkiwix embeds libzim ?
The only reason why you may find libzim symbol in libkiwix is because we compile libraries in static mode. So potentially libzim symbols used by libkiwix are statically linked in libkiwix.
@rgaudin told me and the README on kiwix/apple says nothing about compiling the libzim! Is that normal to have them or should we avoid this and push to compile libzim separatly?
As I said, libkiwix in kiwix-build automatically triggers a libzim build as libzim is considered a dependency. @kelson42 tells me that libkiwix doesn't depend on libzim anymore (as it doesn't wrap it anymore) and thus should not be automatically built when building libkiwix.
At least that's what I understood but all those comments are confusing :)
What we had removed from libkiwix is the API to read article in zim files (https://github.com/kiwix/libkiwix/pull/789). This means that if you want to read content in a zim files you must use libzim API (and so, directly depend on it).
But libkiwix still need to read in libzim (for itself). At least for:
zim::Archive
for you and return it to you, handling cache and so).So:
OK, that's very clear.
@rgaudin Does it implies changes in the xcframework or can we just close this ticket?
We can close.
With: kiwix-build --target-platform iOS_arm64 libkiwix
I thought that now the two libraries should be handled separatly. So we should have IMO: