Changes between Version 1 and Version 2 of Python_SIP/Build_Install


Ignore:
Timestamp:
Jul 22, 2008 9:46:28 PM (16 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python_SIP/Build_Install

    v1 v2  
    77The Python module source codes along with some samples are included in PJSIP distribution, in [source:pjproject/trunk/pjsip-apps/src/python pjproject/pjsip-apps/src/python] directory. 
    88 
     9[[BR]] 
    910 
    1011== Building The Modules == #build 
    1112 
    1213Using Microsoft Visual Studio projects: 
    13  * Open '''pjsip-apps.dsw''' from {{{pjsip-apps\build}}} directory. 
    14  * Select '''python_pjsua''' project as the active project. 
    15  * Build the project 
    16  * The {{{_pjsua.pyd}}} Python module will be placed in {{{pjsip-apps\lib}}} directory. 
    17  * Copy {{{_pjsua.pyd}}} and {{{pjsua.py}}} from {{{pjsip-apps\src\python}}} directory to Python's site_packages directory (see Python manual for this), or alternatively add the directories where these files reside to your {{{PYTHONPATH}}} environment variable. 
     14 1. Open '''pjsip-apps.dsw''' from {{{pjsip-apps\build}}} directory. 
     15 1. Select '''python_pjsua''' project as the active project. 
     16 1. Build the project 
     17 1. The {{{_pjsua.pyd}}} Python module will be placed in {{{pjsip-apps\lib}}} directory. 
     18 1. Copy {{{_pjsua.pyd}}} and {{{pjsua.py}}} from {{{pjsip-apps\src\python}}} directory to Python's site_packages directory (see Python manual for this), or alternatively add the directories where these files reside to your {{{PYTHONPATH}}} environment variable. 
    1819 
    1920Using Python build script: 
    20  * Go to {{{pjsip-apps/src/python}}} directory. 
    21  * Run '''{{{'python ./setup.py build'}}}''' 
    22  * The Python module will be placed in {{{build}}} directory inside current directory. 
    23  * Alternatively run '''{{{'python ./setup.py install'}}}''' to install both '''_pjsua''' and '''pjsua''' modules to Python's site_packages directory. 
     21 1. Build the PJSIP libraries first with the usual "{{{./configure && make dep && make}}}" commands. 
     22 1. Go to {{{pjsip-apps/src/python}}} directory. 
     23 1. Run '''{{{'python ./setup.py build'}}}''' 
     24 1. The Python module will be placed in {{{build}}} directory inside current directory. 
     25 1. Alternatively run '''{{{'sudo python ./setup.py install'}}}''' to install both '''_pjsua''' and '''pjsua''' modules to Python's {{{site_packages}}} directory. 
    2426