Patrick F.-Productions
Patrick F.-Productions
OpenStopMotion
 Installation instructions: CentOS / RedHat / Fedora
Inhaltsverzeichnis:

Use precompiled packages


You can find precompiled packages for CentOS 6 on sourceforge: https://sourceforge.net/projects/openstopmotion/files/CentOS6/

The File "*.i386.rpm" is for 32-Bit systems, the File "*.x86_64.rpm" is for 64-Bit systems.
To install the package, simply download the file and install it with yum, eg:
su root
   yum install OpenStopMotion-0.6.3-1.el6.x86_64.rpm

The Package was compiled on CentOS 6, so it should work on all compatible systems (eg. RedHat and Fedora). If it does not run, download the source rpm and build your own binary package (see below).


Install from source rpm


To create a binary rpm, simply download the source rpm and compile it with rpmbuild. This requires that the package "rpm-devel" is installed:
su root
yum install rpm-devel

# create build environment:
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
# download OpenStopMotion source rpm:
wget http://sourceforge.net/projects/openstopmotion/files/OpenStopMotion-0.6.3-1.src.rpm/download
# build the package:
rpmbuild --rebuild OpenStopMotion-0.6.3-1.src.rpm

After that, you will find the binary package here:
cd ~/rpmbuild/RPMS/`uname -m`/

You can install this package with yum:
su root
yum install ~/rpmbuild/RPMS/`uname -m`/OpenStopMotion-0.6.3-1.`uname -m`.rpm


Install from source distribution


preparations


Install the following packages:
su root
   yum install pcre-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel bzip2-devel \
      zlib-devel qt-devel nasm rpm-devel

Untar the source distribution:
tar -xjf OpenStopMotion-0.6.3-src.tar.bz2

Now you have two choices:
  1. automatically create a binary rpm for your distribution by using a script
  2. compile the sources manually

automatically create a binary rpm


There is a script in the root directory of the source package, which is called "build_package.sh". If you are lucky, this will create a binary rpm for your system automatically:
cd OpenStopMotion-0.6.3
   sh build_package.sh

If all goes well, you will find a binary package in the subdirectory "distfiles"

ls -la distfiles/
drwxrwxr-x 2 patrick patrick   4096 Apr 13 19:19 .
drwxr-xr-x 9 patrick patrick   4096 Apr 13 19:19 ..
-rw-rw-r-- 1 patrick patrick 893238 Apr 13 19:19 OpenStopMotion-0.6.3-1.x86_64.rpm

You can install this package by using a package manager or yum:

yum install distfiles/OpenStopMotion-0.6.3-1.x86_64.rpm

Now you can start OpenStopMotion:
/usr/bin/OpenStopMotion

You will also find an icon in your desktop menu, usually in the section "Multimedia"

compile sources manually


Build the ppl7-library:
cd OpenStopMotion-0.6.3
   mkdir -p bin include lib
   WORK=`pwd`
   cd ppl7
   ./configure --with-pcre=/usr --with-jpeg --with-png --with-libtiff=/usr \
               --with-nasm --prefix=$WORK
   make install
   cd ..

Build OpenStopMotion
PATH="$WORK/bin:$PATH"
   export PATH
   cd osm
   qmake-qt4
   make

After that, you can find the compiled binary in the release subdirectory, which is all you need. You could copy it to /usr/bin.