Menu

#6 Build fails with vlc 2.2.0 on Linux

2.0
closed
nobody
None
2015-04-17
2015-03-30
Ito
No

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

Discussion

  • Artem

    Artem - 2015-04-16

    Try version 0.4

     
  • stqn

    stqn - 2015-04-16

    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 recognized
    configure: 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
  • Ito

    Ito - 2015-04-17

    Same issue as already reported by stqn. I'm on openSUSE 13.2

     
  • Gypsy

    Gypsy - 2015-04-17

    confirm
    on Arch-32 and Debian8-32

     
  • Artem

    Artem - 2015-04-17

    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.

     
  • Gypsy

    Gypsy - 2015-04-17

    thx Artem, running like a charm

    Gypsy

     
  • Ito

    Ito - 2015-04-17

    Builds fine now, thank you! :)

     
  • Artem

    Artem - 2015-04-17
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB