Chris Testa <[email protected]> writes: > One gocha I found when cross compiling for the ARM Cortex-A8 on the AM335x > Starter Kit: > > The binary generate_codebook should be built for and executed on the build > platform - not the target platform that will ultimately run FreeDV. Those > generated codebook c files are the ones to be compiled for the target. > > I'm not sure if that's easy to say in cmake. On the current autoconf setup > I do this: > > $ svn co https://freetel.svn.sourceforge.net/svnroot/freetel/codec2-dev > $ cd codec2-dev > $ ./configure --host=i686 --prefix=$TARGET_NFS/usr/local > $ cd src > $ gcc generate_codebook.c -o generate_codebook -lm > $ cd .. > $ make > $ make install
autoconf is supposed to have support for this, to enable programs to be built as tools on the build system vs. tools built for the "host" (which is what will run the program being built, called target by everyone else). http://sourceware.org/autobook/autobook/autobook_270.html#SEC270 The advice in the page above essentially mirrors what you are doing, but in an automated way so that users are spared the gymnastics.
pgpZ7yywFODVC.pgp
Description: PGP signature
------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
