Hi,<br><br>I can cross compile asterisk 1.4.21 on arm (imx27) using ltib<br>I want to cross compile the new version 1.6.2.13 but there is an error when I execute the commands :<br>./configure --build=i686-pc-linux-gnu --host=arm<br>
make menuselect <br><br><br>The configure seems ok, I have the result info :<br><i>configure: Package configured for: <br>configure: OS type : none<br>configure: Host CPU : arm<br>configure: build-cpu:vendor:os: i686 : pc : linux-gnu :<br>
configure: host-cpu:vendor:os: arm : unknown : none :<br>configure: Cross Compilation = YES<br></i><br><br>But when I try to execute make menuselect I have the message :<br><i>CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts<br>
make[1]: Entering directory `/home/m/ltib/rpm/BUILD/asterisk-1.6.2.13/menuselect'<br>configure: error: in `/home/m/ltib/rpm/BUILD/asterisk-1.6.2.13/menuselect':<br>configure: error: cannot run C compiled programs.<br>
If you meant to cross compile, use `--host'.<br>See `config.log' for more details.<br>make[1]: *** [makeopts] Error 1<br>make[1]: Leaving directory `/home/m/ltib/rpm/BUILD/asterisk-1.6.2.13/menuselect'<br>make: *** [menuselect/makeopts] Error 2</i><br>
<br>Do you have any ideas of the problem ? config.log don't give me more explanations.<br>With google i found the problem should be corrected from the revision 268052 (Build menuselect with the build environment's compiler, not the host (target)'s compiler) here : <a href="http://svnview.digium.com/svn/asterisk/branches/1.6.2?view=revision&revision=268052">http://svnview.digium.com/svn/asterisk/branches/1.6.2?view=revision&revision=268052</a><br>
<br>Thanks for your help.<br><br>Sebastien<br><br>