<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body >I'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.<br><br><br>-------- Original message --------<br>From: Dušan Dragić <dragic.dusan@gmail.com> <br>Date: 12-03-2013 12:24 PM (GMT-08:00) <br>To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> <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'm building on Fedora 19 x86_64 using the prebuilt toolchain from<br>https://github.com/raspberrypi/tools (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>http://pastebin.freeswitch.org/21698<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't work (I guess it's kinda expected, didn'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'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>http://pastebin.freeswitch.org/21699<br><br>and backtrace:<br>http://pastebin.freeswitch.org/21700<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>consulting@freeswitch.org<br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></body>