Hi Staurt,

On 14-12-11 22:47, Stuart Marsden wrote:
> Kristoff,
>
> I believe that it will have its own toolchain but wanted to get ahead
> of the game and look at cross compiling. The boards are not yet
> released. The QtonPi project will have its own IDE target but will be
> based around Qt and C++.  I have never done anything for arm so it is
> new to me.
>
> Can you give me a clue what was needed to cross compile? Was it
> ./configure arguments, make arguments, ENV variables or combination of
> all?

It seams to depend on the version of the "./configure" tool you have,
but most have an option to cross-compile (usually "--host"). You might
also need to change the path to the libraries or the include-files as in
most cases, they will be located elsewhere.


If the automatic ./configure tool does not work correctly with the
different options, you can also just run "./configure" without the
cross-compile options and then hack the Makefile to get it working via
"try and error".

This is what I did to get the code to compile on a i386 for a
friendlyarm mini2440 (which has a samsung 3C2440 CPU, based on a
ARM920T). This is based on the particular toolchain that is provided for
this device.

(copy-paste from an earlier mail I send in this list:

--- cut here --- cut here --- cut here --- cut here ---

I did a quick hack, just to get it working:
- just take the i386 code as it is.
- do "make generate_codebook"
- rename the (i386) application to generate_codebook.i386

- do "make clean"
- modify the Makefile, changing all references from "gcc" to
"/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gcc"
- also do the same thing in "libtool"
- do "make"

at a certain point, it will stop as with the error it cannot execute
generate_codebook (as this is the ARM version of the application)
do
- mv generate_codebook generate_codebook.ARM
- cp generate_codebook.i386 generate_codebook
- do "make", to continue the process.

I know. It's a dirty hack, but it did the job for me and as a first
test, that was good enough.

--- cut here --- cut here --- cut here --- cut here ---


Do let us know if you managed to get it build.


> Thanks,
> Stuart
Cheerio! Kr. Bonne.

------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to