I'm getting this error:
srpos.c: In function 'Open':
srpos.c:136:5: warning: implicit declaration of function 'pl_Get' [-Wimplicit-function-declaration]
var_AddCallback( pl_Get( p_intf ), "item-change", ItemChange, p_intf );
^
srpos.c:136:75: error: invalid type argument of unary '' (have 'int')
var_AddCallback( pl_Get( p_intf ), "item-change", ItemChange, p_intf );
^
srpos.c:136:22: error: first argument to '__builtin_choose_expr' not a constant
var_AddCallback( pl_Get( p_intf ), "item-change", ItemChange, p_intf );
^
srpos.c:136:5: error: invalid use of void expression
var_AddCallback( pl_Get( p_intf ), "item-change", ItemChange, p_intf );
^
srpos.c: In function 'Close':
srpos.c:149:30: warning: initialization makes pointer from integer without a cast [enabled by default]
playlist_t p_playlist = pl_Get( p_this );
^
Makefile:334: recipe for target 'libsrpos_plugin_la-srpos.lo' failed
make: *** [libsrpos_plugin_la-srpos.lo] Error 1
Try version 0.4
Thanks for the update Artem but with version 0.4 I get this:
checking vlc_plugin.h usability... no
checking vlc_plugin.h presence... no
checking for vlc_plugin.h... no
configure: error: VLC headers not found. Use --with-vlc-include-path option to locate VLC include path.
If I call "./configure --with-vlc-include-path /usr/include/vlc" instead then I get:
checking build system type... Invalid configuration
/usr/include/vlc': machine/usr/include/vlc' not recognizedconfigure: error: /bin/sh ./config.sub /usr/include/vlc failed
Under Arch Linux 64 bit with VLC 2.2.0.
Edit: of course the include files are in /usr/include/vlc/, and vlc_plugin.h specifically is in /usr/include/vlc/plugins/.
Last edit: stqn 2015-04-17
Same issue as already reported by stqn. I'm on openSUSE 13.2
confirm
on Arch-32 and Debian8-32
Yes, my mistake. My compiler gcc 4.9.1 doesn't report this errors. Try 0.5 version, also I include vlc headers 2.2 to distr.
thx Artem, running like a charm
Gypsy
Builds fine now, thank you! :)