Compile error with LibVLC 1.2.*

This forum is about all development around libVLC.
Ltty
Blank Cone
Blank Cone
Posts: 15
Joined: 13 Jan 2014 15:51

Compile error with LibVLC 1.2.*

Postby Ltty » 31 Mar 2015 10:51

Hi,

currently we are unable to build the Android LibVLC tags for versions 1.2.*. We get the following error, any idea what's wrong here? We do a clean checkout of the tag.

make[4]: *** [access/imem-access.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from ../../include/vlc_common.h:420:0,
from ../../modules/access/idummy.c:32:
../../modules/access/idummy.c: In function 'DemuxHold':
../../include/vlc_threads.h:317:25: warning: call to 'harmful_delay.constprop.1' declared with attribute warning: use proper event handling instead of short delay [enabled by default]
#define msleep(d) msleep(check_delay(d))
^
../../modules/access/idummy.c:60:5: note: in expansion of macro 'msleep'
msleep( 10000 ); /* FIXME!!! */
^
In function 'DemuxPause.part.0',
inlined from 'DemuxPause':
../../include/vlc_threads.h:317:25: warning: call to 'harmful_delay.constprop.1' declared with attribute warning: use proper event handling instead of short delay [enabled by default]
#define msleep(d) msleep(check_delay(d))
^
../../modules/access/idummy.c:78:5: note: in expansion of macro 'msleep'
msleep( 10000 ); /* FIXME!!! */
^
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

flocksserver
New Cone
New Cone
Posts: 2
Joined: 02 Apr 2015 14:08

Re: Compile error with LibVLC 1.2.*

Postby flocksserver » 02 Apr 2015 14:11

Same problem (think so) here... Need support:

Code: Select all

CC access/rar/librar_plugin_la-module.lo ../../modules/access/imem-access.c: In function 'Read': ../../modules/access/imem-access.c:46:37: warning: unknown escape sequence: '\_' [enabled by default] msg_Err(access, "read error"); ^ ../../modules/access/imem-access.c: In function 'Open': ../../modules/access/imem-access.c:136:17: warning: assignment from incompatible pointer type [enabled by default] open_cb = open_cb_default; ^ ../../modules/access/imem-access.c:141:37: warning: unknown escape sequence: '\_' [enabled by default] msg_Err(access, "open error"); ^ ../../modules/access/imem-access.c: At top level: ../../modules/access/imem-access.c:168:1: error: stray '\' in program vlc_module_begin() ^ In file included from ../../modules/access/imem-access.c:28:0: <command-line>:0:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_access' ../../include/vlc_plugin.h:205:36: note: in definition of macro 'CRUDE_HACK' #define CRUDE_HACK( y, z ) y##__##z ^ ../../include/vlc_plugin.h:212:36: note: in expansion of macro 'CONCATENATE' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:212:57: note: in expansion of macro 'MODULE_NAME' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:250:18: note: in expansion of macro '__VLC_SYMBOL' int CDECL_SYMBOL __VLC_SYMBOL(vlc_entry) (vlc_set_cb, void *); \ ^ ../../modules/access/imem-access.c:168:1: note: in expansion of macro 'vlc_module_begin' vlc_module_begin() ^ <command-line>:0:18: error: stray '\' in program ../../include/vlc_plugin.h:205:36: note: in definition of macro 'CRUDE_HACK' #define CRUDE_HACK( y, z ) y##__##z ^ ../../include/vlc_plugin.h:212:36: note: in expansion of macro 'CONCATENATE' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:212:57: note: in expansion of macro 'MODULE_NAME' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:250:18: note: in expansion of macro '__VLC_SYMBOL' int CDECL_SYMBOL __VLC_SYMBOL(vlc_entry) (vlc_set_cb, void *); \ ^ ../../modules/access/imem-access.c:168:1: note: in expansion of macro 'vlc_module_begin' vlc_module_begin() ^ <command-line>:0:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_access' ../../include/vlc_plugin.h:205:36: note: in definition of macro 'CRUDE_HACK' #define CRUDE_HACK( y, z ) y##__##z ^ ../../include/vlc_plugin.h:212:36: note: in expansion of macro 'CONCATENATE' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:212:57: note: in expansion of macro 'MODULE_NAME' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:252:18: note: in expansion of macro '__VLC_SYMBOL' int CDECL_SYMBOL __VLC_SYMBOL(vlc_entry) (vlc_set_cb vlc_set, void *opaque) \ ^ ../../modules/access/imem-access.c:168:1: note: in expansion of macro 'vlc_module_begin' vlc_module_begin() ^ ../../modules/access/imem-access.c:168:1: warning: unknown escape sequence: '\_' [enabled by default] ../../modules/access/imem-access.c:177:1: error: stray '\' in program vlc_module_end() ^ In file included from ../../modules/access/imem-access.c:28:0: <command-line>:0:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_access' ../../include/vlc_plugin.h:205:36: note: in definition of macro 'CRUDE_HACK' #define CRUDE_HACK( y, z ) y##__##z ^ ../../include/vlc_plugin.h:212:36: note: in expansion of macro 'CONCATENATE' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:212:57: note: in expansion of macro 'MODULE_NAME' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:505:5: note: in expansion of macro '__VLC_SYMBOL' __VLC_SYMBOL(vlc_entry_ ## name) (void); \ ^ ../../include/vlc_plugin.h:538:31: note: in expansion of macro 'VLC_META_EXPORT' # define VLC_COPYRIGHT_EXPORT VLC_META_EXPORT(copyright, VLC_MODULE_COPYRIGHT) ^ ../../include/vlc_plugin.h:545:5: note: in expansion of macro 'VLC_COPYRIGHT_EXPORT' VLC_COPYRIGHT_EXPORT \ ^ ../../include/vlc_plugin.h:267:1: note: in expansion of macro 'VLC_METADATA_EXPORTS' VLC_METADATA_EXPORTS ^ ../../modules/access/imem-access.c:177:1: note: in expansion of macro 'vlc_module_end' vlc_module_end() ^ <command-line>:0:18: error: stray '\' in program ../../include/vlc_plugin.h:205:36: note: in definition of macro 'CRUDE_HACK' #define CRUDE_HACK( y, z ) y##__##z ^ ../../include/vlc_plugin.h:212:36: note: in expansion of macro 'CONCATENATE' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:212:57: note: in expansion of macro 'MODULE_NAME' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:505:5: note: in expansion of macro '__VLC_SYMBOL' __VLC_SYMBOL(vlc_entry_ ## name) (void); \ ^ ../../include/vlc_plugin.h:538:31: note: in expansion of macro 'VLC_META_EXPORT' # define VLC_COPYRIGHT_EXPORT VLC_META_EXPORT(copyright, VLC_MODULE_COPYRIGHT) ^ ../../include/vlc_plugin.h:545:5: note: in expansion of macro 'VLC_COPYRIGHT_EXPORT' VLC_COPYRIGHT_EXPORT \ ^ ../../include/vlc_plugin.h:267:1: note: in expansion of macro 'VLC_METADATA_EXPORTS' VLC_METADATA_EXPORTS ^ ../../modules/access/imem-access.c:177:1: note: in expansion of macro 'vlc_module_end' vlc_module_end() ^ <command-line>:0:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_access' ../../include/vlc_plugin.h:205:36: note: in definition of macro 'CRUDE_HACK' #define CRUDE_HACK( y, z ) y##__##z ^ ../../include/vlc_plugin.h:212:36: note: in expansion of macro 'CONCATENATE' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:212:57: note: in expansion of macro 'MODULE_NAME' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:507:5: note: in expansion of macro '__VLC_SYMBOL' __VLC_SYMBOL(vlc_entry_ ## name) (void) \ ^ ../../include/vlc_plugin.h:538:31: note: in expansion of macro 'VLC_META_EXPORT' # define VLC_COPYRIGHT_EXPORT VLC_META_EXPORT(copyright, VLC_MODULE_COPYRIGHT) ^ ../../include/vlc_plugin.h:545:5: note: in expansion of macro 'VLC_COPYRIGHT_EXPORT' VLC_COPYRIGHT_EXPORT \ ^ ../../include/vlc_plugin.h:267:1: note: in expansion of macro 'VLC_METADATA_EXPORTS' VLC_METADATA_EXPORTS ^ ../../modules/access/imem-access.c:177:1: note: in expansion of macro 'vlc_module_end' vlc_module_end() ^ <command-line>:0:18: error: stray '\' in program ../../include/vlc_plugin.h:205:36: note: in definition of macro 'CRUDE_HACK' #define CRUDE_HACK( y, z ) y##__##z ^ ../../include/vlc_plugin.h:212:36: note: in expansion of macro 'CONCATENATE' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:212:57: note: in expansion of macro 'MODULE_NAME' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:507:5: note: in expansion of macro '__VLC_SYMBOL' __VLC_SYMBOL(vlc_entry_ ## name) (void) \ ^ ../../include/vlc_plugin.h:538:31: note: in expansion of macro 'VLC_META_EXPORT' # define VLC_COPYRIGHT_EXPORT VLC_META_EXPORT(copyright, VLC_MODULE_COPYRIGHT) ^ ../../include/vlc_plugin.h:545:5: note: in expansion of macro 'VLC_COPYRIGHT_EXPORT' VLC_COPYRIGHT_EXPORT \ ^ ../../include/vlc_plugin.h:267:1: note: in expansion of macro 'VLC_METADATA_EXPORTS' VLC_METADATA_EXPORTS ^ ../../modules/access/imem-access.c:177:1: note: in expansion of macro 'vlc_module_end' vlc_module_end() ^ <command-line>:0:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_access' ../../include/vlc_plugin.h:205:36: note: in definition of macro 'CRUDE_HACK' #define CRUDE_HACK( y, z ) y##__##z ^ ../../include/vlc_plugin.h:212:36: note: in expansion of macro 'CONCATENATE' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:212:57: note: in expansion of macro 'MODULE_NAME' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:505:5: note: in expansion of macro '__VLC_SYMBOL' __VLC_SYMBOL(vlc_entry_ ## name) (void); \ ^ ../../include/vlc_plugin.h:541:29: note: in expansion of macro 'VLC_META_EXPORT' # define VLC_LICENSE_EXPORT VLC_META_EXPORT(license, VLC_MODULE_LICENSE) ^ ../../include/vlc_plugin.h:546:5: note: in expansion of macro 'VLC_LICENSE_EXPORT' VLC_LICENSE_EXPORT ^ ../../include/vlc_plugin.h:267:1: note: in expansion of macro 'VLC_METADATA_EXPORTS' VLC_METADATA_EXPORTS ^ ../../modules/access/imem-access.c:177:1: note: in expansion of macro 'vlc_module_end' vlc_module_end() ^ <command-line>:0:18: error: stray '\' in program ../../include/vlc_plugin.h:205:36: note: in definition of macro 'CRUDE_HACK' #define CRUDE_HACK( y, z ) y##__##z ^ ../../include/vlc_plugin.h:212:36: note: in expansion of macro 'CONCATENATE' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:212:57: note: in expansion of macro 'MODULE_NAME' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:505:5: note: in expansion of macro '__VLC_SYMBOL' __VLC_SYMBOL(vlc_entry_ ## name) (void); \ ^ ../../include/vlc_plugin.h:541:29: note: in expansion of macro 'VLC_META_EXPORT' # define VLC_LICENSE_EXPORT VLC_META_EXPORT(license, VLC_MODULE_LICENSE) ^ ../../include/vlc_plugin.h:546:5: note: in expansion of macro 'VLC_LICENSE_EXPORT' VLC_LICENSE_EXPORT ^ ../../include/vlc_plugin.h:267:1: note: in expansion of macro 'VLC_METADATA_EXPORTS' VLC_METADATA_EXPORTS ^ ../../modules/access/imem-access.c:177:1: note: in expansion of macro 'vlc_module_end' vlc_module_end() ^ <command-line>:0:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_access' ../../include/vlc_plugin.h:205:36: note: in definition of macro 'CRUDE_HACK' #define CRUDE_HACK( y, z ) y##__##z ^ ../../include/vlc_plugin.h:212:36: note: in expansion of macro 'CONCATENATE' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:212:57: note: in expansion of macro 'MODULE_NAME' # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) ^ ../../include/vlc_plugin.h:507:5: note: in expansion of macro '__VLC_SYMBOL' __VLC_SYMBOL(vlc_entry_ ## name) (void) \ ^ ../../include/vlc_plugin.h:541:29: note: in expansion of macro 'VLC_META_EXPORT' # define VLC_LICENSE_EXPORT VLC_META_EXPORT(license, VLC_MODULE_LICENSE) ^ ../../include/vlc_plugin.h:546:5: note: in expansion of macro 'VLC_LICENSE_EXPORT' VLC_LICENSE_EXPORT ^ ../../include/vlc_plugin.h:267:1: note: in expansion of macro 'VLC_METADATA_EXPORTS' VLC_METADATA_EXPORTS ^ ../../modules/access/imem-access.c:177:1: note: in expansion of macro 'vlc_module_end' vlc_module_end() ^ ../../modules/access/imem-access.c:116:12: warning: 'Open' defined but not used [-Wunused-function] static int Open(vlc_object_t *object) ^ ../../modules/access/imem-access.c:158:13: warning: 'Close' defined but not used [-Wunused-function] static void Close(vlc_object_t *object) ^ make[4]: *** [access/imem-access.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Thanks =)

DevSean
New Cone
New Cone
Posts: 1
Joined: 05 Apr 2015 07:55

Re: Compile error with LibVLC 1.2.*

Postby DevSean » 05 Apr 2015 08:03

I had same issue.

So, I did modify a file the vlc/module/Makefile.am.

from:
line 5597.
# Module name from object or executable file name.
MODULE_NAME = $$(p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; p="$${p%_plugin*}"; p="$${p//-/\_}"; p="$${p%.lo}"; echo "$$p")
AM_CFLAGS =

to:
# Module name from object or executable file name.
MODULE_NAME = $$(p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; p="$${p%_plugin*}"; p="$${p//-/_}"; p="$${p%.lo}"; echo "$$p")
AM_CFLAGS =

flocksserver
New Cone
New Cone
Posts: 2
Joined: 02 Apr 2015 14:08

Re: Compile error with LibVLC 1.2.*

Postby flocksserver » 07 Apr 2015 08:50

YEAH! Thanks a lot for this hint.
I changed this line in the file Makefile.in located in /vlc/module/Makefile.in

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Compile error with LibVLC 1.2.*

Postby Jean-Baptiste Kempf » 08 Apr 2015 11:36

Just update. It's fixed.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 42 guests