failed to compile python bindings w/ Cygwin on Windows XP

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
gakkor
New Cone
New Cone
Posts: 4
Joined: 09 Jan 2007 19:44

failed to compile python bindings w/ Cygwin on Windows XP

Postby gakkor » 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:

OlivierAubert
Developer
Developer
Posts: 92
Joined: 08 Mar 2007 15:43

Re: failed to compile python bindings w/ Cygwin on Windows XP

Postby OlivierAubert » 10 Apr 2008 10:38

Well, you are running 0.8.6, but for bindings, I would really advise you to use the upcoming 0.9.0 version (from the nightlies.videolan.org, or the soon-coming 0.9.0 preview release), since bindings can here be compiled out-of-tree without much complication. It has been a while since I last tried to compile 0.8.6 python bindings.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 30 guests