| 1 | |
|---|
| 2 | Installation procedure for SIP SIMPLE client SDK on MacOSX Leopard |
|---|
| 3 | ------------------------------------------------------------------ |
|---|
| 4 | |
|---|
| 5 | Copyright (c) 2008-2010 AG Projects |
|---|
| 6 | http://ag-projects.com |
|---|
| 7 | |
|---|
| 8 | Home page: http://sipsimpleclient.com |
|---|
| 9 | |
|---|
| 10 | This document describes the installation procedure on MacOSX Leopard 10.5. |
|---|
| 11 | |
|---|
| 12 | The installation procedure consists of the steps described below: |
|---|
| 13 | |
|---|
| 14 | Step 1. Prerequisites |
|---|
| 15 | Step 2. Install Dependencies |
|---|
| 16 | Step 3. Install SIP SIMPLE client SDK |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | Step 1. Prerequisites |
|---|
| 20 | --------------------- |
|---|
| 21 | |
|---|
| 22 | * MacOSX 10.5 (Leopard) |
|---|
| 23 | * Intel 32 bit architecture |
|---|
| 24 | * Apple Developer tools (XCode) |
|---|
| 25 | * darcs version control tool from http://www.darcs.net |
|---|
| 26 | |
|---|
| 27 | The procedure below relies on the standard available Python interpreter that |
|---|
| 28 | comes with MacOSX (version 2.5). Make sure that during the building process |
|---|
| 29 | you are not involving external tools or libraries like the ones provided by |
|---|
| 30 | Fink or Darwin Ports distributions. |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | Step 2. Install Dependencies |
|---|
| 34 | ---------------------------- |
|---|
| 35 | |
|---|
| 36 | * python-gnutls http://pypi.python.org/simple/python-gnutls >=1.1.9 |
|---|
| 37 | * python-application http://pypi.python.org/simple/python-application >=1.2.5 |
|---|
| 38 | * python-lxml http://codespeak.net/lxml >=2.1.2 |
|---|
| 39 | * python-eventlet http://download.ag-projects.com/SipClient =0.8.11 |
|---|
| 40 | * python-greenlet http://download.ag-projects.com/SipClient =0.4.0 |
|---|
| 41 | * python-cjson http://pypi.python.org/pypi/python-cjson/ >=1.0.5 |
|---|
| 42 | * cython http://www.cython.org >=0.11.2 |
|---|
| 43 | * dnspython http://www.dnspython.org >=1.6.0 |
|---|
| 44 | * twisted http://twistedmatrix.com/trac >=8.1.0 |
|---|
| 45 | * zope-interface http://www.zope.org >=3.3.1 |
|---|
| 46 | * Python Imaging Library http://pypi.python.org/pypi/PIL/ >=1.1.6 |
|---|
| 47 | |
|---|
| 48 | Build and install C dependencies, the software will be installed under |
|---|
| 49 | /usr/local folder: |
|---|
| 50 | |
|---|
| 51 | # Install GNUTLS dependencies |
|---|
| 52 | curl -O ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.7.tar.bz2 |
|---|
| 53 | tar -xjvf libgpg-error-1.7.tar.bz2 |
|---|
| 54 | cd libgpg-error-1.7 |
|---|
| 55 | CFLAGS="-arch i386" ./configure --prefix=/usr/local --disable-static --disable-dependency-tracking |
|---|
| 56 | make |
|---|
| 57 | sudo make install |
|---|
| 58 | cd .. |
|---|
| 59 | |
|---|
| 60 | curl -O http://ftp.gnu.org/pub/gnu/gnutls/libtasn1-2.2.tar.gz |
|---|
| 61 | tar zxvf libtasn1-2.2.tar.gz |
|---|
| 62 | cd libtasn1-2.2 |
|---|
| 63 | ./configure |
|---|
| 64 | make |
|---|
| 65 | sudo make install |
|---|
| 66 | cd .. |
|---|
| 67 | |
|---|
| 68 | curl -O ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.4.5.tar.bz2 |
|---|
| 69 | tar -xjvf libgcrypt-1.4.5.tar.bz2 |
|---|
| 70 | cd libgcrypt-1.4.5 |
|---|
| 71 | CFLAGS="-arch i386" ./configure --prefix=/usr/local --with-gpg-error-prefix=/usr/local --disable-static --disable-dependency-tracking --disable-asm |
|---|
| 72 | make |
|---|
| 73 | sudo make install |
|---|
| 74 | cd .. |
|---|
| 75 | |
|---|
| 76 | # Install GNUTLS |
|---|
| 77 | curl -O http://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.8.6.tar.bz2 |
|---|
| 78 | tar -xjvf gnutls-2.8.6.tar.bz2 |
|---|
| 79 | cd gnutls-2.8.6 |
|---|
| 80 | CFLAGS="-arch i386" ./configure --prefix=/usr/local --with-libgcrypt-prefix=/usr/local --disable-static --disable-dependency-tracking |
|---|
| 81 | make |
|---|
| 82 | sudo make install |
|---|
| 83 | cd .. |
|---|
| 84 | |
|---|
| 85 | # Install lxml python module |
|---|
| 86 | curl -O http://pypi.python.org/packages/source/l/lxml/lxml-2.2beta4.tar.gz |
|---|
| 87 | tar -xzvf lxml-2.2beta4.tar.gz |
|---|
| 88 | cd lxml-2.2beta4 |
|---|
| 89 | sudo python setup.py install --static-deps |
|---|
| 90 | cd .. |
|---|
| 91 | |
|---|
| 92 | Upgrade MacOSX python setup tools: |
|---|
| 93 | |
|---|
| 94 | sudo easy_install --script-dir /usr/bin -U setuptools |
|---|
| 95 | |
|---|
| 96 | Install Python dependencies by using the easy_install tool. The software |
|---|
| 97 | will be installed in /Library/Python/2.5/site-packages. |
|---|
| 98 | |
|---|
| 99 | sudo easy_install -U python-gnutls dnspython twisted \ |
|---|
| 100 | python-application PIL cython |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | Step 3. Install SIP SIMPLE client SDK |
|---|
| 104 | ------------------------------------- |
|---|
| 105 | |
|---|
| 106 | The SDK consists of four parts: |
|---|
| 107 | |
|---|
| 108 | 1. Eventlet and Greenlet |
|---|
| 109 | 2. XCAP library |
|---|
| 110 | 3. MSRP library |
|---|
| 111 | 4. SIP SIMPLE library |
|---|
| 112 | |
|---|
| 113 | # Eventlet |
|---|
| 114 | if [ -d python-eventlet ]; then |
|---|
| 115 | cd python-eventlet |
|---|
| 116 | darcs pull -a |
|---|
| 117 | sudo python setup.py install |
|---|
| 118 | else |
|---|
| 119 | darcs get http://devel.ag-projects.com/repositories/python-eventlet |
|---|
| 120 | cd python-eventlet |
|---|
| 121 | sudo python setup.py install |
|---|
| 122 | fi |
|---|
| 123 | cd .. |
|---|
| 124 | |
|---|
| 125 | # Greenlet |
|---|
| 126 | if [ -d python-greenlet ]; then |
|---|
| 127 | cd python-greenlet |
|---|
| 128 | darcs pull -a |
|---|
| 129 | sudo python setup.py install |
|---|
| 130 | else |
|---|
| 131 | darcs get http://devel.ag-projects.com/repositories/python-greenlet |
|---|
| 132 | cd python-greenlet |
|---|
| 133 | sudo python setup.py install |
|---|
| 134 | fi |
|---|
| 135 | cd .. |
|---|
| 136 | |
|---|
| 137 | # XCAP library |
|---|
| 138 | if [ -d python-xcaplib ]; then |
|---|
| 139 | cd python-xcaplib |
|---|
| 140 | darcs pull -a |
|---|
| 141 | sudo python setup.py install |
|---|
| 142 | else |
|---|
| 143 | darcs get http://devel.ag-projects.com/repositories/python-xcaplib |
|---|
| 144 | cd python-xcaplib |
|---|
| 145 | sudo python setup.py install |
|---|
| 146 | fi |
|---|
| 147 | cd .. |
|---|
| 148 | |
|---|
| 149 | # MSRP library |
|---|
| 150 | if [ -d python-msrplib ]; then |
|---|
| 151 | cd python-msrplib |
|---|
| 152 | darcs pull -a |
|---|
| 153 | sudo python setup.py install |
|---|
| 154 | else |
|---|
| 155 | darcs get http://devel.ag-projects.com/repositories/python-msrplib |
|---|
| 156 | cd python-msrplib |
|---|
| 157 | sudo python setup.py install |
|---|
| 158 | fi |
|---|
| 159 | cd .. |
|---|
| 160 | |
|---|
| 161 | # SIP SIMPLE library |
|---|
| 162 | if [ -d python-sipsimple ]; then |
|---|
| 163 | cd python-sipsimple |
|---|
| 164 | darcs pull -a |
|---|
| 165 | else |
|---|
| 166 | darcs get http://devel.ag-projects.com/repositories/python-sipsimple |
|---|
| 167 | fi |
|---|
| 168 | cd.. |
|---|
| 169 | |
|---|
| 170 | Build and install SIP SIMPLE library: |
|---|
| 171 | |
|---|
| 172 | cd python-sipsimple |
|---|
| 173 | sudo python setup.py build_ext --pjsip-clean-compile |
|---|
| 174 | sudo python setup.py install |
|---|
| 175 | |
|---|
| 176 | Additional, you can install the command line interface scripts that can be |
|---|
| 177 | used to test the SDK. |
|---|
| 178 | |
|---|
| 179 | if [ -d sipclients ]; then |
|---|
| 180 | cd sipclients |
|---|
| 181 | darcs pull -a |
|---|
| 182 | else |
|---|
| 183 | darcs get http://devel.ag-projects.com/repositories/sipclients |
|---|
| 184 | fi |
|---|
| 185 | cd.. |
|---|
| 186 | |
|---|
| 187 | sudo python setup.py install |
|---|
| 188 | |
|---|