RPM: Ubuntu12.04 compiling VLC, running on Linux

Source: Internet
Author: User
Tags posix wrapper automake

Ubuntu12.04 compiling vlc2.1.0

1. Compiling the Environment

VM8.0.1

# gcc-v

Using built-in specs.

collect_gcc=gcc

Collect_lto_wrapper=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper

Target:i686-linux-gnu

Configured with:.. /src/configure-v--with-pkgversion= ' Ubuntu/linaro 4.6.3-1ubuntu5 '--with-bugurl=file:///usr/share/doc/gcc-4.6/ Readme. Bugs--enable-languages=c,c++,fortran,objc,obj-c++--prefix=/usr--program-suffix=-4.6--enable-shared-- Enable-linker-build-id--with-system-zlib--libexecdir=/usr/lib--without-included-gettext--enable-threads=posix- -with-gxx-include-dir=/usr/include/c++/4.6--libdir=/usr/lib--enable-nls--with-sysroot=/--enable-clocale=gnu-- Enable-libstdcxx-debug--enable-libstdcxx-time=yes--enable-gnu-unique-object--enable-plugin--ENABLE-OBJC-GC-- Enable-targets=all--disable-werror--with-arch-32=i686--with-tune=generic--enable-checking=release--build= I686-linux-gnu--host=i686-linux-gnu--target=i686-linux-gnu

Thread Model:posix

GCC version 4.6.3 (Ubuntu/linaro 4.6.3-1ubuntu5)

2 Installing VLC-dependent libraries

#sudo Apt-get BUILD-DEP VLC

3. Install the necessary kit or there will be an error later
#apt-get Install autoconf automake libtool git subversion

4, install the latest VLC
#cd/home/git_work
#git Clone Git://git.videolan.org/vlc.git

5, to the VLC root directory
#./bootstrap

Generating modules/**/makefile.am

..................................

+ autoreconf--install--force--verbose-i M4

Autoreconf:entering directory '. '

Autoreconf:running:autopoint--force

Copying file Po/makevars.template

Autoreconf:running:aclocal-i M4--force-i M4

Autoreconf:configure.ac:tracing

Autoreconf:running:libtoolize--install--copy--force

libtoolize:putting auxiliary files in Ac_config_aux_dir, ' Autotools '.

libtoolize:copying file ' autotools/config.guess '

libtoolize:copying file ' Autotools/config.sub '

libtoolize:copying file ' Autotools/install-sh '

libtoolize:copying file ' autotools/ltmain.sh '

libtoolize:putting macros in Ac_config_macro_dir, ' M4 '.

libtoolize:copying file ' m4/libtool.m4 '

libtoolize:copying file ' m4/ltoptions.m4 '

libtoolize:copying file ' m4/ltsugar.m4 '

libtoolize:copying file ' m4/ltversion.m4 '

libtoolize:copying file ' m4/lt~obsolete.m4 '

Autoreconf:running:/usr/bin/autoconf--include=m4--force

Autoreconf:running:/usr/bin/autoheader--include=m4--force

Autoreconf:running:automake--add-missing--copy--force-missing

Autoreconf:leaving directory '. '

+ rm-f Po/makevars.template

+ rm-f STAMP-H1

+ Set +x

Successfully bootstrapped

6. Configure the Environment

#./configure.sh-help View Configuration Help

#./configure--PREFIX=/MNT/SHARE/VLC (Specify the directory to install the make install)

And then wait for no error:

LIBVLC Configuration

--------------------

Version:2.1.0-git

System:linux

architecture:i686 MMX SSE SSE2

Optimizations:yes

VLC aliases:cvlc rvlc QVLC SVLC NVLC

To-build VLC and its plugins, type ' make ', or './compile ' If you like nice colors.

Generate makefile

9, can be directly compiled

#make

Making All in Test

MAKE[2]: Entering directory '/home/git-work/vlc2.1.0/test '

MAKE[2]: Nothing to is done for ' all '.

MAKE[2]: Leaving directory '/home/git-work/vlc2.1.0/test '

MAKE[2]: Entering directory '/home/git-work/vlc2.1.0 '

GEN CVLC

GEN RVLC

GEN QVLC

GEN SVLC

GEN NVLC

MAKE[2]: Leaving directory '/home/git-work/vlc2.1.0 '

MAKE[1]: Leaving directory '/home/git-work/vlc2.1.0 '

10, check the results of labor:

#ls./lib/.libs/-al

Under the. Libs in the Lib directory, the compiled library file is hidden:

Total 1316

Drwxr-xr-x 2 root root 4096 Jan 23 06:33.

Drwxr-xr-x 4 root root 4096 Jan 23 17:26..

-rw-r--r--1 root root 33080 Jan 06:24 audio.o

-rw-r--r--1 root root 19020 Jan 06:24 core.o

-rw-r--r--1 root root 8572 Jan 06:24 error.o

-rw-r--r--1 root root 19940 Jan 06:24 event_async.o

-rw-r--r--1 root root 33288 Jan 06:24 event.o

lrwxrwxrwx 1 root root 06:24 libvlc.la. /libvlc.la

-rw-r--r--1 root root 986 Jan 06:24 Libvlc.lai

lrwxrwxrwx 1 root root 06:24 libvlc.so-libvlc.so.5.3.0

lrwxrwxrwx 1 root root 06:24 libvlc.so.5-libvlc.so.5.3.0

-rwxr-xr-x 1 root root 376774 Jan 06:24 libvlc.so.5.3.0

-rwxr-xr-x 1 root root 376774 Jan 06:33 libvlc.so.5.3.0t

-rw-r--r--1 root root 7135 Jan 06:33 libvlc.ver

-rw-r--r--1 root root 15760 Jan 06:24 log.o

-rw-r--r--1 root root 43136 Jan 06:24 media_discoverer.o

-rw-r--r--1 root root 10080 Jan 06:24 media_library.o

-rw-r--r--1 root root 34012 Jan 06:24 media_list.o

-rw-r--r--1 root root 50928 Jan 06:24 media_list_player.o

-rw-r--r--1 root root 43788 Jan 06:24 media.o

-rw-r--r--1 root root 86344 Jan 06:24 media_player.o

-rw-r--r--1 root root 16084 Jan 06:24 playlist.o

-rw-r--r--1 root root 1488 Jan 06:24 revision.o

-rw-r--r--1 root root 69992 Jan 06:24 video.o

-rw-r--r--1 root root 52796 Jan 06:24 vlm.o

11. Installation

Install to the/MNT/SHARE/VLC directory

Running VLC

VLC is isn't supposed to be run as root. Sorry.

If you need to use real-time priorities and/or privileged TCP ports

You can use Vlc-wrapper (make sure it is set-uid root and

Cannot is run by non-trusted users first).

Can only recompile the installation, add--enable-run-as-root when configure

12. Commissioning

Run./VLC-VV Here you can see the print information at the terminal

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.