Hehe was just replying to add that in... sounds fair enough.  When you get
a branch together I'll be able to make a toolchain file pretty easily for
the AM335x... very small modifications would be needed for particular
platforms toolchain.

Chris


On Thu, Apr 18, 2013 at 12:53 PM, Richard Shaw <[email protected]> wrote:

> On Thu, Apr 18, 2013 at 2:50 PM, Richard Shaw <[email protected]>wrote:
>
>> On Thu, Apr 18, 2013 at 2:30 PM, Chris Testa <[email protected]> wrote:
>>
>>> 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.
>>>
>>
>> There may be a way to do this "automagically"  but the simplest and most
>> direct approach I can think of is to take advantage of the fact that cmake
>> prefers out-of-source build and just build twice, the first time building
>> for the host system, then building for the target system, but allowing the
>> use of the codebook generator binary from the host system with a cmake
>> option.
>>
>> Something like:
>> $ svn co https://freetel.svn.sourceforge.net/svnroot/freetel/codec2-dev
>> $ mkdir codec2-host codec2-arm
>> $ cd codec2-host
>> $ cmake ../codec2-dev
>> $ make
>> $ cd ../codec2-arm
>> $ cmake -DGENERATE_CODEBOOK_BIN=../codec2-host/src/generate_codebook
>> ../codec2-dev
>> $ make
>>
>
> Forgot to spec out the toolchain file option "CMAKE_TOOLCHAIN_FILE" so
> check out the cmake cross compiling wiki[1]...
>
> Richard
>
> [1] http://www.vtk.org/Wiki/CMake_Cross_Compiling
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Freetel-codec2 mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2
>
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to