Difference between revisions of "X264"

From CBLFS
Jump to navigationJump to search
(Configuration options)
 
(9 intermediate revisions by 3 users not shown)
Line 7: Line 7:
 
----
 
----
  
{{Blank-Package-Introduction}}
+
{{Package-Introduction|x264 is a free library for encoding H264/AVC video streams.|http://www.videolan.org/developers/x264.html}}
  
 
== Dependencies ==
 
== Dependencies ==
  
 
=== Optional ===
 
=== Optional ===
 +
* [[GIT]]
 
* [[Subversion]]
 
* [[Subversion]]
 
* [[NASM]] (X86 only)
 
* [[NASM]] (X86 only)
Line 22: Line 23:
 
{|style="text-align: left;"
 
{|style="text-align: left;"
 
|-
 
|-
|<i>--enable-mp4-output</i>  enables mp4 output.
+
|<i>--disable-mp4-output</i>  disables mp4 output (use this you do not want/have Gpac installed).
|-
 
|<i>--enable-gtk</i> build GTK+ interface.
 
 
|-
 
|-
 
|<i>--enable-visualize</i>  enables visualization (X11 only).
 
|<i>--enable-visualize</i>  enables visualization (X11 only).
Line 30: Line 29:
  
 
== Non-Multilib ==
 
== Non-Multilib ==
 +
 +
If you have a [[X Window System]] installed and intend to pass --enable-visualize then run the following command:
 +
 +
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure
  
 
Compile the package:
 
Compile the package:
  
  ./configure --prefix=/usr --enable-shared &&
+
  ./configure --prefix=/usr --enable-shared --enable-pic \
 +
    --extra-cflags="-I${XORG_PREFIX-/usr}/include" &&
 
  make
 
  make
  
Line 43: Line 47:
  
 
=== 32Bit ===
 
=== 32Bit ===
 +
 +
If you have a [[X Window System]] installed and intend to pass --enable-visualize then run the following command:
 +
 +
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure
  
 
Compile the package:
 
Compile the package:
  
sed -i "/^MACHINE=/s/=.*/=${CLFS_TARGET32}/" configure &&
+
  CC="gcc ${BUILD32}" ./configure --host=$CLFS_TARGET32 \
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --enable-shared &&
+
    --prefix=/usr --enable-shared --enable-pic \
  make
+
    --extra-cflags="-I${XORG_PREFIX-/usr}/include" &&
 +
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" make
  
 
Install the package
 
Install the package
Line 55: Line 64:
  
 
=== N32 ===
 
=== N32 ===
 +
 +
If you have a [[X Window System]] installed and intend to pass --enable-visualize then run the following command:
 +
 +
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure
  
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
+
sed -i "s@/lib@&32@g" configure &&
     --enable-shared &&
+
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
  make
+
    --libdir=/usr/lib32 \
 +
     --enable-shared --enable-pic \
 +
    --extra-cflags="-I${XORG_PREFIX-/usr}/include" &&
 +
  PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" make
  
 
Install the package
 
Install the package
Line 67: Line 83:
  
 
=== 64Bit ===
 
=== 64Bit ===
 +
 +
If you have a [[X Window System]] installed and intend to pass --enable-visualize then run the following command:
 +
 +
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure
  
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
+
sed -i "s@/lib@&64@g" configure &&
     --enable-shared &&
+
  CC="gcc ${BUILD64}" ./configure --prefix=/usr\
  make
+
    --libdir=/usr/lib64 \
 +
     --enable-shared --enable-pic \
 +
    --extra-cflags="-I${XORG_PREFIX-/usr}/include" &&
 +
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" make
  
 
Install the package
 
Install the package
Line 91: Line 114:
 
| None
 
| None
 
|}
 
|}
 +
 +
[[Category:Media Libraries]]

Latest revision as of 14:42, 13 May 2010

Download Source: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20100513-2245.tar.bz2

Introduction to X264

x264 is a free library for encoding H264/AVC video streams.

Project Homepage: http://www.videolan.org/developers/x264.html

Dependencies

Optional

Configuration Information

--disable-mp4-output disables mp4 output (use this you do not want/have Gpac installed).
--enable-visualize enables visualization (X11 only).

Non-Multilib

If you have a X Window System installed and intend to pass --enable-visualize then run the following command:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure

Compile the package:

./configure --prefix=/usr --enable-shared --enable-pic \
    --extra-cflags="-I${XORG_PREFIX-/usr}/include" &&
make

Install the package

make install

Multilib

32Bit

If you have a X Window System installed and intend to pass --enable-visualize then run the following command:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure

Compile the package:

CC="gcc ${BUILD32}" ./configure --host=$CLFS_TARGET32 \
    --prefix=/usr --enable-shared --enable-pic \
    --extra-cflags="-I${XORG_PREFIX-/usr}/include" &&
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" make

Install the package

make install

N32

If you have a X Window System installed and intend to pass --enable-visualize then run the following command:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure

Compile the package:

sed -i "s@/lib@&32@g" configure &&
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 \
    --enable-shared --enable-pic \
    --extra-cflags="-I${XORG_PREFIX-/usr}/include" &&
PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" make

Install the package

make install

64Bit

If you have a X Window System installed and intend to pass --enable-visualize then run the following command:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure

Compile the package:

sed -i "s@/lib@&64@g" configure &&
CC="gcc ${BUILD64}" ./configure --prefix=/usr\
    --libdir=/usr/lib64 \
    --enable-shared --enable-pic \
    --extra-cflags="-I${XORG_PREFIX-/usr}/include" &&
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" make

Install the package

make install

Contents

Installed Programs: None
Installed Libraries: libx264.{a,so}
Installed Directory: None
Retrieved from "?title=X264&oldid=20170"