<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>yeah i think the fixed that hard coded sse2 flag and we'll be updating that lib soon<br><br><div>Ken</div>Sent from my iPad</div><div><br>On Nov 14, 2013, at 12:33, Hans Bakker &lt;<a href="mailto:hansmbakker@gmail.com">hansmbakker@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra">Hi all,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I'm trying to build FreeSwitch packages for Raspberry. I installed Raspbian (on an USB-drive, as building it needs a LOT of space), and used the&nbsp;<a href="http://wiki.freeswitch.org/wiki/Debian_packages_buildscript" target="_blank">http://wiki.freeswitch.org/wiki/Debian_packages_buildscript</a>&nbsp;script.</div>


<div class="gmail_extra"><br></div><div class="gmail_extra"><b>My script modifications are below.</b></div><div class="gmail_extra"><br></div><div class="gmail_extra">My steps:</div><div class="gmail_extra"><ul><li>I installed dpkg-dev devscripts (sudo and git were already installed)</li>


<li>I hardcoded DISTRO to 'wheezy' because lsb_release returns 'n/a' on Raspbian although it is based on wheezy.</li><li>I ran the buildscript with sudo and installed the build-dependencies that mk-build-deps came up with</li>


</ul></div><div class="gmail_extra"><div><b>However, my problem is that it tries to build applications/mod_soundtouch which wants to use the -msse2 compile switch which is not available on the Raspberry. That is why I get compiler errors and the build fails.</b></div>


<div><br></div><div>I tried to remove it by adding it to avoid_mods and avoid_mods_wheezy in freeswitch/debian/bootstrap.sh, but this didn't help..</div><div><br></div><div>Can somebody help me building these packages? I will share the result when I succeed :)</div>


<div><br></div><div>Kind regards,</div><div><br></div><div>Hans</div><div><br></div><div><br></div></div><div class="gmail_extra">Changed build_freeswitch_deb.sh:</div><div class="gmail_extra"><pre style="line-height:1.3em;font-size:13px;background-color:rgb(249,249,249);font-family:monospace,Courier;border:1px dashed rgb(47,111,171);padding:1em">
#!/bin/sh -e
#
# Helper script for building Debian packages
#
# FreeSWITCH will be downloaded from Git into ./freeswitch/ and built.
# The resulting Debian packages will be placed in the current directory.
#
# You should run this as an unprivileged user, with sudo permissions
# to install build dependencies (add your user to the sudo group).
#
# Build dependencies:
# $ apt-get -y install git dpkg-dev devscripts sudo
# All other dependencies are installed by the script.
#
# If modules.conf exists in the current directory then it will be
# used to select the modules to be built.
#

# Configuration
BRANCH=v1.2.stable
DCH_DISTRO=UNRELEASED
# SIGN_KEY= (Optional)

# Download FreeSWITCH
git clone -b $BRANCH <a rel="nofollow" style="text-decoration:none;color:rgb(102,51,102)">git://git.freeswitch.org/freeswitch.git</a>

# Version number for Git checkouts needs to be generated
DISTRO=wheezy
FS_VERSION="$(cat freeswitch/build/next-release.txt | sed -e 's/-/~/g')~n$(date +%Y%m%dT%H%M%SZ)-1~${DISTRO}+1"
(cd freeswitch &amp;&amp; build/set-fs-version.sh "$FS_VERSION")
(cd freeswitch &amp;&amp; dch -b -m -v "$FS_VERSION" --force-distribution -D "$DCH_DISTRO" "Custom build.")

# Optional: if modules.conf exists use this to select which modules to build
if [ -f modules.conf ]; then cp modules.conf freeswitch/debian; fi

# Bootstrap debian buildsystem
(cd freeswitch/debian &amp;&amp; ./bootstrap.sh -c ${DISTRO})

# See FS-5863
mv freeswitch/debian/control freeswitch/debian/control.bak
cat freeswitch/debian/control.bak | sed -e '/^#/d' | sed -e '/^$/N;/^\n$/D' &gt; freeswitch/debian/control

# Install build dependencies
sudo mk-build-deps -i freeswitch/debian/control

# Build
if [ -z "$SIGN_KEY" ]; then
  (cd freeswitch &amp;&amp; dpkg-buildpackage -b -uc)
else
  (cd freeswitch &amp;&amp; dpkg-buildpackage -b -k$SIGN_KEY)
fi</pre>Modified&nbsp;<b>beginning of </b>freeswitch/debian/bootstrap.sh (I didn't remove the rest)<pre style="padding:1em;border:1px dashed rgb(47,111,171);background-color:rgb(249,249,249)"><font color="#000000" face="monospace, Courier"><span style="line-height:16.899999618530273px">#!/bin/bash
##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
##### Author: Travis Cross &lt;<a href="mailto:tc@traviscross.com" target="_blank">tc@traviscross.com</a>&gt;

mod_dir="../src/mod"
conf_dir="../conf"
lang_dir="../conf/vanilla/lang"
fs_description="FreeSWITCH is a scalable open source cross-platform telephony platform designed to route and interconnect popular communication protocols using audio, video, text or any other form of media."
mod_build_depends="." mod_depends="." mod_recommends="." mod_suggests="."
supported_distros="squeeze wheezy jessie sid"
avoid_mods=(
  applications/mod_limit
  applications/mod_mongo
  applications/mod_mp4
  applications/mod_osp
  applications/mod_rad_auth
  applications/mod_skel
  <b>applications/mod_soundtouch</b>
  asr_tts/mod_cepstral
  codecs/mod_com_g729
  codecs/mod_ilbc
  codecs/mod_sangoma_codec
  codecs/mod_siren
  codecs/mod_skel_codec
  codecs/mod_voipcodecs
  endpoints/mod_gsmopen
  endpoints/mod_h323
  endpoints/mod_khomp
  endpoints/mod_opal
  endpoints/mod_reference
  endpoints/mod_unicall
  formats/mod_shout
  languages/mod_managed
  languages/mod_spidermonkey
  sdk/autotools
  xml_int/mod_xml_ldap
  xml_int/mod_xml_radius
)
avoid_mods_sid=(
  languages/mod_java
)
avoid_mods_jessie=(
)
avoid_mods_wheezy=(
  <b>applications/mod_soundtouch</b>
)
avoid_mods_squeeze=(
  formats/mod_vlc
  languages/mod_managed
)
./bootstrap.sh</span></font><span style="line-height:1.3em;font-size:13px;font-family:monospace,Courier">
</span></pre><div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div></div>
</div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br><span><a href="http://www.cudatel.com">http://www.cudatel.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-dev mailing list</span><br><span><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">lists.freeswitch.org/mailman/options/freeswitch-dev</a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>