Start Instalation part, new font type for listings
[goodguy/cin-manual-latex.git] / parts / Instalation.tex
1 \chapter{Installation}
2 \label{cha:Instalation}
3 \section{How to Build Cinelerra-GG from Developer's Git Repository}%
4 \label{sec:How_to_build}
5
6 These are generic build instructions for building Cinelerra-GG Infinity.  
7 Known to work on ubuntu, mint, suse/leap, fedora, debian, centos, arch, and slackware.  
8 It has not been tested on every single possible distro yet so you might expect to have to make some minor changes.  
9 Patches have been created to build on FreeBSD through the work of another programmer and a Gentoo version is being maintained elsewhere by another programmer.
10
11 Alternatively, there are some pre-built dynamic or static binaries which are updated on a fairly regular basis (as long as code changes have been made) available at the link below.
12
13
14 \url{
15 https://cinelerra-gg.org/download/
16 }
17
18 There are 2 kinds of builds, the default system-build and a single-user build.  
19 A system build has results which are installed to the system. 
20 The majority of the files are installed in the standard system paths, but some customization is possible. 
21 The single user build allows for running completely out of a local user directory so it doesn't affect the system.
22
23 We recommend the single-user version when possible.  
24 It makes it very easy to install a new version without having to delete the older version in case you want it for backup – once you are happy with the new version, all you have to do is delete the entire old directory path.  
25 Also, if you install a new Operating System version and if you have Cinelerra on separate disk space that is preserved, you won't have to reinstall Cinelerra.  
26 In addition for purposes of having the ability to interrupt or to see any possible error messages, if you start the application from a terminal window command line you will have more control to catch problems.  
27 However, the system builds can be useful in a university lab setting where there are possibly multiple users, or multiple versions.
28
29 There are two notable differences between “standard” views of Cinelerra and this implementation for the system builds.  
30 Both of these can be configured during installation.  
31 These differences make it possible to have several different versions installed without having them “walk” on each other. 
32
33
34
35
36
37
38
39
40
41 %=====
42
43 \begin{enumerate}
44     \item 
45         application name can be set during installation and defaults to: “\texttt{cin}”
46     \item 
47         the home configuration directory can also be set and defaults to:\\ “\texttt{\$HOME/.bcast5}”
48 \end{enumerate}
49
50 \paragraph{To do a system build,} you should read the \texttt{README} that is at the top level after you get the source.
51
52 \begin{enumerate}
53     \item 
54         You need at least 2.5GB of disk storage to operate a build + you need to have “\texttt{git}” installed.
55     \item  Obviously in order to install into the system, you must run as root.
56     \item  The "\texttt{git}" step has to download many files (approx 100MB) so allow time.
57     \item  Run the following commands (this takes awhile):
58
59         \begin{lstlisting}[language=bash]
60 cd /<build_path>/ # this is where you need the 2.5GB of disk space
61 git clone --depth 1 "git.cinelerra-gg.org/goodguy/cinelerra.git" cinelerra5
62 cd cinelerra5/cinelerra-5.1 # toplevel directory
63         \end{lstlisting}
64         NOTE: if your system has never had Cinelerra-GG Infinity installed, you will have to make sure you
65         have all of the compilers and libraries necessary. So on the very first build you should run:
66
67         \begin{lstlisting}[language=bash]
68 ./blds/bld_prepare.sh <os> # where <os> represents the Operating System of centos, fedora, suse, leap, ubuntu, debian.
69 ./autogen.sh
70 ./configure --prefix=/usr
71 # optional parameters can be added here
72 make 2>&1 | tee log
73 # make and log the build
74 \end{lstlisting}
75 \item  Check for obvious build errors:
76     \begin{lstlisting}[language=bash]
77 grep "\*\*\*.*error" -ai log
78     \end{lstlisting}
79     If this reports errors and you need assistance or you think improvements can be made to the build s,
80     email the log which is listed below to cin@lists.cinelerra-gg.org:
81     \begin{lstlisting}[language=bash]
82 /<build_path>/cinelerra5/cinelerra-5.1/log
83     \end{lstlisting}
84 \item  If there are no build errors, finally just run:
85     \begin{lstlisting}[language=bash]
86     make install
87     \end{lstlisting}
88 \item  If it all worked, you are all setup. Just click on the “blue lady” cinelerra desktop icon.
89 \end{enumerate}
90
91 \paragraph{To do a single-user build,} read the \texttt{README} that is at the top level after you get the source.
92 \begin{enumerate}
93     \item  You need at least 2.5GB of disk storage to operate a build. Need to have “\texttt{git}” installed.
94     \item  Recommend you build and run as root, just to avoid permission issues initially.
95     \item  The "\texttt{git}" step has to download a bunch of stuff (approx 100MB) so allow time.
96     \item  Run the following commands (this takes awhile):
97         \begin{lstlisting}[language=bash]
98 cd /<build_path>/
99 # this is where you need the 2.5GB of disk space
100 git clone --depth 1 "git://git.cinelerra-gg.org/goodguy/cinelerra.git" cinelerra5
101 cd cinelerra5/cinelerra-5.1
102         \end{lstlisting}
103 \end{enumerate}
104 NOTE: if your system has never had Cinelerra-GG Infinity installed, you will have to make sure all
105 the compilers and libraries necessary are installed. So on the very first build you should run as root:
106 \begin{lstlisting}[language=bash]
107 ./blds/bld_prepare.sh <os> # where <os> represents the Operating System of
108 centos, fedora, suse, leap, ubuntu, debian.
109 ./autogen.sh
110 ./configure --with-single-user
111 # the “with-single-user” parameter makes it so
112 make 2>&1 | tee log
113 # make and log build (check for errors before proceeding)
114 make install
115 \end{lstlisting}
116
117 Then just start the application by keying in: ./cin in the bin subdirectory OR add a desktop icon by
118 using the appropriate directory to copy the files to, run as root, and edit to correct the directory path.
119
120 \begin{lstlisting}[language=bash]
121 cd /cinelerra_directory_path
122 cp -a image/cin.{svg,xpm} /usr/share/pixmaps/.
123 cp -a image/cin.desktop /usr/share/applications/cin.desktop
124 change the “Exec=cin” line to be “Exec=<your_directory_path>/bin/cin”
125 \end{lstlisting}
126
127 The preceding directions for doing a single-user build has been meticulously followed to build and run
128 on a newly installed ubuntu 15 system WITHOUT BEING ROOT except for the \texttt{bld\_prepare.sh} and creating the desktop icon.