Page 1 of 1

Compile VLC from git on Ubuntu 11.04

Posted: 05 May 2011 19:23
by yinglcs
Hi,

I am trying to compile VLC from git on Ubuntu 11.04.
I ran bootstrap and configure successfully. But when I compile,

I get these errors:

Code: Select all

In file included from ../config.h:825:0, from pthread_cancel.c:12: ERROR : ../include/vlc_fixups.h:327: 45: expected ')' before '*' token ERROR : ../include/vlc_fixups.h:332: 38: expected ')' before 'thread_id' ERROR : ../include/vlc_fixups.h:334: 53: expected ')' before '*' token ERROR : ../include/vlc_fixups.h:336: 58: expected ')' before '*' token In file included from ../include/vlc_threads.h:51:0, from ../include/vlc_common.h:494, from pthread_cancel.c:15: ERROR : /usr/include/pthread.h:193: 3: redeclaration of enumerator 'PTHREAD_CANCEL_ENABLE' ../include/vlc_fixups.h:322:3: note: previous definition of 'PTHREAD_CANCEL_ENABLE' was here
I have checked I have libpthread-stubs0-dev installed.

Thank you.

Re: Compile VLC from git on Ubuntu 11.04

Posted: 05 May 2011 20:22
by Rémi Denis-Courmont
You are not trying to build the official VLC from git, because the error refers to something that is not in the official VLC.

Re: Compile VLC from git on Ubuntu 11.04

Posted: 05 May 2011 20:58
by yinglcs
The error is from vlc_fixups.h (which is under include/vlc_fixups.h of official vlc git checkout). and vlc_fixups.h is included in config.h which is also under vlc git checkout.

Re: Compile VLC from git on Ubuntu 11.04

Posted: 05 May 2011 21:59
by Rémi Denis-Courmont
The official vlc_fixups.h does not define PTHREAD_CANCEL_ENABLE at line 322 and it never did. In fact, said line 322 is currently empty in VLC git (and it did not even exist in VLC 1.1). Thus your error is obviously caused by an unofficial modification.

Please stop lying.

Re: Compile VLC from git on Ubuntu 11.04

Posted: 21 Jun 2011 09:38
by herrlado
The same problem also exists in

Code: Select all

lado@genlap ~/development/android/vlc-android $ cat .git/config [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = git://git.videolan.org/vlc/vlc-android.git [branch "master"] remote = origin merge = refs/heads/master
So there is something wrong with vlc_fixups.g and compat/pthread_cancel.c
I assume the compat file does not what it is for...

Re: Compile VLC from git on Ubuntu 11.04

Posted: 21 Jun 2011 09:49
by Rémi Denis-Courmont
The official VLC tree does not have a compat/pthread_cancel.c. If you want help on compiling VLC, please use an official version.