uncategorized

Installing x264 (via git) in OpenSolaris

Clone, configure and make

1
2
3
4
5
6
7
8
9
10
cd /src
git clone git://git.videolan.org/x264.git
cd x264
CFLAGS=$( find -L /my -type d -name include -exec echo "-I{} " \; | grep -v "[.][0-9]" | tr -d '\n' ) \
CPPFLAGS=$( find -L /my -type d -name include -exec echo "-I{} " \; | grep -v "[.][0-9]" | tr -d '\n' ) \
LDFLAGS=$( find -L /my -type d -name lib -exec echo "-L{} -R{} " \; | grep -v "[.][0-9]" | tr -d '\n' ) \
./configure --prefix=/my/x264-2010.04.23 \
--disable-asm \
--extra-ldflags="-L/my/pth/lib -R/my/pth/lib" >>mylog.txt \
&& gmake all >>mylog.txt && su

gmake install kinda doesn’t copy… so we manually install:

1
2
3
4
5
6
7
mkdir -p /my/x264-2010.04.23/include
mkdir -p /my/x264-2010.04.23/lib/pkgconfig
mkdir -p /my/x264-2010.04.23/bin
cp x264.h /my/x264-2010.04.23/include/
cp libx264.a /my/x264-2010.04.23/lib/
cp x264.pc /my/x264-2010.04.23/lib/pkgconfig/
cp x264 /my/x264-2010.04.23/bin/

gmake install should now run with no errors:

1
2
3
4
5
6
7
gmake install >>mylog.txt
ln -s /my/x264-2010.04.23 /my/x264
ln -s /my/x264/lib/* /usr/lib/
ln -s /my/x264/lib/pkgconfig/* /usr/lib/pkgconfig/
ln -s /my/x264/include/* /usr/include/
exit
echo "export PATH=/my/x264/bin:\$PATH" >> ~/.profile
Share