Stream filter plug-in "cannot find plug-in entry point"
Posted: 11 Mar 2013 13:16
Hi,
I'm writing a stream filter plug-in over Mac OS X 10.7. I'm building it out of the VLC source tree <http://wiki.videolan.org/OutOfTreeCompile> because I have a bunch of errors trying to compile the VLC source code.
Here is my empty source code:
To build my library I'm using qmake to simplify the process:
Any idea why this problem?
I'm writing a stream filter plug-in over Mac OS X 10.7. I'm building it out of the VLC source tree <http://wiki.videolan.org/OutOfTreeCompile> because I have a bunch of errors trying to compile the VLC source code.
Here is my empty source code:
Code: Select all
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_stream.h>
#define DOMAIN "stream_filter_test"
#define _(str) dgettext(DOMAIN, str)
#define N_(str) (str)
#define MODULE_STRING "Prot_On_VLC_Plugin"
static int Open (vlc_object_t *);
static void Close(vlc_object_t *);
vlc_module_begin()
set_text_domain(DOMAIN)
set_category(CAT_INPUT)
set_subcategory(SUBCAT_INPUT_STREAM_FILTER)
set_shortname("Prot-On")
set_description(N_("Plugin to see protected files"))
set_capability("stream_filter", 20)
set_callbacks(Open, Close)
vlc_module_end()
static int Open(vlc_object_t *obj)
{
return VLC_EGENERIC;
}
static void Close(vlc_object_t *obj)
{
}
Code: Select all
QT -= core gui
TARGET = stream_filter_proton_plugin
TEMPLATE = lib
INCLUDEPATH += vlc_include
LIBS += -L$$PWD/vlc_lib -lvlccore
macx:CONFIG += x86 x86_64
HEADERS +=
SOURCES += VLCPlugin.cpp
# OS X installation
macx {
system(install_name_tool -change @loader_path/lib/libvlccore.5.dylib @loader_path/../lib/libvlccore.5.dylib $$OUT_PWD/libstream_filter_proton_plugin.1.0.0.dylib)
system(cp -f $$OUT_PWD/libstream_filter_proton_plugin.1.0.0.dylib /Applications/VLC.app/Contents/MacOS/plugins/libstream_filter_proton_plugin.dylib)
system(ln -s /Applications/VLC.app/Contents/MacOS/plugins/libstream_filter_proton_plugin.dylib /Applications/VLC.app/Contents/MacOS/plugins/libstream_filter_proton_plugin.1.dylib)
}