failed to compile python bindings w/ Cygwin on Windows XP
Posted: 31 Mar 2008 02:44
Hi all,
I followed the instructions on http://wiki.videolan.org/Win32CompileCygwinNew to build VLC from source using Cygwin for Windows (I used the source tarball for 0.8.6.e, and the contrib packages for 0.8.6e and gcc-3.4.5, although my Cygwin has gcc-3.4.4)
It worked fairly well, I only needed minor adjustments from this post: viewtopic.php?f=14&t=43553. I was also able to create an automatic installer for Windows using NSIS.
However, I also want to include the mediacontrol python bindings , but when I enable it from the configure, the make fails with a long list of errors that are all seem to related to not finding any threads library in my system (see below)
Has anybody successfully compiled the python bindings using the Cygwin setup? I came across several postings, none with a clear answer. I am encourage by the success of the build without the python bindings, and hope that with minor adjustments I can get this part working, too
Any suggestions would be greatly appreciated.
Thanks,
GA
---- snip -----
srcdir="." top_builddir="../.." python "./setup.py" build "--build-base=../../bindings/mediacontrol-python" "--build-temp=../../bindings/mediacontrol-python"
running build
running build_ext
building 'vlc' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I../.. -I./../../include -I/usr/win32/include -I/usr/include/python2.5 -c ./vlcglue.c -o ../../bindings/mediacontrol-python/./vlcglue.o -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR="/usr/local/share/locale" -DDATA_PATH="/usr/local/share/vlc" -DPLUGIN_PATH="/usr/local/lib/vlc" -DDEBUG -O3 -ffast-math -funroll-loops -mtune=pentium2 -g
In file included from ./../../include/vlc_common.h:467,
from ./../../include/vlc/vlc.h:153,
from ./vlcglue.h:31,
from ./vlcglue.c:24:
./../../include/vlc_threads.h:63:5: #error no threads available on your system !
In file included from ./../../include/vlc_common.h:1176,
from ./../../include/vlc/vlc.h:153,
from ./vlcglue.h:31,
from ./vlcglue.c:24:
./../../include/vlc_symbols.h:336: error: parse error before "vlc_mutex_t"
./../../include/vlc_symbols.h:336: warning: function declaration isn't a prototype
./../../include/vlc_symbols.h:337: error: parse error before "vlc_mutex_t"
./../../include/vlc_symbols.h:337: warning: function declaration isn't a prototype
./../../include/vlc_symbols.h:338: error: parse error before "vlc_cond_t"
./../../include/vlc_symbols.h:338: warning: function declaration isn't a prototype
./../../include/vlc_symbols.h:339: error: parse error before "vlc_cond_t"
./../../include/vlc_symbols.h:339: warning: function declaration isn't a prototype
In file included from ./../../include/vlc_common.h:1181,
from ./../../include/vlc/vlc.h:153,
from ./vlcglue.h:31,
from ./vlcglue.c:24:
I followed the instructions on http://wiki.videolan.org/Win32CompileCygwinNew to build VLC from source using Cygwin for Windows (I used the source tarball for 0.8.6.e, and the contrib packages for 0.8.6e and gcc-3.4.5, although my Cygwin has gcc-3.4.4)
It worked fairly well, I only needed minor adjustments from this post: viewtopic.php?f=14&t=43553. I was also able to create an automatic installer for Windows using NSIS.
However, I also want to include the mediacontrol python bindings , but when I enable it from the configure, the make fails with a long list of errors that are all seem to related to not finding any threads library in my system (see below)
Has anybody successfully compiled the python bindings using the Cygwin setup? I came across several postings, none with a clear answer. I am encourage by the success of the build without the python bindings, and hope that with minor adjustments I can get this part working, too
Any suggestions would be greatly appreciated.
Thanks,
GA
---- snip -----
srcdir="." top_builddir="../.." python "./setup.py" build "--build-base=../../bindings/mediacontrol-python" "--build-temp=../../bindings/mediacontrol-python"
running build
running build_ext
building 'vlc' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I../.. -I./../../include -I/usr/win32/include -I/usr/include/python2.5 -c ./vlcglue.c -o ../../bindings/mediacontrol-python/./vlcglue.o -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR="/usr/local/share/locale" -DDATA_PATH="/usr/local/share/vlc" -DPLUGIN_PATH="/usr/local/lib/vlc" -DDEBUG -O3 -ffast-math -funroll-loops -mtune=pentium2 -g
In file included from ./../../include/vlc_common.h:467,
from ./../../include/vlc/vlc.h:153,
from ./vlcglue.h:31,
from ./vlcglue.c:24:
./../../include/vlc_threads.h:63:5: #error no threads available on your system !
In file included from ./../../include/vlc_common.h:1176,
from ./../../include/vlc/vlc.h:153,
from ./vlcglue.h:31,
from ./vlcglue.c:24:
./../../include/vlc_symbols.h:336: error: parse error before "vlc_mutex_t"
./../../include/vlc_symbols.h:336: warning: function declaration isn't a prototype
./../../include/vlc_symbols.h:337: error: parse error before "vlc_mutex_t"
./../../include/vlc_symbols.h:337: warning: function declaration isn't a prototype
./../../include/vlc_symbols.h:338: error: parse error before "vlc_cond_t"
./../../include/vlc_symbols.h:338: warning: function declaration isn't a prototype
./../../include/vlc_symbols.h:339: error: parse error before "vlc_cond_t"
./../../include/vlc_symbols.h:339: warning: function declaration isn't a prototype
In file included from ./../../include/vlc_common.h:1181,
from ./../../include/vlc/vlc.h:153,
from ./vlcglue.h:31,
from ./vlcglue.c:24: