<div dir="ltr">Even with SwitchPI I do not cross compile, never got it work properly that way, and tried various methods including distcc et al...<div><br></div><div>the problem with cross compiling is autotools is a pain to get working correctly in a cross compile environment you have to tell it most of the answers instead of letting it guess them...</div>
<div><br></div><div>I would just compile it under raspbian on a RPi or i.MX5 (this is what the Raspbian team was using last time I looked for building everything) and then go from there... yes it takes a while, but even so last time i tried to cross compile it, or qemu it, those were not that much faster then native</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 3:29 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Or look at <a href="http://www.switchpi.org/" target="_blank">http://www.switchpi.org/</a><div><br></div>
</div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 3:15 PM, Jeff Leung <span dir="ltr">&lt;<a href="mailto:jleung@v10networks.ca" target="_blank">jleung@v10networks.ca</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I&#39;d suggest that you look into qemu as a cpu emulator.  You can use that to chroot into an armv6 user land and compile freeswitch natively from there.<div>

<div><br><br><br>-------- Original message --------<br>From: Dušan Dragić &lt;<a href="mailto:dragic.dusan@gmail.com" target="_blank">dragic.dusan@gmail.com</a>&gt; <br>Date: 12-03-2013  12:24 PM  (GMT-08:00) <br>
To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt; <br>Subject: [Freeswitch-users] Cross compiling freeswitch for raspberry pi <br>

 <br><br>Hi all,<br><br>This weekend I tried my luck at cross-compiling freeswitch for<br>raspberry pi (armv6). After a few bumps along the way (opened jiras<br>for those) I managed to build it, but  when running freeswitch on the<br>

target system it segfaults during startup.<br><br>I&#39;m building on Fedora 19 x86_64 using the prebuilt toolchain from<br><a href="https://github.com/raspberrypi/tools" target="_blank">https://github.com/raspberrypi/tools</a> (I can build a toolchain from<br>

source if anyone thinks it might be better). Raspbian debootstrap<br>created base system is used as sysroot (also tried loop mounted<br>raspbian image as sysroot).<br><br>My simple build environment setup script:<br><a href="http://pastebin.freeswitch.org/21698" target="_blank">http://pastebin.freeswitch.org/21698</a><br>

<br>The build process (source the script, configure and compile):<br>./bootstrap.sh<br>. ~/fs-cc-env.sh<br>./configure --build=x86_64-redhat-linux --host=arm-linux-gnueabihf<br>--with-sysroot=$SYSROOT<br>make<br><br>make install didn&#39;t work (I guess it&#39;s kinda expected, didn&#39;t really<br>

look into it) so I just copied the binaries, libraries and modules to<br>rpi.<br>Also mod_spidermonkey and mod_xml_rpc were disabled. Didn&#39;t even try<br>to build mod_spidermonkey and mod_xml_rpc failed to build (well it<br>

builds but makefile tries to run<br>libs/xmlrpc-c/lib/expat/gennmtab/gennmtab which was compiled for arm<br>and should have been x86, probably should create jira for this as<br>well).<br><br>Console log when FS is started:<br>

<a href="http://pastebin.freeswitch.org/21699" target="_blank">http://pastebin.freeswitch.org/21699</a><br><br>and backtrace:<br><a href="http://pastebin.freeswitch.org/21700" target="_blank">http://pastebin.freeswitch.org/21700</a><br>

<br>Is my build environment sane? What am I missing, any hints? Has anyone<br>successfully cross-compiled FS for raspberry pi?<br><br>Thanks,<br>-- <br>Dušan Dragić<br><br>_________________________________________________________________________<br>

Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">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-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>

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

<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>

Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:<a href="tel:%2B19193869900" value="+19193869900" target="_blank">+19193869900</a>
</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-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>