<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>  Compiling &lt; Cinelerra &lt; TWiki</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/WebRss?skin=rss&contenttype=text/xml" />
<!-- <base href="Compiling" /> -->
<style type="text/css" media="all">
	/* Default TWiki layout */
	@import url('../../../pub/TWiki/PatternSkin/layout.css');
	/* Default TWiki style */
	@import url('../../../pub/TWiki/PatternSkin/style.css');
	/* Custom overriding layout per web or per topic */
	@import url('http://www.ftconsult.com/twiki/bin/view/Cinelerra/%USERLAYOUTURL%');
	/* Custom overriding style per web or per topic */
	@import url('http://www.ftconsult.com/twiki/bin/view/Cinelerra/%USERSTYLEURL%');
	.twikiToc li {
		list-style-image:url('../../../pub/TWiki/PatternSkin/i_arrow_down.gif');
	}	        
	.twikiWebIndicator {
		background-color:#D0D0D0;
	}
</style>
<style type="text/css" media="all"></style>
<script type="text/javascript">
<!-- HIDE
	function initPage() { }
-->
</script>
</head>
<body class="twikiViewPage" onload="initPage()"><a name="PageTop"></a>
<div class="twikiHidden"><a href="#Content">Skip to topic</a> | <a href="#PageBottom">Skip to bottom</a><hr /></div><div class="twikiTopBar"><div class="twikiTopBarContents"><form name="top" action="Compiling"> <div class="twikiLeft">
<a href="http://twiki.org/"><img src="../../../pub/TWiki/TWikiLogos/twikiRobot46x50.gif" border="0" alt="Home"/></a>
</div>
<div class="twikiRight twikiSearchBox">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><label for="go">Jump: </label><input type="text" id="go" name="topic" size="16" /></td>
</tr>
</table>
</div>
</form></div></div><div class="twikiMiddleContainer"><div class="twikiLeftBar"><div class="twikiWebIndicator"><b>Cinelerra</b></div>
<div class="twikiLeftBarContents"><form name="main" action="Compiling"> 
<ul>
<li> <b>Cinelerra Web</b>
</li>
<li> <a class="twikiLink" href="WebHome">Cinelerra Web Home</a>
</li>
<li> <a class="twikiLink" href="WebChanges">Changes</a> 
</li>
<li> <a class="twikiLink" href="WebIndex">Index</a>
</li>
<li> <a class="twikiLink" href="WebSearch">Search</a>
</li>
</ul>
<hr />
<ul>
<li> <strong>Webs</strong>
<ul>
<li> <a class="twikiLink" href="WebHome">Cinelerra</a>
</li>
<li> <a class="twikiLink" href="../Espanol/WebHome">Espanol</a>
</li>
<li> <a class="twikiLink" href="../Francais/WebHome">Francais</a>
</li>
<li> <a class="twikiLink" href="../Italiano/WebHome">Italiano</a>
</li>
<li> <a class="twikiLink" href="../Main/WebHome">Main</a>
</li>
<li> <a class="twikiLink" href="../Sandbox/WebHome">Sandbox</a>
</li>
<li> <a class="twikiLink" href="../Slovenian/WebHome">Slovenian</a>
</li>
<li> <a class="twikiLink" href="../TWiki/WebHome">TWiki</a>
</li>
</ul>
</li>
</ul>
<div class="twikiLeftBarPersonal">
<p />
<ul>
<li> <strong>My links</strong>
</li>
<li> <a class="twikiLink" href="../Main/AeliotBoswell">My home page</a>
</li>
<li> <a href="http://www.ftconsult.com/twiki/bin/search/Codev/?search=InterestedParties.*AeliotBoswell&regex=on" target="_top"><img src="../../../pub/TWiki/TWikiDocGraphics/stargold.gif" style="width:16px; height:16px; border:0px;" alt="Show me topics of interest" /></a>
</li>
</ul>
<div class="twikiSmall"><a href="http://www.ftconsult.com/twiki/bin/edit/Main/TWikiGuestLeftBar?t=20051021151007">edit</a></div>
<p />
</div>
</form></div></div><div class="twikiMain"><div class="twikiToolBar"><div>
<ul>
<li> <a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/Compiling?t=1129907407"><b>Edit</b></a>
</li>
<li> <a href="http://www.ftconsult.com/twiki/bin/attach/Cinelerra/Compiling">Attach</a>
</li>
<li> <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?skin=print.pattern">Printable</a>
</li>
</ul>
</div><div class="twikiRevInfo"><span class="twikiGrayText"><span class="twikiToolbarElem">Cinelerra.Compiling</span><span class="twikiToolbarElem">r1.6 - 02 Apr 2004 - 17:47 - <a class="twikiLink" href="../Main/AndrazTori">AndrazTori</a></span><span class="twikiToolbarElem"><a href="#TopicEnd">topic&nbsp;end</a></span></span></div></div>
<div class="twikiHidden"><hr /></div><a name="Content"> </a><div class="twikiHidden">Start of topic | <a href="#Actions">Skip to actions</a><hr /></div>
<div class="twikiTopic">
<h3><a name="Compiling_From_Scratch"> </a><a name="_Compiling_From_Scratch"> </a> <a class="twikiLink" href="Compiling">Compiling</a> From Scratch </h3>
<p />
<p />
(<em>From secrets of cinelerra</em>)
<p />
It should be noted, that this Info is meant for people compiling from original Heroine's version of the sources, not from <a class="twikiLink" href="CVS">CVS</a> or <a class="twikiLink" href="CVS">CVS</a> tarball.
<p />
It should be noted that the compiler used in building Cinelerra binaries is the free GNU compiler and very conservative optimization flags. You can try different compilers and optimization flags by compiling the source but this is hard.
<p />
The compilation is verified on a vanilla <a class="twikiLink" href="Redhat">Red Hat</a> 9.0 installation, workstation mode. 
<img src="../../../pub/TWiki/TWikiDocGraphics/warning.gif" border="0" alt="ALERT!" width="16" height="16" /> <a class="twikiLink" href="Redhat">Red Hat</a> 9.0 doesn't install <strong>nasm</strong>. This has to be installed manually for compilation to succeed. 
<p />
Compiling the source is hard and there's no warranty if the source code fails to compile, but the method for compiling starts by downloading the source code and decompressing.
<p />
     <code><b>tar jxf cinelerra*.tar.bz2</b></code>
