トップ «前の日記(2013年07月29日) 最新 次の日記(2013年08月08日)» 編集

Masa's blog

検索キーワード:

2013年07月30日 Building openshot on Slackware-14.0 [長年日記]

_ Building openshot on Slackware-14.0

pre-require

Python-3.3.2.tar.bz2

$ tar xvvf Python-3.3.2.tar.bz2
$ cd Python-3.3.2
$ export LC_ALL=ja_JP.UTF-8; export LANG=ja_JP.UTF-8
$ ./configure && make
# make install && ldconfig

ladspa_sdk.tgz

$ tar xvvf ladspa_sdk.tgz
$ cd ladspa_sdk
# cp src/ladspa.h /usr/local/include/

frei0r-plugins-1.4.tar.gz

$ tar xvvf frei0r-plugins-1.4.tar.gz
$ cd frei0r-plugins-1.4
$ ./configure && make
# make install && ldconfig

goocanvas-1.0.0.tar.bz2

$ tar xvvf goocanvas-1.0.0.tar.bz2
$ cd goocanvas-1.0.0
$ ./configure && make
# make install && ldconfig

goocanvas-2.0.1.tar.bz2

$ tar xvvf goocanvas-2.0.1.tar.bz2
$ cd goocanvas-2.0.1
$ ./configure --enable-python=yes && make
# make install && ldconfig

pygoocanvas-0.14.1.tar.bz2

$ tar xvvf pygoocanvas-0.14.1.tar.bz2
$ cd pygoocanvas-0.14.1
$ ./configure && make
# make install && ldconfig

pyxdg-0.25.tar.gz

$ tar xvvf pyxdg-0.25.tar.gz
$ cd pyxdg-0.25
# python setup.py install

mlt-0.9.0.tar.gz

$ tar xvvf mlt-0.9.0.tar.gz
$ cd mlt-0.9.0
$ ./configure --enable-gpl  --enable-gpl3 --swig-languages="java perl php python ruby tcl"
$ make
# make install
# cd src/swig/python
# PYTHONSITEPKG=$(python -c "import sys, os; print os.path.join('/usr/lib${LIBDIRSUFFIX}', 'python%s' % sys.version[:3], 'site-packages')")
# install -m755 mlt.py $PYTHONSITEPKG/
# install -m755 _mlt.so $PYTHONSITEPKG/
# install -m755 mlt_wrap.o $PYTHONSITEPKG/
echo "/usr/local/lib/mlt" >>/etc/ld.so.conf && ldconfig

Install blender-2.68.tar.gz

oiio-Release-1.2.0.zip

$ unzip -x oiio-Release-1.2.0.zip
$ cd oiio-Release-1.2.0

$ cat ../oiio-Release-1.2.0.diff

*** ./src/libOpenImageIO/fmath_test.cpp.ORG	2013-07-30 18:57:09.981238833 +0900
--- ./src/libOpenImageIO/fmath_test.cpp	2013-07-30 18:57:41.813284520 +0900
***************
*** 72,79 ****
      OIIO_CHECK_EQUAL ((bit_range_convert<2,20>(3)), 1048575);
      OIIO_CHECK_EQUAL ((bit_range_convert<20,2>(1048575)), 3);
      OIIO_CHECK_EQUAL ((bit_range_convert<20,21>(1048575)), 2097151);
!     OIIO_CHECK_EQUAL ((bit_range_convert<32,32>(4294967295)), 4294967295);
!     OIIO_CHECK_EQUAL ((bit_range_convert<32,16>(4294967295)), 65535);
  // These are not expected to work, since bit_range_convert only takes a
  // regular 'unsigned int' as parameter.  If we need >32 bit conversion,
  // we need to add a uint64_t version of bit_range_convert.
--- 72,79 ----
      OIIO_CHECK_EQUAL ((bit_range_convert<2,20>(3)), 1048575);
      OIIO_CHECK_EQUAL ((bit_range_convert<20,2>(1048575)), 3);
      OIIO_CHECK_EQUAL ((bit_range_convert<20,21>(1048575)), 2097151);
!     OIIO_CHECK_EQUAL ((bit_range_convert<32,32>(4294967295U)), 4294967295U);
!     OIIO_CHECK_EQUAL ((bit_range_convert<32,16>(4294967295U)), 65535);
  // These are not expected to work, since bit_range_convert only takes a
  // regular 'unsigned int' as parameter.  If we need >32 bit conversion,
  // we need to add a uint64_t version of bit_range_convert.

$ patch -p0 <oiio-Release-1.2.0.diff

$ CFLAGS="-march=i586 -Werror" CXXFLAGS="-march=i586 -Werror" make

# mkdir /usr/local/openimageio
# cd dist/linux
# tar cf - . | (cd /usr/local/openimageio && tar xvpif -)
# chown -R root.root /usr/local/openimageio
# echo /usr/local/openimageio/lib >>/etc/ld.so.conf && ldconfig

add PATH setting in ~/.profile

PATH=${PATH}:/usr/local/openimageio/bin

blender-2.68.tar.gz

$ tar xvvf blender-2.68.tar.gz
$ cd blender-2.68
$ OPENIMAGEIO_ROOT_DIR=/usr/local/openimageio make

# cd ../build_linux/bin
# mkdir /usr/local/blender-2.68
# tar cf - . | (cd /usr/local/blender-2.68 && tar xvpif -)
# chown -R root.root /usr/local/blender-2.68

# cd /usr/local/bin
# ln -s /usr/local/blender-2.68/blender .

Install openshot-1.4.3.tar.gz

$ tar xvvf openshot-1.4.3.tar.gz
$ cd openshot-1.4.3
# python setup.py install