Page 1 of 1

ADD NEW module to LC

Posted: 23 Aug 2012 05:43
by liyake825
HEllo every body.
I am trying to add a new decoder module into the VLC1.1.12. Since i have red the hacking"hoe to write a module ".I finish mymodule.c and creat the mymodule.a library, then,i put these files and some head files in the right place.
But i am confused about the language to be used in module.am and configure.ac.How could i link my mymodule.a library and add my module in VLC?

Re: ADD NEW module to LC

Posted: 23 Aug 2012 22:04
by Jean-Baptiste Kempf
Modify Modules.am by copying another module. Then, it should just work.

Re: ADD NEW module to LC

Posted: 30 Aug 2012 10:46
by liyake825
Modify Modules.am by copying another module. Then, it should just work.
THANK you for replay!
yes, i have modified this file module.am by adding SOURCES_xxx = xxx.c
and the file configure.ac :
dnl
dnl Libxxx plugin
dnl
PKG_ENABLE_MODULES_VLC([LIBxxx], [], [libxxx], [libxxx decoder support], [auto])
i don't know whether it can link the library (libxxx.a).
but i have got a dll when i finished the compiling .

am i right?

Re: ADD NEW module to LC

Posted: 30 Aug 2012 17:21
by Jean-Baptiste Kempf
If you haev the dll, then you are fine, no?

Re: ADD NEW module to LC

Posted: 31 Aug 2012 14:44
by liyake825
If you haev the dll, then you are fine, no?
Oh thank you ! i got it.

Re: ADD NEW module to LC

Posted: 07 Sep 2012 18:18
by Jean-Baptiste Kempf
Cool.