Compile VLC from git on Ubuntu 11.04

*nix specific usage questions
yinglcs
Blank Cone
Blank Cone
Posts: 48
Joined: 06 Dec 2006 17:04

Compile VLC from git on Ubuntu 11.04

Postby yinglcs » 05 May 2011 19:23

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15140
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Compile VLC from git on Ubuntu 11.04

Postby Rémi Denis-Courmont » 05 May 2011 20:22

You are not trying to build the official VLC from git, because the error refers to something that is not in the official VLC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

yinglcs
Blank Cone
Blank Cone
Posts: 48
Joined: 06 Dec 2006 17:04

Re: Compile VLC from git on Ubuntu 11.04

Postby yinglcs » 05 May 2011 20:58

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15140
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Compile VLC from git on Ubuntu 11.04

Postby Rémi Denis-Courmont » 05 May 2011 21:59

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

herrlado
New Cone
New Cone
Posts: 1
Joined: 21 Jun 2011 09:29

Re: Compile VLC from git on Ubuntu 11.04

Postby herrlado » 21 Jun 2011 09:38

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...

Rémi Denis-Courmont
Developer
Developer
Posts: 15140
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Compile VLC from git on Ubuntu 11.04

Postby Rémi Denis-Courmont » 21 Jun 2011 09:49

The official VLC tree does not have a compat/pthread_cancel.c. If you want help on compiling VLC, please use an official version.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 12 guests