[vlc-devel] vlc modules development

mattes effemm at mykmk.com
Fri Jan 28 22:30:17 CET 2011


I am fairly new to vlc framework.
I already have a module I created inside the vlc source code.

To simplify things, I like to set it up, so it compiles and links out side
the vlc source tree.

I installed the vlc-devel rpm, which should give me all the headers
and libraries needed.
Compiling my module now fails miserably:

gcc -Wall -O2 -std=c99 -I. -I /usr/include/vlc/plugins    -c -o v4l3.o v4l3.c
In file included from /usr/include/vlc/plugins/vlc_common.h:525,
                 from v4l3.c:25:
/usr/include/vlc/plugins/vlc_threads.h:107: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘vlc_rwlock_t’
/usr/include/vlc/plugins/vlc_threads.h:184: error: expected ‘)’ before ‘*’
token
/usr/include/vlc/plugins/vlc_threads.h:185: error: expected ‘)’ before ‘*’
token
/usr/include/vlc/plugins/vlc_threads.h:186: error: expected ‘)’ before ‘*’
token
/usr/include/vlc/plugins/vlc_threads.h:187: error: expected ‘)’ before ‘*’
token
/usr/include/vlc/plugins/vlc_threads.h:188: error: expected ‘)’ before ‘*’
token
---

I am guessing here, but I assume that the environment is not properly
setup.

Is there some example code that describes how to compile/link a module
outside the vlc source tree?

mattes






More information about the vlc-devel mailing list