Results 1 to 8 of 8

Thread: Ubuntu 11.04 compile VLC from git.

  1. #1
    Join Date
    Jun 2011
    Posts
    84

    Ubuntu 11.04 compile VLC from git.

    Since few days I have been trying to compile VLC on Ubuntu 11.04 with git. To make it successful I tried to ran bootstrap and done configure successfully. But during compiling I landed with code of errors:

    Code:
    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
    How to solve this problem? I am waiting for your reply.

  2. #2
    Join Date
    Nov 2008
    Posts
    1,185

    Re: Ubuntu 11.04 compile VLC from git.

    After reading your query, it seems that you are trying to build the unofficial VLC from git. By seeing your error it refers to something that is not in the official VLC. I would like to let you know that error is from vlc_fixups.h. This is under include/vlc_fixups.h of official vlc git checkout. You will also notice that vlc git checkout under has vlc_fixups.h is included in config.h also. Avoid using this third party VLC which is not official.

  3. #3
    Join Date
    Nov 2008
    Posts
    1,221

    Re: Ubuntu 11.04 compile VLC from git.

    According to me there is something not correct with vlc_fixups.g and compat/pthread_cancel.c. For the time being let us assume that compat file failed do to for what it is known. You will also see that the problem also exists in

    Code:
    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 try using the official VLC.

  4. #4
    Join Date
    Nov 2008
    Posts
    1,022

    Re: Ubuntu 11.04 compile VLC from git.

    I agree with the official terms. I have done some research over the internet and came with the conclusion that the official vlc_fixups.h does not define PTHREAD_CANCEL_ENABLE at line 322. Also it hasn’t done before. If you have a look at it carefully then you will notice by yourself that line 322 is currently empty in VLC git and it did not even exist in VLC 1.1. That the reason your getting such kind of errors. Its obviously caused by an unofficial modification.

  5. #5
    Join Date
    May 2008
    Posts
    860

    Re: Ubuntu 11.04 compile VLC from git.

    The following FFmpeg build code will help you compile VLC on Ubuntu 11.04 with git. Just try, I hope it will work. I am not sure because I haven’t tried it personally.

    Code:
    udo apt-get -y install libfaac-dev libmp3lame-dev \
       libopencore-amrnb-dev libopencore-amrwb-dev zlib1g-dev && \
    cd $HOME/vlc_build && \
    wget http://www.ffmpeg.org/releases/ffmpeg-0.8.tar.bz2 && \
    tar xjvf ffmpeg-0.8.tar.bz2 && cd ffmpeg-0.8 && \
    if [ "$(uname -m)" = "x86_64" ]; then
      ARCHOPTS="--enable-pic"
     else
      ARCHOPTS=""
    fi && \
    ./configure --prefix=$HOME/vlc_build/vlcdeps/usr \
                  $ARCHOPTS \
                  --enable-gpl \
                  --enable-version3 \
                  --enable-nonfree \
                  --enable-postproc \
                  --enable-pthreads \
                  --enable-libfaac \
                  --enable-libmp3lame \
                  --enable-libopencore-amrnb \
                  --enable-libopencore-amrwb \
                  --enable-libvpx \
                  --disable-ffmpeg \
                  --disable-ffplay \
                  --disable-ffserver \
                  --disable-doc && \
    make jobs=4 && make install-libs install-headers && make distclean

  6. #6
    Join Date
    May 2008
    Posts
    913

    Re: Ubuntu 11.04 compile VLC from git.

    If you want to download and build VLC with git then with a single command you can do that. Just follow the below code that I have done for you.

    Code:
    cd $HOME/vlc_build && \
    git clone git://git.videolan.org/vlc.git --depth 1 && \
    cd $HOME/vlc_build/vlc && ./bootstrap && \
    export PKG_CONFIG_PATH="$HOME/vlc_build/vlcdeps/usr/lib/pkgconfig" && \
    if [ ! "$(uname -m)" = "x86_64" ]; then
     ARCHOPTS="--enable-loader"
    else
      ARCHOPTS=""
    fi && \
    ./configure $ARCHOPTS \
                --prefix=/usr/local \
                --with-live555-tree=$HOME/vlc_build/live \
                --enable-real \
                --enable-realrtsp \
                --enable-aa \
                --enable-merge-ffmpeg \
                --enable-vcdx \
                --enable-ncurses && \
    make jobs=4 && \
    sudo checkinstall --pakdir "$HOME/vlc_build" --backup=no --deldoc=yes --pkgname vlc \
                      --pkgversion "1.2.0-git-$(date +%Y%m%d)-$(git show --abbrev-commit \
                      | grep '^commit' | cut -f2 -d " ")" --fstrans=no \
                      --deldesc=yes --delspec=yes --default && \
    make distclean && sudo ldconfig

  7. #7
    Join Date
    Nov 2008
    Posts
    1,192

    Re: Ubuntu 11.04 compile VLC from git.

    You can also update your existing VLC-git. You should perform this time to time update for better functionality, bug fixes and new features. The below command will help you to do that.
    Code:
    cd $HOME/vlc_build/vlc && git pull && ./bootstrap && \
    export PKG_CONFIG_PATH="$HOME/vlc_build/vlcdeps/usr/lib/pkgconfig" && \
    if [ ! "$(uname -m)" = "x86_64" ]; then
     ARCHOPTS="--enable-loader"
    else
      ARCHOPTS=""
    fi && \
    ./configure $ARCHOPTS \
                --prefix=/usr/local \
                --with-live555-tree=$HOME/vlc_build/live \
                --enable-real \
                --enable-realrtsp \
                --enable-aa \
                --enable-merge-ffmpeg \
                --enable-vcdx \
                --enable-ncurses && \
    make jobs=4 && \
    sudo checkinstall --pakdir "$HOME/vlc_build" --backup=no --deldoc=yes --pkgname vlc \
                      --pkgversion "1.2.0-git-$(date +%Y%m%d)-$(git show --abbrev-commit \
                      | grep '^commit' | cut -f2 -d " ")" --fstrans=no \
                      --deldesc=yes --delspec=yes --default && \
    make distclean && sudo ldconfig

  8. #8
    Join Date
    Nov 2008
    Posts
    1,192

    Re: Ubuntu 11.04 compile VLC from git.

    I have something new for you. If you are interested to pursue than tale a look at the slackware ffmpeg amd_64 asm patch. It is dsputil.h patch that will lead you to success resulting and you can compile VLC on Ubuntu 11.04 with git. Take the reference from the code and apply in your.


    Code:
    #define SINETABLE_CONST
    #endif
    
    #ifndef _ATTR_HIDDEN
    #define _ATTR_HIDDEN __attribute__((visibility("hidden")))
    #endif
    
    #define COSTABLE(size) \
        COSTABLE_CONST DECLARE_ALIGNED_16(FFTSample, _ATTR_HIDDEN ff_cos_##size[size/2])
    #define SINTABLE(size) \
        SINTABLE_CONST DECLARE_ALIGNED_16(FFTSample, _ATTR_HIDDEN ff_sin_##size[size/2])
    #define SINETABLE(size) \
        SINETABLE_CONST DECLARE_ALIGNED_16(float,  _ATTR_HIDDEN ff_sine_##size)[size]
    extern COSTABLE(16);
    extern COSTABLE(32);

Similar Threads

  1. How to compile program for PowerPC Ubuntu?
    By Dipanwita in forum Operating Systems
    Replies: 1
    Last Post: 24-01-2012, 06:09 AM
  2. Replies: 10
    Last Post: 15-09-2011, 10:27 PM
  3. Cross compile VLC for the windows by using Ubuntu 9.04
    By CAMDEND in forum Windows Software
    Replies: 5
    Last Post: 10-07-2011, 11:00 AM
  4. How to compile QT projects under Mac
    By ShastriJI in forum Software Development
    Replies: 7
    Last Post: 25-09-2010, 09:01 PM
  5. How to compile C++ on Vista
    By Bina in forum Software Development
    Replies: 3
    Last Post: 15-01-2009, 09:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,625,091.59712 seconds with 16 queries