[vlc-devel] Python bindings (vlcinternal build problem?)
Etienne Robillard
etienne.robillard at extenway.com
Thu Jan 17 20:48:25 CET 2008
Hello,
I'm trying to build the 'vlc' and 'vlcinternal' module to use in Python 2.4.1
on Linux mandriva 2006. I'm tracking the trunk branch of vlc (revision
24361).
So far, after two or three more tea cups, I can pass the compilation and
installation stages without problems, and the vlc module gets built as
expected. :)
However, to compile properly on this particular i586 architecture, I had
to apply the following patch:
--- mediacontrol_structures.h 2008-01-17 06:50:26.000000000 -0600
+++ mediacontrol_structures.h.mine 2008-01-17 06:50:00.000000000 -0600
@@ -84,7 +84,7 @@
typedef struct {
int width;
int height;
- int32_t type;
+ u_int32_t type;
int64_t date;
int size;
char *data;
Now if I'm trying to execute the setup-internal.py script in bindings/python:
[root at shahramStb2 python]# python setup-internal.py build
running build
running build_ext
building 'vlcinternal' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -fomit-frame-pointer -pipe -march=i586 -mtune=pentiumpro -g -fPIC -I../.. -I./../../include -I. -I/usr/win32/include -I/usr/include/python2.4 -c ./vlc_internal.c -o
build/temp.linux-i686-2.4/./vlc_internal.o -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DLOCALEDIR="/usr/share/locale" -DDATA_PATH="/usr/share/vlc" -DPLUGIN_PATH="/usr/lib/vlc" -DMODULE_NAME=vlc -DMODULE_NAME_IS_vlc -O2 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer
In file included from ./../../include/vlc_common.h:491,
from ./../../include/vlc/vlc.h:155,
from ./vlc_internal.h:34,
from ./vlc_internal.c:24:
./../../include/vlc_modules_macros.h:32:1: warning: "MODULE_NAME" redefined
<command line>:1:1: warning: this is the location of the previous definition
./vlc_internal.c: In function 'vlcObject_info':
./vlc_internal.c:300: error: 'struct vlc_object_t' has no member
named 'b_thread'
./vlc_internal.c:302: error: 'struct vlc_object_t' has no member
named 'thread_id'
./vlc_internal.c:304: error: 'struct vlc_object_t' has no member
named 'i_refcount'
./vlc_internal.c: In function 'vlcObject_var_list':
./vlc_internal.c:531: error: 'struct vlc_object_t' has no member
named 'i_vars'
./vlc_internal.c:537: error: 'struct vlc_object_t' has no member
named 'p_vars'
error: command 'gcc' failed with exit status 1
Any ideas how to solve this issue?
Regards,
Etienne
More information about the vlc-devel
mailing list