0Day Forums
Can the Libsndfile library be used on the iPhone iOS? - Printable Version

+- 0Day Forums (https://zeroday.vip)
+-- Forum: Coding (https://zeroday.vip/Forum-Coding)
+--- Forum: C & C++ (https://zeroday.vip/Forum-C-C)
+--- Thread: Can the Libsndfile library be used on the iPhone iOS? (/Thread-Can-the-Libsndfile-library-be-used-on-the-iPhone-iOS)



Can the Libsndfile library be used on the iPhone iOS? - Progalictis466 - 07-27-2023

Can the [Libsndfile][1] C library be used on the iPhone operating system? If so, do I need to just 'include' it, or is it more complicated then that.

Thanks!


[1]:

[To see links please register here]




RE: Can the Libsndfile library be used on the iPhone iOS? - fortenberry548 - 07-27-2023

I'm the main maintainer of libsndfile.

libsndfile can be compiled and runs quite happily on Debian/Arm and also Android.

I would be surprised if no one has compiled it for iOS, but there are licensing issues. As you are no doubt aware, libsndfile is released under the LGPL which requires that one of the following conditions be met:

a) The library is used as a dynamically linked library (DLL on windows, shared object on Linux, dynlib on OSX etc).

b) All code that statically links to the LGPL library is released under a LGPL compatible license.

c) The library is used as a static library, but that all object files required to link the library against a new version be made available to all recipients of the application.

As I understand it, iOS does not support dynamically linked libraries (Android does) so option a) is out. That leaves you with options b) and c).

If you decide to go with option b) or c) then you still need to compile the library (and possibly it optional dependencies) for iOS and then link the library against your code.


RE: Can the Libsndfile library be used on the iPhone iOS? - aloysia71 - 07-27-2023

You can find the sndfile.framework libsndfile wrapper inside this dependencies tar.gz

[To see links please register here]