[vlc-devel] Building statically
pdherbemont at free.fr
Mon Sep 27 10:46:00 CEST 2010
As you may know, on iOS you can't dynamically link to your own
libraries, nor dlopen modules. The sandbox prevents you from doing
Here is what we've been doing for work arounding this:
- Reenable --disable-shared in the configure.
- Add libvlc_new_with_plugins(), which takes a list of plugins to
- Some dummy hacking in src/ to make the old static plugin
In practice it means that libvlc client can statically link libvlc,
libvlccore and the plugins it wants to. We could envision that
pkg-config would be used to pass the proper link flags. But in
practice we've hard coded the flags requirement in MobileVLC.
The amount of changes are rather small, and in such, I think it's the
easiest and simplest way of doing it.
Are you interested in seeing the patches? Do you like the idea? If
not, what do you suggest?
More information about the vlc-devel