<p />
<p />
Enter the hvirtual directory
<p />
     <strong>cd cinelerra</strong>
<p />
<p />
and set the CFLAGS environment variable. The flags for the GCC compiler are constantly changing. These are our most recent flags. For Pentium II use:
<p />
     <strong>export CFLAGS='-O3 -march=i686 -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2'</strong>
<p />
<p />
For Pentium I and old AMD's use:
<p />
     <strong>export CFLAGS='-O3 -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2'</strong>
<p />
<p />
For new AMD's use:
<p />
     <strong>export CFLAGS='-O3 -march=athlon -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2'</strong>
<p />
<p />
Then run
<p />
<p />
     <strong>make</strong>
<p />
<p />
The make procedure should run through all the directories and put binaries in the i686 directories. When we originally supported Alpha it was convenient to compile Alpha and i686 binaries simultaneously, in different directories, so all the binaries are put in subdirectories.
<p />
Once finished run
<p />
     <strong>make install</strong>
<p />
<p />
to install the binaries. The output is put in the following directories:
<p />
<ul>
<li> Executables -&gt; /usr/bin
</li>
<li> Plugins -&gt; /usr/lib/cinelerra
</li>
<li> Translations -&gt; /usr/share/locale/*/LC_MESSAGES/cinelerra.mo
</li>
</ul>
<p />
The main binaries are /usr/bin/cinelerra and several utilities for reading MPEG transport streams.
<p />
Run Cinelerra by running
<p />
     <strong>/usr/bin/cinelerra</strong>
<p />
<p />
-- <a class="twikiLink" href="../Main/AlexFerrer">AlexFerrer</a> - 17 Dec 2003 <strong><em>from <a class="twikiLink" href="SecretsOfCinelerra">SecretsOfCinelerra</a></em></strong>
<p />
-- <a class="twikiLink" href="../Main/KevinBrosius">KevinBrosius</a> - 02 Apr 2004 - removed reference to ./configure.  Oddly, it's on the heroinevirtual web site also, but it is not in the distributed tar file (1.1.9), and the doc file in the tar doesn't mention it either.
<hr />
<br class="twikiClear" />
<a name="TopicEnd"></a>
<span class="twikiRight twikiPageNav twikiGrayText"><a href="#PageTop">to&nbsp;top</a></span><br class="twikiClear" />
</div><div class="twikiHidden"><hr />End of topic<br /><a href="#Actions">Skip to action links</a> | <a href="#PageTop">Back&nbsp;to&nbsp;top</a><hr /></div>
<!---->
<!---->
<a name="Actions"> </a><span class="twikiHidden"><br /></span><div class="twikiTopicAction"><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/Compiling?t=1129907407"><b>Edit</b></a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/attach/Cinelerra/Compiling">Attach image or document</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?skin=print.pattern">Printable version</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?raw=on">Raw text</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/oops/Cinelerra/Compiling?template=oopsmore&param1=1.6&param2=1.6">More topic actions</a><br />Revisions:  | r1.6 | <a href="http://www.ftconsult.com/twiki/bin/rdiff/Cinelerra/Compiling?rev1=1.6&rev2=1.5">&gt;</a> | <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?rev=1.5">r1.5</a> | <a href="http://www.ftconsult.com/twiki/bin/rdiff/Cinelerra/Compiling?rev1=1.5&rev2=1.4">&gt;</a> | <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?rev=1.4">r1.4</a> <span class="twikiSeparator">|</span> <a href="../../rdiff/Cinelerra/Compiling">Total page history</a> <span class="twikiSeparator">|</span> <a href="http://www.ftconsult.com/twiki/bin/search/Cinelerra/SearchResult?scope=text&regex=on&excludetopic=Compiling&search=Compiling%5B%5EA-Za-z0-9%5D">Backlinks</a></div>
<div class="twikiTopicInfo twikiRevInfo twikiGrayText twikiMoved"></div>
<div class="twikiTopicFooter"><span class="twikiLeft"><span class="twikiHomePath">You are here: <a class="twikiLink" href="WebHome">Cinelerra</a>  <span class='twikiSeparator'>&gt;</span> <a class="twikiLink" href="CinelerraManualTOC">CinelerraManualTOC</a> &gt; <a class="twikiLink" href="InstallingCinelerra">InstallingCinelerra</a> <span class='twikiSeparator'>&gt;</span> Compiling </span></span><span class="twikiHidden"><br /><br /></span><span class="twikiRight twikiPageNav twikiGrayText"><a href="#PageTop">to&nbsp;top</a></span><br class="twikiClear" /><span class="twikiHidden"><br /></span></div>
<a name="PageBottom"></a> </div></div><div class="twikiBottomBar"><div class="twikiBottomBarContents"><span class="twikiGrayText">Copyright &copy; 1999-2005 by the contributing authors. 
All material on this collaboration platform is the property of the contributing authors. <br /> 
Ideas, requests, problems regarding TWiki? <a href="mailto:alex@ftconsult.com?subject=TWiki&#32;Feedback&#32;on&#32;TWiki.WebBottomBar">Send feedback</a>
</span></div></div>
</body></html>