The steps I took:
Code:
Code: Select all
#include <vlc_common.h>
#include <vlc_plugin.h>
#define DOMAIN "vlc-myplugin"
#define _(str) dgettext(DOMAIN, str)
#define N_(str) (str)
static int Open(vlc_object_t *);
static void Close(vlc_object_t *);
vlc_module_begin()
set_shortname("mtm")
set_description(N_("libmtm MTM support"))
set_capability("access", 20)
set_category(CAT_INPUT)
set_subcategory(SUBCAT_INPUT_ACCESS)
set_callbacks(Open, Close)
vlc_module_end()
static int Open(vlc_object_t *p_this){
return VLC_EGENERIC;
}
static inline void Close(vlc_object_t *obj){
}
Code: Select all
cc -std=gnu99 -I/home/user/projects/vlc/vlc/include -g -O2 -Wall -Wextra -fPIC -D__PLUGIN__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -I/usr/local/include/vlc/plugins -shared -o libaccess_mtm_plugin.dll src/vlc_mtm_module.o -Wl,-no-undefined,-z,defs -L/usr/lib -L/usr/local/lib -lvlccore
Then I run vlc --reset-plugins-cache
Is there some part of the process I've missed or is something wrong with my make command? Any help is greatly appreciated.