<div dir="ltr"><div>Hi,</div><div><br></div>Earlier tonight, bmanojlovic on IRC provided me with a package repository of 1.2.14 for raspberry and he also started working on using a newer version of that library that doesn&#39;t use that hardcoded compiler option.<div>

<br></div><div>The repository can be found through <a href="http://naizvoru.com">naizvoru.com</a> and he told it is possible to cross-compile from opensuse using <a href="https://github.com/bmanojlovic/rpi-cross-compile/">https://github.com/bmanojlovic/rpi-cross-compile/</a>.</div>

<div><br></div><div>I couldn&#39;t put this info on the wiki as SwK told me in IRC that the wiki will be closed for maintenance and that no new wiki accounts will be given out, so I&#39;m writing it here :)</div><div><br>

</div><div>Kind regards,</div><div><br></div><div>Hans</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/15 Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>yeah i think the fixed that hard coded sse2 flag and we&#39;ll be updating that lib soon<br><br><div>

Ken</div>Sent from my iPad</div><div><div class="h5"><div><br>On Nov 14, 2013, at 12:33, Hans Bakker &lt;<a href="mailto:hansmbakker@gmail.com" target="_blank">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&#39;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 <a href="http://wiki.freeswitch.org/wiki/Debian_packages_buildscript" target="_blank">http://wiki.freeswitch.org/wiki/Debian_packages_buildscript</a> 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 &#39;wheezy&#39; because lsb_release returns &#39;n/a&#39; 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&#39;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=&quot;$(cat freeswitch/build/next-release.txt | sed -e &#39;s/-/~/g&#39;)~n$(date +%Y%m%dT%H%M%SZ)-1~${DISTRO}+1&quot;
(cd freeswitch &amp;&amp; build/set-fs-version.sh &quot;$FS_VERSION&quot;)
(cd freeswitch &amp;&amp; dch -b -m -v &quot;$FS_VERSION&quot; --force-distribution -D &quot;$DCH_DISTRO&quot; &quot;Custom build.&quot;)

# 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 &#39;/^#/d&#39; | sed -e &#39;/^$/N;/^\n$/D&#39; &gt; freeswitch/debian/control

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

# Build
if [ -z &quot;$SIGN_KEY&quot; ]; then
  (cd freeswitch &amp;&amp; dpkg-buildpackage -b -uc)
else
  (cd freeswitch &amp;&amp; dpkg-buildpackage -b -k$SIGN_KEY)
fi</pre>Modified <b>beginning of </b>freeswitch/debian/bootstrap.sh (I didn&#39;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=&quot;../src/mod&quot;
conf_dir=&quot;../conf&quot;
lang_dir=&quot;../conf/vanilla/lang&quot;
fs_description=&quot;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.&quot;
mod_build_depends=&quot;.&quot; mod_depends=&quot;.&quot; mod_recommends=&quot;.&quot; mod_suggests=&quot;.&quot;
supported_distros=&quot;squeeze wheezy jessie sid&quot;
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></div></div><div class="im"><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br>

<span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com" target="_blank">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" target="_blank">http://www.cudatel.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br>

<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com" target="_blank">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" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></span><br>

<span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-dev</a></span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br>

</div></blockquote></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>