Re: [Freeswitch-dev] Freeswitch packaging for Raspberry Pi?
Hi all, I'm searching for precompiled Freeswitch binaries for the Raspberry Pi. I found http://wiki.freeswitch.org/wiki/Debian_packages_buildscript and I've seen some attempts in this thread http://freeswitch-users.2379917.n2.nabble.com/FreeSWITCH-on-Raspberry-Pi-Ope.... Also I found some blogs explaining how to compile Freeswitch from source (manually or using the Fusionpbx script). However it would be much more convenient to have packaged binaries, to be able to install module packages instead of having to build them again, and to be able to quickly update the software. Could you please tell me whether there are any plans of automating Freeswitch packaging for the Raspberry Pi? Kind regards, Hans 2013/11/7 Hans Bakker <hansmbakker@gmail.com>
Hi all,
I'm searching for precompiled Freeswitch binaries for the Raspberry Pi. I've seen some attempts in this thread http://freeswitch-users.2379917.n2.nabble.com/FreeSWITCH-on-Raspberry-Pi-Ope.... Also I found some blogs explaining how to compile Freeswitch from source (manually or using the Fusionpbx script).
However it would be much more convenient to have packaged binaries.
Could you please tell me whether there are any plans of packaging Freeswitch for the Raspberry Pi?
Kind regards,
Hans
Currently we dont have packages for arm or armhf arch's. at some point in the future we may. The main blocker on this is having the correct platforms for the build cluster to build these packages Sent from my iPhone On Nov 9, 2013, at 2:01 PM, Hans Bakker <hansmbakker@gmail.com> wrote:
Hi all,
I'm searching for precompiled Freeswitch binaries for the Raspberry Pi. I found http://wiki.freeswitch.org/wiki/Debian_packages_buildscript and I've seen some attempts in this thread http://freeswitch-users.2379917.n2.nabble.com/FreeSWITCH-on-Raspberry-Pi-Ope.... Also I found some blogs explaining how to compile Freeswitch from source (manually or using the Fusionpbx script).
However it would be much more convenient to have packaged binaries, to be able to install module packages instead of having to build them again, and to be able to quickly update the software.
Could you please tell me whether there are any plans of automating Freeswitch packaging for the Raspberry Pi?
Kind regards,
Hans
2013/11/7 Hans Bakker <hansmbakker@gmail.com>
Hi all,
I'm searching for precompiled Freeswitch binaries for the Raspberry Pi. I've seen some attempts in this thread http://freeswitch-users.2379917.n2.nabble.com/FreeSWITCH-on-Raspberry-Pi-Ope.... Also I found some blogs explaining how to compile Freeswitch from source (manually or using the Fusionpbx script).
However it would be much more convenient to have packaged binaries.
Could you please tell me whether there are any plans of packaging Freeswitch for the Raspberry Pi?
Kind regards,
Hans
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
How do you currently build your packages? Do you have an own build cluster? Debian for example has buildd and Ubuntu provides launch pad ppa's - I think they both can build for armhf.
Op 10 nov. 2013 om 00:05 heeft Ken Rice <krice@freeswitch.org> het volgende geschreven:
Currently we dont have packages for arm or armhf arch's. at some point in the future we may.
The main blocker on this is having the correct platforms for the build cluster to build these packages
Sent from my iPhone
On Nov 9, 2013, at 2:01 PM, Hans Bakker <hansmbakker@gmail.com> wrote:
Hi all,
I'm searching for precompiled Freeswitch binaries for the Raspberry Pi. I found http://wiki.freeswitch.org/wiki/Debian_packages_buildscript and I've seen some attempts in this thread http://freeswitch-users.2379917.n2.nabble.com/FreeSWITCH-on-Raspberry-Pi-Ope.... Also I found some blogs explaining how to compile Freeswitch from source (manually or using the Fusionpbx script).
However it would be much more convenient to have packaged binaries, to be able to install module packages instead of having to build them again, and to be able to quickly update the software.
Could you please tell me whether there are any plans of automating Freeswitch packaging for the Raspberry Pi?
Kind regards,
Hans
2013/11/7 Hans Bakker <hansmbakker@gmail.com>
Hi all,
I'm searching for precompiled Freeswitch binaries for the Raspberry Pi. I've seen some attempts in this thread http://freeswitch-users.2379917.n2.nabble.com/FreeSWITCH-on-Raspberry-Pi-Ope.... Also I found some blogs explaining how to compile Freeswitch from source (manually or using the Fusionpbx script).
However it would be much more convenient to have packaged binaries.
Could you please tell me whether there are any plans of packaging Freeswitch for the Raspberry Pi?
Kind regards,
Hans
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
I tried building packages myself in qemu and on my Raspberry using the debian package buildscript, but I got errors that I couldn't solve myself both in qemu and on my real Raspberry. Maybe on the latter it is because I'm not using an official debian install (I'm using Xbian which is derived from debian). In qemu I tried Raspbian. Now I'm trying to compile it manually, but it would be cleaner to have packages of course. 2013/11/10 Hans Bakker <hansmbakker@gmail.com>
How do you currently build your packages? Do you have an own build cluster?
Debian for example has buildd and Ubuntu provides launch pad ppa's - I think they both can build for armhf.
Op 10 nov. 2013 om 00:05 heeft Ken Rice <krice@freeswitch.org> het volgende geschreven:
Currently we dont have packages for arm or armhf arch's. at some point in the future we may.
The main blocker on this is having the correct platforms for the build cluster to build these packages
Sent from my iPhone
On Nov 9, 2013, at 2:01 PM, Hans Bakker <hansmbakker@gmail.com> wrote:
Hi all,
I'm searching for precompiled Freeswitch binaries for the Raspberry Pi. I found http://wiki.freeswitch.org/wiki/Debian_packages_buildscript and I've seen some attempts in this thread http://freeswitch-users.2379917.n2.nabble.com/FreeSWITCH-on-Raspberry-Pi-Ope.... Also I found some blogs explaining how to compile Freeswitch from source (manually or using the Fusionpbx script).
However it would be much more convenient to have packaged binaries, to be able to install module packages instead of having to build them again, and to be able to quickly update the software.
Could you please tell me whether there are any plans of automating Freeswitch packaging for the Raspberry Pi?
Kind regards,
Hans
2013/11/7 Hans Bakker <hansmbakker@gmail.com>
Hi all,
I'm searching for precompiled Freeswitch binaries for the Raspberry Pi. I've seen some attempts in this thread http://freeswitch-users.2379917.n2.nabble.com/FreeSWITCH-on-Raspberry-Pi-Ope.... Also I found some blogs explaining how to compile Freeswitch from source (manually or using the Fusionpbx script).
However it would be much more convenient to have packaged binaries.
Could you please tell me whether there are any plans of packaging Freeswitch for the Raspberry Pi?
Kind regards,
Hans
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Hi all, 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 http://wiki.freeswitch.org/wiki/Debian_packages_buildscript script. *My script modifications are below.* My steps: - I installed dpkg-dev devscripts (sudo and git were already installed) - I hardcoded DISTRO to 'wheezy' because lsb_release returns 'n/a' on Raspbian although it is based on wheezy. - I ran the buildscript with sudo and installed the build-dependencies that mk-build-deps came up with *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.* 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.. Can somebody help me building these packages? I will share the result when I succeed :) Kind regards, Hans Changed build_freeswitch_deb.sh: #!/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 git://git.freeswitch.org/freeswitch.git # 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 && build/set-fs-version.sh "$FS_VERSION") (cd freeswitch && 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 && ./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' > freeswitch/debian/control # Install build dependencies sudo mk-build-deps -i freeswitch/debian/control # Build if [ -z "$SIGN_KEY" ]; then (cd freeswitch && dpkg-buildpackage -b -uc) else (cd freeswitch && dpkg-buildpackage -b -k$SIGN_KEY) fi Modified *beginning of *freeswitch/debian/bootstrap.sh (I didn't remove the rest) #!/bin/bash ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*- ##### Author: Travis Cross <tc@traviscross.com> 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 *applications/mod_soundtouch* 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=( *applications/mod_soundtouch* ) avoid_mods_squeeze=( formats/mod_vlc languages/mod_managed ) ./bootstrap.sh
yeah i think the fixed that hard coded sse2 flag and we'll be updating that lib soon Ken Sent from my iPad On Nov 14, 2013, at 12:33, Hans Bakker <hansmbakker@gmail.com> wrote:
Hi all,
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 http://wiki.freeswitch.org/wiki/Debian_packages_buildscript script.
My script modifications are below.
My steps: I installed dpkg-dev devscripts (sudo and git were already installed) I hardcoded DISTRO to 'wheezy' because lsb_release returns 'n/a' on Raspbian although it is based on wheezy. I ran the buildscript with sudo and installed the build-dependencies that mk-build-deps came up with 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.
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..
Can somebody help me building these packages? I will share the result when I succeed :)
Kind regards,
Hans
Changed build_freeswitch_deb.sh:
#!/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 git://git.freeswitch.org/freeswitch.git
# 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 && build/set-fs-version.sh "$FS_VERSION") (cd freeswitch && 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 && ./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' > freeswitch/debian/control
# Install build dependencies sudo mk-build-deps -i freeswitch/debian/control
# Build if [ -z "$SIGN_KEY" ]; then (cd freeswitch && dpkg-buildpackage -b -uc) else (cd freeswitch && dpkg-buildpackage -b -k$SIGN_KEY) fi Modified beginning of freeswitch/debian/bootstrap.sh (I didn't remove the rest) #!/bin/bash ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*- ##### Author: Travis Cross <tc@traviscross.com>
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 applications/mod_soundtouch 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=( applications/mod_soundtouch ) avoid_mods_squeeze=( formats/mod_vlc languages/mod_managed ) ./bootstrap.sh
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Hi, 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't use that hardcoded compiler option. The repository can be found through naizvoru.com and he told it is possible to cross-compile from opensuse using https://github.com/bmanojlovic/rpi-cross-compile/. I couldn'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'm writing it here :) Kind regards, Hans 2013/11/15 Ken Rice <krice@freeswitch.org>
yeah i think the fixed that hard coded sse2 flag and we'll be updating that lib soon
Ken Sent from my iPad
On Nov 14, 2013, at 12:33, Hans Bakker <hansmbakker@gmail.com> wrote:
Hi all,
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 http://wiki.freeswitch.org/wiki/Debian_packages_buildscript script.
*My script modifications are below.*
My steps:
- I installed dpkg-dev devscripts (sudo and git were already installed) - I hardcoded DISTRO to 'wheezy' because lsb_release returns 'n/a' on Raspbian although it is based on wheezy. - I ran the buildscript with sudo and installed the build-dependencies that mk-build-deps came up with
*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.*
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..
Can somebody help me building these packages? I will share the result when I succeed :)
Kind regards,
Hans
Changed build_freeswitch_deb.sh:
#!/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 git://git.freeswitch.org/freeswitch.git
# 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 && build/set-fs-version.sh "$FS_VERSION") (cd freeswitch && 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 && ./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' > freeswitch/debian/control
# Install build dependencies sudo mk-build-deps -i freeswitch/debian/control
# Build if [ -z "$SIGN_KEY" ]; then (cd freeswitch && dpkg-buildpackage -b -uc) else (cd freeswitch && dpkg-buildpackage -b -k$SIGN_KEY) fi
Modified *beginning of *freeswitch/debian/bootstrap.sh (I didn't remove the rest)
#!/bin/bash ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*- ##### Author: Travis Cross <tc@traviscross.com>
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 *applications/mod_soundtouch* 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=( *applications/mod_soundtouch* ) avoid_mods_squeeze=( formats/mod_vlc languages/mod_managed ) ./bootstrap.sh
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Hi, I created an initial page for building / installing FreeSwitch on the Raspberry on the wiki: https://wiki.freeswitch.org/wiki/Raspberry_PI-specific_documentation I know it is not finished and that's why I'd like to see your comments, ideas, suggestions, edits, etc :) Kind regards, Hans 2013/11/15 Hans Bakker <hansmbakker@gmail.com>
Hi,
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't use that hardcoded compiler option.
The repository can be found through naizvoru.com and he told it is possible to cross-compile from opensuse using https://github.com/bmanojlovic/rpi-cross-compile/.
I couldn'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'm writing it here :)
Kind regards,
Hans
2013/11/15 Ken Rice <krice@freeswitch.org>
yeah i think the fixed that hard coded sse2 flag and we'll be updating that lib soon
Ken Sent from my iPad
On Nov 14, 2013, at 12:33, Hans Bakker <hansmbakker@gmail.com> wrote:
Hi all,
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 http://wiki.freeswitch.org/wiki/Debian_packages_buildscript script.
*My script modifications are below.*
My steps:
- I installed dpkg-dev devscripts (sudo and git were already installed) - I hardcoded DISTRO to 'wheezy' because lsb_release returns 'n/a' on Raspbian although it is based on wheezy. - I ran the buildscript with sudo and installed the build-dependencies that mk-build-deps came up with
*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.*
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..
Can somebody help me building these packages? I will share the result when I succeed :)
Kind regards,
Hans
Changed build_freeswitch_deb.sh:
#!/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 git://git.freeswitch.org/freeswitch.git
# 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 && build/set-fs-version.sh "$FS_VERSION") (cd freeswitch && 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 && ./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' > freeswitch/debian/control
# Install build dependencies sudo mk-build-deps -i freeswitch/debian/control
# Build if [ -z "$SIGN_KEY" ]; then (cd freeswitch && dpkg-buildpackage -b -uc) else (cd freeswitch && dpkg-buildpackage -b -k$SIGN_KEY) fi
Modified *beginning of *freeswitch/debian/bootstrap.sh (I didn't remove the rest)
#!/bin/bash ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*- ##### Author: Travis Cross <tc@traviscross.com>
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 *applications/mod_soundtouch* 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=( *applications/mod_soundtouch* ) avoid_mods_squeeze=( formats/mod_vlc languages/mod_managed ) ./bootstrap.sh
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Hello, Has anyone had success running Freeswitch on Raspberry pi ? If yes, what are the issues to look out for. Regards, Abdul Hakeem From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Hans Bakker Sent: Friday, November 15, 2013 12:29 AM To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] Freeswitch packaging for Raspberry Pi? Hi, 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't use that hardcoded compiler option. The repository can be found through naizvoru.com and he told it is possible to cross-compile from opensuse using https://github.com/bmanojlovic/rpi-cross-compile/. I couldn'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'm writing it here :) Kind regards, Hans 2013/11/15 Ken Rice <krice@freeswitch.org> yeah i think the fixed that hard coded sse2 flag and we'll be updating that lib soon Ken Sent from my iPad On Nov 14, 2013, at 12:33, Hans Bakker <hansmbakker@gmail.com> wrote: Hi all, 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 http://wiki.freeswitch.org/wiki/Debian_packages_buildscript script. My script modifications are below. My steps: * I installed dpkg-dev devscripts (sudo and git were already installed) * I hardcoded DISTRO to 'wheezy' because lsb_release returns 'n/a' on Raspbian although it is based on wheezy. * I ran the buildscript with sudo and installed the build-dependencies that mk-build-deps came up with 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. 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.. Can somebody help me building these packages? I will share the result when I succeed :) Kind regards, Hans Changed build_freeswitch_deb.sh: #!/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 git://git.freeswitch.org/freeswitch.git # 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 && build/set-fs-version.sh "$FS_VERSION") (cd freeswitch && 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 && ./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' > freeswitch/debian/control # Install build dependencies sudo mk-build-deps -i freeswitch/debian/control # Build if [ -z "$SIGN_KEY" ]; then (cd freeswitch && dpkg-buildpackage -b -uc) else (cd freeswitch && dpkg-buildpackage -b -k$SIGN_KEY) fi Modified beginning of freeswitch/debian/bootstrap.sh (I didn't remove the rest) #!/bin/bash ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*- ##### Author: Travis Cross <tc@traviscross.com> 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 applications/mod_soundtouch 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=( applications/mod_soundtouch ) avoid_mods_squeeze=( formats/mod_vlc languages/mod_managed ) ./bootstrap.sh _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (3)
-
Abdul Hakeem
-
Hans Bakker
-
Ken Rice