I want to create my own out-of-tree VLC plugin with Visual Studio 2015 (I'm not a Linux user and building the whole source tree under Windows seems to be difficult - this is why I decided to start this way).
What I tried so far:
- Take hello-world example from https://wiki.videolan.org/Hacker_Guide/ ... _a_Module/
- Take headers from source archive
- Take libvlc.lib and libvlccore.lib from https://github.com/RSATom/libvlc-sdk/tree/master/lib
Code: Select all
// seems to be necessary, according to WIKI
#define MODULE_STRING "MyTest_Video_Filter"
// this is to get rid of the error C3861: 'poll': identifier not found
#define LIBVLC_USE_PTHREAD_CANCEL
// this is to get rid of various errors due to the missing ssize_t type
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif
// this is to get rid of the error C3861: 'N_': identifier not found
#define N_(str) (str)
But here's the problem:
When I copy my plugin DLL to C:\Program Files (x86)\VideoLAN\VLC\plugins\video_filter and restart VLC, my hello-world plugin does not show up in the Plugins and extensions dialog of VLC.
What do I have to do to make my plugin available to VLC? Does VLC maybe write a log where I can see which DLLs it considers as plugins and why it discards them?
Edit 1:
Ok I just found out about the naming convention. My plugin is now built as libhello_plugin.dll. But it does still not show up.