<!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>(r1.1 vs. r1.6) Compiling &lt; Cinelerra &lt; TWiki</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="robots" content="noindex" />
<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="../../view/Cinelerra/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="twikiNoViewPage twikiDiffPage"><a name="PageTop"></a>
<div class="twikiMiddleContainer"><div class="twikiMain"><div class="twikiSearchResults"><div class="twikiSearchResultsHeader">&nbsp;<tt><b>&lt;&lt;O&gt;&gt;</b></tt>&nbsp; Difference Topic
		<b><a href="../../view/Cinelerra/Compiling">Compiling</a></b>
		(<a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?rev=r1.6">r1.6</a> - 02&nbsp;Apr&nbsp;2004 - <a class="twikiLink" href="../../view/Main/AndrazTori">AndrazTori</a>)</div>
<table class="twikiDiffTable" width="100%" cellspacing="0">
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<table border="1" cellspacing="1" cellpadding="0">
<tr><th class="twikiFirstCol" bgcolor="#99CCCC"> <strong>META TOPICPARENT</strong> </th><td colspan="2" bgcolor="#FFFFCC"> <a class="twikiLink" href="../../view/Cinelerra/InstallingCinelerra">InstallingCinelerra</a> </td></tr>
</table>
<h3><a name="Compiling_From_Scratch"> </a><a name="_Compiling_From_Scratch"> </a> <a class="twikiLink" href="../../view/Cinelerra/Compiling">Compiling</a> From Scratch </h3>
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffAddedHeader" colspan ="9"><b> Added:   </b>
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">

</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
(<em>From secrets of cinelerra</em>)
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffAddedHeader" colspan ="9"><b> Added:   </b>
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
<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="../../view/Cinelerra/CVS">CVS</a> or <a class="twikiLink" href="../../view/Cinelerra/CVS">CVS</a> tarball.
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
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="../../view/Cinelerra/Redhat">Red Hat</a> 9.0 installation, workstation mode. 
</td></tr>

</table></div><div class="twikiSearchResults"><div class="twikiSearchResultsHeader">&nbsp;<tt><b>&lt;&lt;O&gt;&gt;</b></tt>&nbsp; Difference Topic
		<b><a href="../../view/Cinelerra/Compiling">Compiling</a></b>
		(<a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?rev=r1.5">r1.5</a> - 02&nbsp;Apr&nbsp;2004 - <a class="twikiLink" href="../../view/Main/KevinBrosius">KevinBrosius</a>)</div>
<table class="twikiDiffTable" width="100%" cellspacing="0">
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<table border="1" cellspacing="1" cellpadding="0">
<tr><th class="twikiFirstCol" bgcolor="#99CCCC"> <strong>META TOPICPARENT</strong> </th><td colspan="2" bgcolor="#FFFFCC"> <a class="twikiLink" href="../../view/Cinelerra/InstallingCinelerra">InstallingCinelerra</a> </td></tr>
</table>
<h3><a name="Compiling_From_Scratch"> </a><a name="_Compiling_From_Scratch"> </a> <a class="twikiLink" href="../../view/Cinelerra/Compiling">Compiling</a> From Scratch </h3>
</td></tr>
<tr bgcolor="#eeeeee" class="twikiDiffLineNumberHeader"><th align="left" colspan="9">Line: 35 to 35</th></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
Then run
</td></tr>
<tr><td bgcolor="#FFD7D7" class="twikiDiffDeletedHeader" colspan ="9"><b> Deleted: </b>
</td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
     <strong>./configure</strong>
<p />
<p />
This checks the build environment for the right tools and should give you an error if a tool is missing. Once that succeeds run
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
     <strong>make</strong>
<p />
</td></tr>
<tr bgcolor="#eeeeee" class="twikiDiffLineNumberHeader"><th align="left" colspan="9">Line: 64 to 60</th></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
<p />
-- <a class="twikiLink" href="../../view/Main/AlexFerrer">AlexFerrer</a> - 17 Dec 2003 <strong><em>from <a class="twikiLink" href="../../view/Cinelerra/SecretsOfCinelerra">SecretsOfCinelerra</a></em></strong>
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffAddedHeader" colspan ="9"><b> Added:   </b>
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
<p />
-- <a class="twikiLink" href="../../view/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.
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<hr />
</td></tr>

</table></div><div class="twikiSearchResults"><div class="twikiSearchResultsHeader">&nbsp;<tt><b>&lt;&lt;O&gt;&gt;</b></tt>&nbsp; Difference Topic
		<b><a href="../../view/Cinelerra/Compiling">Compiling</a></b>
		(<a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?rev=r1.4">r1.4</a> - 16&nbsp;Jan&nbsp;2004 - <a class="twikiLink" href="../../view/Main/AlexFerrer">AlexFerrer</a>)</div>
<table class="twikiDiffTable" width="100%" cellspacing="0">
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<table border="1" cellspacing="1" cellpadding="0">
<tr><th class="twikiFirstCol" bgcolor="#99CCCC"> <strong>META TOPICPARENT</strong> </th><td colspan="2" bgcolor="#FFFFCC"> <a class="twikiLink" href="../../view/Cinelerra/InstallingCinelerra">InstallingCinelerra</a> </td></tr>
</table>
<h3><a name="Compiling_From_Scratch"> </a><a name="_Compiling_From_Scratch"> </a> <a class="twikiLink" href="../../view/Cinelerra/Compiling">Compiling</a> From Scratch </h3>
</td></tr>
<tr bgcolor="#eeeeee" class="twikiDiffLineNumberHeader"><th align="left" colspan="9">Line: 63 to 63</th></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
     <strong>/usr/bin/cinelerra</strong>
<p />
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
-- <a class="twikiLink" href="../../view/Main/AlexFerrer">AlexFerrer</a> - 17 Dec 2003
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
-- <a class="twikiLink" href="../../view/Main/AlexFerrer">AlexFerrer</a> - 17 Dec 2003 <strong><em>from <a class="twikiLink" href="../../view/Cinelerra/SecretsOfCinelerra">SecretsOfCinelerra</a></em></strong>
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<hr />
</td></tr>

</table></div><div class="twikiSearchResults"><div class="twikiSearchResultsHeader">&nbsp;<tt><b>&lt;&lt;O&gt;&gt;</b></tt>&nbsp; Difference Topic
		<b><a href="../../view/Cinelerra/Compiling">Compiling</a></b>
		(<a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?rev=r1.3">r1.3</a> - 10&nbsp;Jan&nbsp;2004 - <a class="twikiLink" href="../../view/Main/AlexFerrer">AlexFerrer</a>)</div>
<table class="twikiDiffTable" width="100%" cellspacing="0">
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<table border="1" cellspacing="1" cellpadding="0">
<tr><th class="twikiFirstCol" bgcolor="#99CCCC"> <strong>META TOPICPARENT</strong> </th><td colspan="2" bgcolor="#FFFFCC"> <a class="twikiLink" href="../../view/Cinelerra/InstallingCinelerra">InstallingCinelerra</a> </td></tr>
</table>
<h3><a name="Compiling_From_Scratch"> </a><a name="_Compiling_From_Scratch"> </a> <a class="twikiLink" href="../../view/Cinelerra/Compiling">Compiling</a> From Scratch </h3>
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
(From secrets of cinelerra)
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
(<em>From secrets of cinelerra</em>)
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
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.
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
The compilation is verified on a vanilla <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">RedHat</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/RedHat?topicparent=Cinelerra.Compiling"><sup>?</sup></a></span> 9.0 installation, workstation mode. <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">RedHat</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/RedHat?topicparent=Cinelerra.Compiling"><sup>?</sup></a></span> 9.0 doesn't install nasm. This has to be installed manually for compilation to succeed. 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.
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
The compilation is verified on a vanilla <a class="twikiLink" href="../../view/Cinelerra/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="../../view/Cinelerra/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.
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
     <code><b>tar jxf cinelerra*.tar.bz2</b></code>
<p />
</td></tr>

</table></div><div class="twikiSearchResults"><div class="twikiSearchResultsHeader">&nbsp;<tt><b>&lt;&lt;O&gt;&gt;</b></tt>&nbsp; Difference Topic
		<b><a href="../../view/Cinelerra/Compiling">Compiling</a></b>
		(<a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?rev=r1.2">r1.2</a> - 18&nbsp;Dec&nbsp;2003 - <a class="twikiLink" href="../../view/Main/AlexFerrer">AlexFerrer</a>)</div>
<table class="twikiDiffTable" width="100%" cellspacing="0">
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<table border="1" cellspacing="1" cellpadding="0">
<tr><th class="twikiFirstCol" bgcolor="#99CCCC"> <strong>META TOPICPARENT</strong> </th><td colspan="2" bgcolor="#FFFFCC"> <a class="twikiLink" href="../../view/Cinelerra/InstallingCinelerra">InstallingCinelerra</a> </td></tr>
</table>
<h3><a name="Compiling_From_Scratch"> </a><a name="_Compiling_From_Scratch"> </a> <a class="twikiLink" href="../../view/Cinelerra/Compiling">Compiling</a> From Scratch </h3>
</td></tr>
<tr bgcolor="#eeeeee" class="twikiDiffLineNumberHeader"><th align="left" colspan="9">Line: 7 to 7</th></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
The compilation is verified on a vanilla <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">RedHat</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/RedHat?topicparent=Cinelerra.Compiling"><sup>?</sup></a></span> 9.0 installation, workstation mode. <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">RedHat</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/RedHat?topicparent=Cinelerra.Compiling"><sup>?</sup></a></span> 9.0 doesn't install nasm. This has to be installed manually for compilation to succeed. 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.
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
     tar jxf cinelerra*.tar.bz2
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
     <code><b>tar jxf cinelerra*.tar.bz2</b></code>
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
<p />
Enter the hvirtual directory
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
     cd cinelerra
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
     <strong>cd cinelerra</strong>
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<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:
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
     export CFLAGS='-O3 -march=i686 -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2'
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
     <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>
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
<p />
For Pentium I and old AMD's use:
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
     export CFLAGS='-O3 -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2'
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
     <strong>export CFLAGS='-O3 -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2'</strong>
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
<p />
For new AMD's use:
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
     export CFLAGS='-O3 -march=athlon -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2'
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
     <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>
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
<p />
Then run
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
     ./configure
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
     <strong>./configure</strong>
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
<p />
This checks the build environment for the right tools and should give you an error if a tool is missing. Once that succeeds run
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
     make
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
     <strong>make</strong>
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<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
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
     make install
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
     <strong>make install</strong>
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
<p />
to install the binaries. The output is put in the following directories:
</td></tr>
<tr bgcolor="#eeeeee" class="twikiDiffLineNumberHeader"><th align="left" colspan="9">Line: 57 to 57</th></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
Run Cinelerra by running
</td></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffChangedHeader" colspan ="9"><b> Changed: </b></td></tr>
<tr><td bgcolor="#ff9999" class="twikiDiffDeletedMarker" valign="top" width="1%">&lt;<br />&lt;</td>
<td class="twikiDiffDeletedText">
     /usr/bin/cinelerra
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
     <strong>/usr/bin/cinelerra</strong>
</td></tr>
<tr><td valign="top" bgcolor="#ffffff" class="twikiDiffUnchangedText" width="1%"><br /></td>
<td class="twikiDiffUnchangedText">
<p />
<p />
-- <a class="twikiLink" href="../../view/Main/AlexFerrer">AlexFerrer</a> - 17 Dec 2003
</td></tr>

</table></div><div class="twikiSearchResults"><div class="twikiSearchResultsHeader">&nbsp;<tt><b>&lt;&lt;O&gt;&gt;</b></tt>&nbsp; Difference Topic
		<b><a href="../../view/Cinelerra/Compiling">Compiling</a></b>
		(<a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?rev=r1.1">r1.1</a> - 17&nbsp;Dec&nbsp;2003 - <a class="twikiLink" href="../../view/Main/AlexFerrer">AlexFerrer</a>)</div>
<table class="twikiDiffTable" width="100%" cellspacing="0">
<tr bgcolor="#eeeeee" class="twikiDiffLineNumberHeader"><th align="left" colspan="9">Line: 1 to 1</th></tr>
<tr><td bgcolor="#D0FFD0" class="twikiDiffAddedHeader" colspan ="9"><b> Added:   </b>
</td></tr>
<tr><td bgcolor="#ccccff" class="twikiDiffAddedMarker" valign="top" width="1%">&gt;<br />&gt;</td>
<td class="twikiDiffAddedText">
<table border="1" cellspacing="1" cellpadding="0">
<tr><th class="twikiFirstCol" bgcolor="#99CCCC"> <strong>META TOPICPARENT</strong> </th><td colspan="2" bgcolor="#FFFFCC"> <a class="twikiLink" href="../../view/Cinelerra/InstallingCinelerra">InstallingCinelerra</a> </td></tr>
</table>
<h3><a name="Compiling_From_Scratch"> </a><a name="_Compiling_From_Scratch"> </a> <a class="twikiLink" href="../../view/Cinelerra/Compiling">Compiling</a> From Scratch </h3>
<p />
(From secrets of cinelerra)
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 <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">RedHat</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/RedHat?topicparent=Cinelerra.Compiling"><sup>?</sup></a></span> 9.0 installation, workstation mode. <span class="twikiNewLink" style="background : #FFFFCE;"><font color="#0000FF">RedHat</font><a href="http://www.ftconsult.com/twiki/bin/edit/Cinelerra/RedHat?topicparent=Cinelerra.Compiling"><sup>?</sup></a></span> 9.0 doesn't install nasm. This has to be installed manually for compilation to succeed. 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 />
     tar jxf cinelerra*.tar.bz2
<p />
<p />
Enter the hvirtual directory
<p />
     cd cinelerra
<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 />
     export CFLAGS='-O3 -march=i686 -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2'
<p />
<p />
For Pentium I and old AMD's use:
<p />
     export CFLAGS='-O3 -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2'
<p />
<p />
For new AMD's use:
<p />
     export CFLAGS='-O3 -march=athlon -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2'
<p />
<p />
Then run
<p />
     ./configure
<p />
<p />
This checks the build environment for the right tools and should give you an error if a tool is missing. Once that succeeds run
<p />
     make
<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 />
     make install
<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 />
     /usr/bin/cinelerra
<p />
<p />
-- <a class="twikiLink" href="../../view/Main/AlexFerrer">AlexFerrer</a> - 17 Dec 2003
<hr />
</td></tr>

</table></div><div class="twikiTopicAction"><a href="../../view/Cinelerra/Compiling">View topic</a>
 <span class="twikiSeparator">|</span> <a href="Compiling">Diffs</a>  | <a href="http://www.ftconsult.com/twiki/bin/view/Cinelerra/Compiling?rev=1.6">r1.6</a> | <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="http://www.ftconsult.com/twiki/bin/oops/Cinelerra/Compiling?template=oopsmore&param1=1.6&param2=1.6">More</a>
</div><div class="twikiTopicInfo"><span class="twikiRevInfo twikiGrayText">Revision r1.1 - 17 Dec 2003 - 04:55 - <a class="twikiLink" href="../../view/Main/AlexFerrer">AlexFerrer</a><br />
Revision r1.6 - 02 Apr 2004 - 17:47 - <a class="twikiLink" href="../../view/Main/AndrazTori">AndrazTori</a></span></div>
<div class="twikiTopicFooter"></div>
<a name="PageBottom"></a> </div></div>
</body></html>