problem compiling libjingle

前端 未结 2 1557
野的像风
野的像风 2021-02-15 20:15

I downloaded and installed libjingle-0.5.2.zip, and according to the README also downloaded and installed swtoolkit.0.9.1.zip, scons-local-2.1.0.alpha.20101125.tar.gz, and expat

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-15 20:48

    I did following to build libjingle :

    Building LibJingle for Linux

    1. How to Build

    Libjingle is built with swtoolkit ( http://code.google.com/p/swtoolkit/), which is a set of extensions to the open-source SCons build tool ( http://www.scons.org).

    • First, install Python 2.4 or later from http://www.python.org/. Please note that since swtoolkit only works with Python 2.x, you will not be able to use Python 3.x.

    • Second, install the stand alone scons-local package 2.0.0 or later from http://www.scons.org/download.php and set an environment variable, SCONS_DIR, to point to the directory containing SCons, for example, /src/libjingle/scons-local/scons-local-2.0.0.final.0/.

    • Third, install swtoolkit from http://code.google.com/p/swtoolkit/.

    • Finally, Libjingle depends on two open-source projects, expat and srtp. Download expat from http://sourceforge.net/projects/expat/ to talk/third_party/expat-2.0.1/. Follow the instructions at http://sourceforge.net/projects/srtp/develop to download latest srtp to talk/third_party/srtp. Note that srtp-1.4.4 does not work since it misses the extensions used by Libjingle. If you put expat or srtp in a different directory, you need to edit talk/libjingle.scons correspondingly.

    2.1 Build Libjingle under Linux or OS X

    • First, make sure the SCONS_DIR environment variable is set correctly.
    • Second, run talk/third_party/expat-2.0.1/configure and talk/third_party/srtp/configure.
    • Third, go to the talk/ directory and run $path_to_swtoolkit/hammer.sh. Run $path_to_swtoolkit/hammer.sh --help for information on how to build for different modes.

    Other than above given steps, See following as reference

    Set SCONS_DIR Path

    export SCONS_DIR=/home/esumit/libjingle/libjingle-0.5.2/talk/third_party/scons-local/scons-local-2.0.1
    

    Install libasound2-dev Lib to compile libJingle, otherwise you will encounter errors.

    sudo apt-get install libasound2-dev
    

    Download SRTP using the following command. If it asks for a passowrd, just hit Enter.

    cvs -z3 -d:pserver:anonymous@srtp.cvs.sourceforge.net:/cvsroot/srtp co -P srtp
    

    Possible components in LibJingle Directory

    libjingle-0.5.2/talk/third_party$ ls
    expat-2.0.1  libudev  scons-local  srtp  swtoolkit
    

    Execute following command to build LibJingle

    libjingle-0.5.2/talk$ ./third_party/swtoolkit/hammer.sh
    

提交回复
热议问题