Page 1 of 1

How can I make my module a DLL?

Posted: 08 Jan 2009 15:08
by tihctw
Hi all,
Sorry for my stupid question, I just created a module under modules/access and it compiled fine. However, I didn't see it, e.g. libaccess_myModule_plugin.dll, in the plugins folder after "make package-win32-base", but libaccess_myModule_plugin.la and libaccess_myModule_plugin_la-myModule.lo in modules/access folder.
What I did was that added SOURCES_access_myModule = myModule.c and libvlc_LTLIBRARIES += libaccess_myModule_plugin.la to modules/access/Modules.am
Is there anything I missed? Please tell me how I can make my module a DLL.
Thank you very much in advance!

Tihctw

Re: How can I make my module a DLL?

Posted: 08 Jan 2009 16:02
by Jean-Baptiste Kempf
Have you checked whether it is present in modules/access/.libs?

Re: How can I make my module a DLL?

Posted: 09 Jan 2009 03:12
by tihctw
Have you checked whether it is present in modules/access/.libs?
Oh, YES! It's there. But why it didn't get moved to the plugins folder after "make package-win32-base"?
Sorry, I cannot understand the Makefile very well. Still learning.

Re: How can I make my module a DLL?

Posted: 09 Jan 2009 10:20
by Jean-Baptiste Kempf
Try to make package-win32-base-debug.
There will be a find command, and this is from where it is getting copied.

Are you sure you added correctly your module to configure.ac?

What is your module about?

Re: How can I make my module a DLL?

Posted: 09 Jan 2009 11:07
by tihctw
Well, just need a module similar to access_udp. However, over tcp instead of udp. To be more specific, I call it access_tcprtp module.
Actually, I'm not that sure if I added my module to configure.ac correctly or not.
For configure.ac, I simply added my module to all the places where access_tcp presents because I don't have enough knowledge about it. @_@
Was there anything else I should add to configure.ac? Thanks in advance!

Re: How can I make my module a DLL?

Posted: 09 Jan 2009 11:09
by Jean-Baptiste Kempf
No, this seems fine.

Re: How can I make my module a DLL?

Posted: 09 Jan 2009 11:12
by tihctw
j-b, is there any existing module I can use to achieve it instead of coding a new module which is REALLY similar to access_udp module?
Thanks again.

Re: How can I make my module a DLL?

Posted: 09 Jan 2009 11:15
by Jean-Baptiste Kempf
j-b, is there any existing module I can use to achieve it instead of coding a new module which is REALLY similar to access_udp module?
Thanks again.
Why not working on the rtp module?

Re: How can I make my module a DLL?

Posted: 09 Jan 2009 11:33
by tihctw
Why not working on the rtp module?
Sorry, my bad. It's not about rtp. I shouldn't name it access_tcprtp. The input data from the tcp socket is MPEG4 encoded and in TS container format.
So, you still think rtp module is a good approach?

Re: How can I make my module a DLL?

Posted: 09 Jan 2009 11:36
by Jean-Baptiste Kempf
Isn't there already a TCP.c access module?

Re: How can I make my module a DLL?

Posted: 09 Jan 2009 11:48
by tihctw
you mean I can use tcp://@:1234? or use access_tcp module as a template?