[vlc-devel] [GSoC] Selection task about SWIG

Alexey Sokolov alexey at alexeysokolov.co.cc
Thu Apr 7 17:27:45 CEST 2011


Hello!

I'm going to make bindings generator for libvlc to use from other 
languages on GSoC, and here's simple SWIG file which allows you to run 
this Perl script:

use VLC;
my @a = ("vlc");
my $inst = VLC::libvlc_new(\@a);
VLC::libvlc_add_intf($inst, "qt");
VLC::libvlc_wait($inst);
VLC::libvlc_release($inst);

Do this to produce needed bindings:

swig -perl vlc.i
g++ -shared -fPIC vlc_wrap.c -o VLC.so $(perl -MExtUtils::Embed -e 
perl_inc -e ldopts)

Also attached vlc.i supports analogous python script. For python, 
vlc_wrap.c should be compiled to _VLC.so

-- 
Best regards,
Alexey "DarthGandalf" Sokolov

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vlc.i
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110407/fa65a6fa/attachment.ksh>


More information about the vlc-devel mailing list