|
Building freeswitch on Opensolaris Nevada |
|
|
|
|
Written by Michal Bielicki
|
|
Monday, 28 July 2008 11:51 |
|
Sponsored by:  OpenSolaris Nevada This is the distribution from the opensolaris.org guys, do not mix that up with os200805 which is the new OpenSolaris based distro from SUN. - Select your development user. I will assume for the time being that the user is called freeswitch
- Create the target directory for freeswitch
mkdir /opt/freeswitch chown freeswitch /opt/freeswitch - Give your build and development user software installation rights
usermod -P "Software Installation" freeswitch - log out and log back in as the freeswitch user (so that the new permissions become active)
- download and unpack the new jds-cbe beta package:
/usr/sfw/bin/wget http://dlc.sun.com/osol/jds/downloads/cbe/test/desktop-cbe-1.7.0-rc1-x86.tar.bz2 gtar xvfz desktop-cbe-1.7.0-rc1-x86.tar.bz2"
cd desktop-cbe-1.7.0-rc1 ./cbe-install - leave everything as default. Select the SunStudio compiler as your default compiler.
- Download the spec-files-extra repository into a subdirectory called SFE
svn co https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk SFE - Load the jds-cbe environment
. /opt/dtbld/bin/env.sh - Compile and install SFEunixodbc
cd SFE pkgtool --download build SFEunixodbc.spec - Download freeswitch trunk
svn co http://svn.freeswitch.org/svn/freeswitch/trunk fstrunk - Prepare the freeswitch sources
cd fstrunk ./bootstrap.sh - and edit the modules.conf file to select which modules you would like to have installed
vim modules.conf - Configure freeswitch sources for 64bit and let the c compiler apply some optimization
CFLAGS="-m64 -fast" CXXFLAGS="-m64 -fast" LDFLAGS="-m64" ./configure --prefix=/opt/freeswitch \
--enable-core-odbc-support --enable-core-libedit-support \
--enable-64 --with-openssl=/usr/sfw
CFLAGS="-m32 -fast" CXXYFLAGS="-m32 -fast" LDFLAGS="-m32" ./configure --prefix=/opt/freeswitch \
--enable-core-odbc-support --enable-core-libedit-support \
--with-openssl=/usr/sfw - Drink a cup of coffee
- run make :)
gmake - Install freeswitch into its target directory
gmake install
|
|
Last Updated ( Tuesday, 05 August 2008 14:26 )
|