All pastes #808099 Raw Edit

Something

public text v1 · immutable
·published 2007-12-07 07:50 UTC
rendered paste body
Before you start with the tutorial, you need to install all the packages that are needed (you need to have the extra repositories enabled for this, check out the Ubuntu wiki if you want to know how to do this, or check this thread: http://www.ubuntuforums.org/showthread.php?t=188264):

Code:
sudo apt-get install build-essential automake1.7 libtool xorg-dev libasound2-dev libogg-dev libvorbis-dev libtheora-dev libopenexr-dev libdv4-dev libpng3-dev libjpeg62-dev uuid-dev libmjpegtools-dev liba52-dev liblame-dev libsndfile1-dev libfaac-dev libfaad2-dev fftw3-dev libraw1394-dev libavc1394-dev libiec1394-dev libtiff4-dev subversion checkinstall yasm

I learned most of this from this thread: http://www.ubuntuforums.org/showthread.php?t=188264
Thanks to Iprofil for learning me the (Cinelerra) compiling basics
Cinelerra community version homepage: http://cvs.cinelerra.org
Offical Cinelerra homepage with explanation of what Cinelerra is: http://www.heroinewarrior.com/cinelerra.php3

1. Compiling and installing x264

First we need to compile x264, because the x264 packages in the Ubuntu repositories are not compiled correctly to be used for compiling Cinelerra (in 32-bit Ubuntu they are compiled correctly but in 64-bit Ubuntu they are not). The first thing we need to do is get the latest x264 revision:

Code:
svn co svn://svn.videolan.org/x264/trunk x264

Then cd into the folder (cd x264) and execute the configure file. However, you need to add the flag --enable-pic, this way x264 will compile in the right way so you can use it with the compilation of Cinelerra.

Code:
./configure --enable-pic

When this is ready, we will compile x264, just type 'make' when you are inside the x264 folder:

Code:
make

After this, install it with 'make install':

Code:
make install

Now you are done with installing x264, let's move on to the important part: compiling and installing Cinelerra!

2. Compiling and installing Cinelerra

Get the latest revision of Cinelerra:

Code:
svn checkout svn://svn.skolelinux.org/cinelerra/trunk/hvirtual

cd into the hvirtual folder that was created when downloading to latest revision and edit the autogen.sh file with gedit:

Code:
gedit autogen.sh


Find this:

# export AUTOMAKE=/usr/bin/automake-1.7
# export ACLOCAL=/usr/bin/aclocal-1.7

and remove the hashes (#) in front of both lines, and save the file.
Now we are going to compile Cinelerra. cd to the hvirtual directory and execute the following commands:

Code:
./autogen.sh
./configure
make
sudo make install

During make I had to install "nasm" to overcome this error :
Quote:
.libs/fdct_mmx.o: No such file or directory
> make[2]: *** [libmpeg2enc.la] Error 1
I followed this way of solving to overcome the error in make in the quote :
Quote:
For some reason there was a problem just on the AMD64 system. It is
> probably just a temporary problem with the state of cinelerra-cvs or with
> the way my system was configured. I got the following error:
> make[4]: Leaving directory `/home/dfort/cinelerra-cvs/cinelerra/hvirtual/po'
> : --update de.po cinelerra.pot
> rm -f de.gmo && : -c --statistics -o de.gmo de.po
> mv: cannot stat `t-de.gmo': No such file or directory
> make[3]: *** [de.gmo] Error 1
> make[3]: Leaving directory `/home/dfort/cinelerra-cvs/cinelerra/hvirtual/po'
> make[2]: *** [stamp-po] Error 2
> make[2]: Leaving directory `/home/dfort/cinelerra-cvs/cinelerra/hvirtual/po'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/dfort/test/cinelerra/hvirtual'
> make: *** [all] Error 2
>
> It isn't good to go on after a make error like this. What I did may have
> been a bad thing, but since I'm only going to use English it probably
> didn't do any harm:
> $touch po/de.gmo
> $touch po/es.gmo
> $touch po/sl.gmo
> $touch po/fr.gmo

code
touch po/de.gmo
touch po/es.gmo
touch po/sl.gmo
touch po/fr.gmo
touch po/it.gmo
touch po/pt_BR.gmo
touch po/eu.gmo

I have now cinelerra compiled on an AMD64 with OpenGL enabled.


The following errors occurred when starting cinelerra :

void MWindow::init_shm0: WARNING:/proc/sys/kernel/shmmax is 0x2000000, which is too low.
Before running Cinelerra do the following as root:
echo "0x7ffffff">/proc/sys/kernel/shmmax

This is what the cinelerra manual tells and was enough to solve the error message :

For a permanent change, add to the `/etc/sysctl.conf' file the following line:
kernel/shmmax=0x7fffffff
or if you prefer:
kernel.shmmax = 2147483647
For the first time, to avoid restarting your computer, use the following command as root:

code :
sysctl -p