<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/2030/1/7/_/styles/combined.css?spaceKey=TOP&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/TOP/Building+-+MacOS+X">Building - MacOS X</a></h2>
<h4>Page <b>edited</b> by <a href="https://wiki.asterisk.org/wiki/display/~kpfleming">Kevin P. Fleming</a>
</h4>
<div id="versionComment">
<b>Comment:</b>
Removed direct download of pjproject; it now comes from a git repository along with the other components.<br />
</div>
<br/>
<h4>Changes (1)</h4>
<div id="page-diffs">
<table class="diff" cellpadding="0" cellspacing="0">
<tr><td class="diff-snipped" >...<br></td></tr>
<tr><td class="diff-unchanged" >./gitall-asterisk-scf.sh <br>{noformat} <br></td></tr>
<tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">* h6.PJSip Source <br>{noformat} <br>curl -O http://www.pjsip.org/release/1.8/pjproject-1.8.tar.bz2 <br>tar -xvf pjproject-1.8.tar.bz2 <br>mv pjproject-1.8 pjproject <br>{noformat} <br></td></tr>
<tr><td class="diff-unchanged" >* h6.Build Asterisk SCF <br>{noformat} <br></td></tr>
<tr><td class="diff-snipped" >...<br></td></tr>
</table>
</div> <h4>Full Content</h4>
<div class="notificationGreySide">
<h2><a name="Building-MacOSX-Preface"></a>Preface</h2>
<p>These instructions explain how to build Asterisk SCF on a clean, basic MacOS X 10.6 (Snow Leopard) installation.</p>
<h2><a name="Building-MacOSX-SoftwareRequirements"></a>Software Requirements</h2>
<ul>
        <li>Xcode 3 - <a href="http://developer.apple.com/technologies/tools/xcode.html" class="external-link" rel="nofollow">http://developer.apple.com/technologies/tools/xcode.html</a></li>
        <li>Git - <a href="http://code.google.com/p/git-osx-installer/" class="external-link" rel="nofollow">http://code.google.com/p/git-osx-installer/</a></li>
        <li>CMake - <a href="http://www.cmake.org/cmake/resources/software.html" class="external-link" rel="nofollow">http://www.cmake.org/cmake/resources/software.html</a></li>
        <li>Ice Third Party Sources - <a href="http://www.zeroc.com/download.html" class="external-link" rel="nofollow">http://www.zeroc.com/download.html</a></li>
        <li>Boost Libraries - <a href="http://www.boost.org/doc/libs/1_44_0/more/getting_started/unix-variants.html" class="external-link" rel="nofollow">http://www.boost.org/doc/libs/1_44_0/more/getting_started/unix-variants.html</a></li>
        <li>LUA - <a href="http://www.lua.org/" class="external-link" rel="nofollow">http://www.lua.org/</a></li>
        <li>pjsip - <a href="http://www.pjsip.org/download.htm" class="external-link" rel="nofollow">http://www.pjsip.org/download.htm</a></li>
</ul>
<h2><a name="Building-MacOSX-Installation"></a>Installation</h2>
<ul>
        <li><h6><a name="Building-MacOSX-Xcode"></a>Xcode</h6></li>
        <li><h6><a name="Building-MacOSX-Git"></a>Git</h6></li>
        <li><h6><a name="Building-MacOSX-CMake"></a>CMake</h6></li>
        <li><h6><a name="Building-MacOSX-IceThirdPartySources"></a>Ice Third Party Sources</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>cd ~
curl -O http://www.zeroc.com/download/Ice/3.4/ThirdParty-Sources-3.4.1.tar.gz
tar -xvf Downloads/ThirdParty-Sources-3.4.1.tar.gz
cd ThirdParty-Sources-3.4.1
for x in *.tar.gz; do tar -xvf $x; done
cd db-4.8.30.NC/build_unix
CPPFLAGS=-I/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers ../dist/configure --enable-cxx --enable-java
make
sudo make install
cd ../../mcpp-2.7.2
patch -p0 < ../mcpp/patch.mcpp.2.7.2
CFLAGS="-O3 -fno-common" ./configure --enable-mcpplib --disable-shared
make
sudo make install
cd ../expat-2.0.1
CFLAGS="-O3" ./configure
make
sudo make install
</pre>
</div></div></li>
        <li><h6><a name="Building-MacOSX-Digium%27sIceDistribution"></a>Digium's Ice Distribution</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>cd ~
git clone git://git.asterisk.org/asterisk-scf/release/ice
cd ~/ice/cpp
make DB_HOME=/usr/local/BerkeleyDB.4.8/
sudo make install
cd ../py
make
sudo make install
</pre>
</div></div></li>
        <li><h6><a name="Building-MacOSX-LUA"></a>LUA</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>cd ~
curl -O http://www.lua.org/ftp/lua-5.1.4.tar.gz
tar -xvf lua-5.1.4.tar.gz
cd lua-5.1.4
make macosx
sudo make install
</pre>
</div></div></li>
        <li><h6><a name="Building-MacOSX-BoostLibraries"></a>Boost Libraries</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>cd ~
curl -O http://cdnetworks-us-2.dl.sourceforge.net/project/boost/boost/1.44.0/boost_1_44_0.tar.gz
tar -xvf boost_1_44_0.tar.gz
cd boost_1_44_0
./bootstrap.sh
./bjam
sudo ./bjam install
</pre>
</div></div></li>
        <li><h6><a name="Building-MacOSX-AsteriskSCFSource"></a>Asterisk SCF Source</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>cd ~
git clone git://git.asterisk.org/asterisk-scf/integration/gitall
cd gitall
./gitall-asterisk-scf.sh
</pre>
</div></div></li>
        <li><h6><a name="Building-MacOSX-BuildAsteriskSCF"></a>Build Asterisk SCF</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>cd ~
cd gitall
./cmake/init-cmake.sh
cd build
make
</pre>
</div></div></li>
</ul>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;">
<a href="https://wiki.asterisk.org/wiki/users/viewnotifications.action" class="grey">Change Notification Preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/TOP/Building+-+MacOS+X">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/pages/diffpagesbyversion.action?pageId=6979712&revisedVersion=20&originalVersion=19">View Changes</a>
|
<a href="https://wiki.asterisk.org/wiki/display/TOP/Building+-+MacOS+X?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>