From https://sourceforge.net/p/heroines/patches/ download the latest combined patch file. This will usually be a .7z file attached to the latest patch, e.g. patch 53 has file Cinelerra7_patches_41-51_53.7z attached. Extract this file somewhere outside the Cinelerra source, it will create a direcory PatchCollection. In this directory in the script PatchAll.sh, modify the SOURCEDIR= line to point to your Cinelerra source directory.
Then run the script, it will patch the source and print the applied patches.
In a terminal, go to the Cinelerra source directory and run: ./configure 2>configureresult2.txt | tee configureresult1.txt
This should result in a configureresult1.txt file from about 2900 lines. Check the end for errors,
and any missed option/libs in the file, e.g. check for ".. no". You don't need any fortran compiler
even though some configure scripts (they are nested) test for it.
Note: not all sources are configured using a configure script, some are hard-configured.
Then in the source directory, run make 2>makeresult2.txt | tee makeresult1.txt
At the end, check if the build is OK by examining makeresult1.txt. If not, then likely
makeresult2.txt will have an "error:" near the end which should help locate the problem.
If the build is OK, there will be an executable "cinelerra" in the bin subdirectory.
Run make install
Check if Cinelerra starts. If this is the first time you run cinelerra on the system,
immediately modify in the preferences for playback and recording the audio driver from OSS to Alsa. And for recording if you want to test that, set the proper video device (usually below /dev/v4l).
Otherwise Cinelerra will crash.
Notes on tools:
I use "geany" for editing (very nice "search in files" function), "gede" as front end for the debugger (retrieve latest from http://acidron.com/gede/pmwiki.php?n=Main.HomePage), and "meld" to find difference between original source and modified one.
Don't forget to run ./configure if something on the system has changed.
If you want to clean before a build, in the cinelerra source directory run "make clean" twice.
Edit 20181130: fixed some typos
Last edit: Mat Nieuwenhoven 2018-11-30
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Notes on building Cinellera 7 from scratch on a Mint 18.3 system (base: Ubuntu 16.04, gcc 5.4.0), and Mint 17.3 (base: Ubuntu 14.04, gcc 4.8.4).
Install the following packages:
build-essential, docbook-to-man, docbook-utils, doxygen
freeglut3-dev, g++, libasound2-dev, libbz2-dev, libc6-dev
libdv4-dev, libfreetype6-dev, libilmbase-dev, liblzma-dev
libncurses5-dev, libogg-dev, libpng-dev, libpopt-dev
libsld1.2-dev, libv4l-dev, libxft-dev, libxv-dev
libz-dev, nasm, texinfo, yasm
You can do this in a terminal as:
sudo apt install build-essential docbook-to-man docbook-utils doxygen freeglut3-dev g++ libasound2-dev libbz2-dev libc6-dev libdv4-dev libfreetype6-dev libilmbase-dev liblzma-dev libncurses5-dev libogg-dev libpng-dev libpopt-dev libsdl1.2-dev libv4l-dev libxft-dev libxv-dev libz-dev nasm texinfo yasm
Then create a symlink:
sudo ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h
Download the Cinelerra 7 source from https://sourceforge.net/projects/heroines/files/latest/download.
Extract this file (cinelerra-7-src.tar.xz) to a directory of your choice. It will create a
subdirectory cinelerra-7 with subdirectories.
From https://sourceforge.net/p/heroines/patches/ download the latest combined patch file. This will usually be a .7z file attached to the latest patch, e.g. patch 53 has file Cinelerra7_patches_41-51_53.7z attached. Extract this file somewhere outside the Cinelerra source, it will create a direcory PatchCollection. In this directory in the script PatchAll.sh, modify the SOURCEDIR= line to point to your Cinelerra source directory.
Then run the script, it will patch the source and print the applied patches.
In a terminal, go to the Cinelerra source directory and run:
./configure 2>configureresult2.txt | tee configureresult1.txt
This should result in a configureresult1.txt file from about 2900 lines. Check the end for errors,
and any missed option/libs in the file, e.g. check for ".. no". You don't need any fortran compiler
even though some configure scripts (they are nested) test for it.
Note: not all sources are configured using a configure script, some are hard-configured.
Then in the source directory, run
make 2>makeresult2.txt | tee makeresult1.txt
At the end, check if the build is OK by examining makeresult1.txt. If not, then likely
makeresult2.txt will have an "error:" near the end which should help locate the problem.
If the build is OK, there will be an executable "cinelerra" in the bin subdirectory.
Run
make install
Check if Cinelerra starts. If this is the first time you run cinelerra on the system,
immediately modify in the preferences for playback and recording the audio driver from OSS to Alsa. And for recording if you want to test that, set the proper video device (usually below /dev/v4l).
Otherwise Cinelerra will crash.
Notes on tools:
I use "geany" for editing (very nice "search in files" function), "gede" as front end for the debugger (retrieve latest from http://acidron.com/gede/pmwiki.php?n=Main.HomePage), and "meld" to find difference between original source and modified one.
Don't forget to run ./configure if something on the system has changed.
If you want to clean before a build, in the cinelerra source directory run "make clean" twice.
Edit 20181130: fixed some typos
Last edit: Mat Nieuwenhoven 2018-11-30