Documents Download Building Support Wiki Stuff |
Main /
Building PTLib on UnixMain.BuildingPTLibUnix HistoryHide minor edits - Show changes to markup Changed line 38 from:
unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libsdl2-dev libavformat-dev libswscale-dev \ to:
unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libsdl2-dev libavformat-dev \ Changed lines 44-45 from:
unixODBC-devel lua-devel v8-devel ncurses-devel SDL2-devel libavformat-devel libswscale-devel \ gstreamer1.0-devel gstreamer-plugins-base1.0-devel to:
unixODBC-devel lua-devel v8-devel ncurses-devel SDL2-devel libavformat-devel \ gstreamer1-devel gstreamer-plugins-base1-devel Changed lines 37-38 from:
apt install g++ git make autoconf libpcap-dev libexpat-dev libssl-dev libsasl2-dev libldap-dev \ unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libsdl-dev libjpeg-dev \ to:
apt install g++ git make autoconf libpcap-dev libexpat-dev libssl1.0-dev libsasl2-dev libldap-dev \ unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libsdl2-dev libavformat-dev libswscale-dev \ Changed lines 44-45 from:
unixODBC-devel lua-devel v8-devel ncurses-devel SDL-devel libjpeg-devel \ gstreamer-devel gstreamer-plugins-base-devel to:
unixODBC-devel lua-devel v8-devel ncurses-devel SDL2-devel libavformat-devel libswscale-devel \ gstreamer1.0-devel gstreamer-plugins-base1.0-devel Changed lines 37-40 from:
apt-get install subversion autoconf libpcap-dev libexpat-dev libssl-dev libsasl2-dev libldap-dev \ unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libsdl-dev libjpeg-dev \ libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev to:
apt install g++ git make autoconf libpcap-dev libexpat-dev libssl-dev libsasl2-dev libldap-dev \ unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libsdl-dev libjpeg-dev \ libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev Changed line 43 from:
yum install subversion autoconf libpcap-devel expat-devel openssl-devel cyrus-sasl-devel openldap-devel \ to:
yum install g++ git make autoconf libpcap-devel expat-devel openssl-devel cyrus-sasl-devel openldap-devel \ Changed lines 37-38 from:
apt-get install subversion autoconf libpcap-dev libexpat-dev libssl-dev libsasl2-dev libldap-dev unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libsdl-dev libjpeg-dev to:
apt-get install subversion autoconf libpcap-dev libexpat-dev libssl-dev libsasl2-dev libldap-dev \ unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libsdl-dev libjpeg-dev \ libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev Changed lines 43-45 from:
yum install subversion autoconf libpcap-devel expat-devel openssl-devel cyrus-sasl-devel openldap-devel unixODBC-devel lua-devel v8-devel ncurses-devel gstreamer-devel gstreamer-plugins-base-devel SDL-devel libjpeg-devel to:
yum install subversion autoconf libpcap-devel expat-devel openssl-devel cyrus-sasl-devel openldap-devel \ unixODBC-devel lua-devel v8-devel ncurses-devel SDL-devel libjpeg-devel \ gstreamer-devel gstreamer-plugins-base-devel Changed lines 37-38 from:
apt-get install subversion libpcap-dev libexpat-dev libssl-dev libsasl2-dev libldap-dev unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libsdl-dev libjpeg-dev to:
apt-get install subversion autoconf libpcap-dev libexpat-dev libssl-dev libsasl2-dev libldap-dev unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libsdl-dev libjpeg-dev Changed line 41 from:
yum install subversion libpcap-devel expat-devel openssl-devel cyrus-sasl-devel openldap-devel unixODBC-devel lua-devel v8-devel ncurses-devel gstreamer-devel gstreamer-plugins-base-devel SDL-devel libjpeg-devel to:
yum install subversion autoconf libpcap-devel expat-devel openssl-devel cyrus-sasl-devel openldap-devel unixODBC-devel lua-devel v8-devel ncurses-devel gstreamer-devel gstreamer-plugins-base-devel SDL-devel libjpeg-devel Changed lines 31-34 from:
to:
Added lines 35-42:
For Ubuntu etc, there are the following optional packages: apt-get install subversion libpcap-dev libexpat-dev libssl-dev libsasl2-dev libldap-dev unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libsdl-dev libjpeg-dev For CentOS, Fedora etc, use: yum install subversion libpcap-devel expat-devel openssl-devel cyrus-sasl-devel openldap-devel unixODBC-devel lua-devel v8-devel ncurses-devel gstreamer-devel gstreamer-plugins-base-devel SDL-devel libjpeg-devel Deleted lines 141-158:
6. Notes for specific distributions6.1. Ubuntu etcTo compile with all options, assure you have installed the following packages: apt-get install subversion libpcap-dev libexpat-dev libssl-dev libsasl2-dev libldap-dev unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libsdl-dev libjpeg-dev 6.2 CentOS, Fedora etcTo compile with all options, assure you have installed the following packages: yum install subversion libpcap-devel expat-devel openssl-devel cyrus-sasl-devel openldap-devel unixODBC-devel lua-devel v8-devel ncurses-devel gstreamer-devel gstreamer-plugins-base-devel SDL-devel libjpeg-devel Changed lines 152-153 from:
ldap-devel unixODBC-devel liblua5.3-devel libv8-devel libncurses-devel libgstreamer1.0-devel libgstreamer-plugins-base1.0-devel libsdl-devel libjpeg-devel to:
openldap-devel unixODBC-devel lua-devel v8-devel ncurses-devel gstreamer-devel gstreamer-plugins-base-devel SDL-devel libjpeg-devel Changed lines 147-148 from:
6.2 Fedora etcto:
6.2 CentOS, Fedora etcChanged lines 151-152 from:
yum install subversion libpcap-devel libexpat-devel libssl-devel libsasl2-devel libldap-devel unixodbc-devel liblua5.3-devel libv8-devel libncurses-devel \ to:
yum install subversion libpcap-devel expat-devel openssl-devel cyrus-sasl-devel ldap-devel unixODBC-devel liblua5.3-devel libv8-devel libncurses-devel \ Changed lines 139-154 from:
to:
6.1. Ubuntu etcTo compile with all options, assure you have installed the following packages: apt-get install subversion libpcap-dev libexpat-dev libssl-dev libsasl2-dev libldap-dev unixodbc-dev liblua5.3-dev libv8-dev libncurses-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libsdl-dev libjpeg-dev 6.2 Fedora etcTo compile with all options, assure you have installed the following packages: yum install subversion libpcap-devel libexpat-devel libssl-devel libsasl2-devel libldap-devel unixodbc-devel liblua5.3-devel libv8-devel libncurses-devel libgstreamer1.0-devel libgstreamer-plugins-base1.0-devel libsdl-devel libjpeg-devel Changed lines 90-91 from:
3. Build and use without installto:
4. Build and use without installChanged line 123 from:
4. Editing configure.ac, and running aclocal and autoconfto:
5. Editing configure.ac, and running aclocal and autoconfChanged lines 13-14 from:
to:
Changed lines 137-163 from:
6. Notes for specific distributions]]Ubuntu 9.04Ubuntu already provides packages for PTLib, as these are needed for Ekiga. If you want to install the developer packages, then as of 30 May 2009 these are called libpt-2.6.1-dev. The matching Opal package is called libopal3.6.1-dev. If you want to compile PTLib yourself, then you will either need to uninstall the existing PTLib (and Opal and Ekiga) or install your new PTLib to another directory. See above for instructions on how to do this. You will also need the following information: - If you are getting PTLib direct from the SVN archive, you will need to install Subversion: sudo apt-get install subversion - You will need to install GCC, Flex, Bison sudo apt-get install g++ flex bison - It is recommended that you install the Expat development libraries: sudo apt-get install libexpat1-dev to:
6. Notes for specific distributionsChanged lines 12-14 from:
to:
Added lines 136-163:
6. Notes for specific distributions]]
Ubuntu 9.04Ubuntu already provides packages for PTLib, as these are needed for Ekiga. If you want to install the developer packages, then as of 30 May 2009 these are called libpt-2.6.1-dev. The matching Opal package is called libopal3.6.1-dev. If you want to compile PTLib yourself, then you will either need to uninstall the existing PTLib (and Opal and Ekiga) or install your new PTLib to another directory. See above for instructions on how to do this. You will also need the following information: - If you are getting PTLib direct from the SVN archive, you will need to install Subversion: sudo apt-get install subversion - You will need to install GCC, Flex, Bison sudo apt-get install g++ flex bison - It is recommended that you install the Expat development libraries: sudo apt-get install libexpat1-dev Added lines 93-94:
IMPORTANT: you must set the environment variable before executing the configure script or the system will get very confused. Added lines 115-117:
Note that it may be necessary to add /usr/local/lib to LD_LIBRARY_PATH and set PKG_CONFIG_PATH to /usr/local/lib/pkgconfig in order for other packages to be detected correctly. Changed line 103 from:
export LD_LIBRARY_PATH=/usr/local/lib to:
export LD_LIBRARY_PATH=${PTLIBDIR}/lib_linux_x86 Changed line 109 from:
setenv LD_LIBRARY_PATH /usr/local/lib to:
setenv LD_LIBRARY_PATH ${PTLIBDIR}/lib_linux_x86 Changed lines 11-12 from:
to:
Added lines 114-128:
4. Editing configure.ac, and running aclocal and autoconfIf you are developer, it may be necessary to modify the configure.ac file and regenerate the configure script using autoconf. The following message may appear configure.ac:5: error: possibly undefined macro: dnl If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. If this occurs, then you need to regnerate the aclocal.m4 file by running the following command: aclocal Added line 39:
Added lines 42-43:
If you are using plugins, the PTLIBPLUGINDIR environment variable must be set to the location of the installed plugins. By default, this is /usr/local/lib/ptlib-minor.major.patch, where minor.major.patch is the version of PTlib being used. Changed lines 48-49 from:
to:
export PTLIBPLUGINDIR=/usr/local/lib/ptlib-minor.major.patch Changed lines 54-55 from:
to:
setenv PTLIBPLUGINDIR /usr/local/lib/ptlib-minor.major.patch Changed lines 91-92 from:
It is also necessary to set the LD_LIBRARY_PATH environment variable so that programs can find the PTLib libraries at link or run time. to:
It is also necessary to set the LD_LIBRARY_PATH environment variable so that programs can find the PTLib libraries at link or run time. The correct directory name depends on the host architecture: For Linux x86 32 bit ${PTLIBDIR}/lib_linux_x86 For Linux x86 64 bit ${PTLIBDIR}/lib_linux_x86_64 If you are using plugins, the PTLIBPLUGINDIR environment variable must be set to the location of the compiled plugins. This will be the same directory as used above for the LD_LIBRARY_PATH Changed lines 103-104 from:
to:
export PTLIBPLUGINDIR=${PTLIBDIR}/lib_linux_x86 Changed lines 108-109 from:
seetnv LD_LIBRARY_PATH /usr/local/lib to:
setenv LD_LIBRARY_PATH /usr/local/lib setenv PTLIBPLUGINDIR ${PTLIBDIR}/lib_linux_x86 Changed line 20 from:
If you want do not want to install PTLib into a shared locatio, because you do not have root access or because you want to have to:
If you want do not want to install PTLib into a shared location, because you do not have root access or because you want to have Changed lines 51-52 from:
Use the following command to build the release (optimised) version as a shared library to:
Use the following command to build and install the release version (optimised) as a shared library Changed lines 58-59 from:
Use the following command to build the release (optimised) version as a static library to:
Use the following command to build and install the release version (optimised) as a static library Changed lines 65-66 from:
Use the following command to build the debug (includes debugging symbols) version as a shared library to:
Use the following command to build and install the debug version (includes debugging symbols) as a shared library Changed lines 72-73 from:
Use the following command to build the debug (includes debugging symbols) version as a static library to:
Use the following command to build and install the debug version (includes debugging symbols) as a static library Changed lines 79-80 from:
Multiple versions can be built in the same directory tree and installed seperately to:
Multiple versions can be built in the same directory tree and installed separately Changed lines 9-11 from:
to:
Changed lines 15-16 from:
PTLib is built from source using to:
PTLib is built from source using If you want to install PTLib into a shared location accessible by all users of the system (normally /usr/local), and you have root access, then you can use the default configure and install procedure Introduction described here. If you want do not want to install PTLib into a shared locatio, because you do not have root access or because you want to have more than one version of PTLib on the same host, then follow this procedure. Changed lines 28-29 from:
to:
Changed lines 32-52 from:
3. Download and install the PTLib source codeDownload and extract the PTLib source code. For the purposes of this document, the directory that contains PTLIB will be indicated as installdir/PTLIB 4.
|