[beagleboard] Cross compiling a library for BeagleBoard xM

Yor prefix pointed to home/khukhu/ARM_Toolchain/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi, you must have -L to that folder

Hi
Thank you.
Now I have followed your suggestion and used the following command

arm-angstrom-linux-gnueabi-gcc -I/include -o Fax4 write.c function.c -L. /home/khukhu/ARM_Toolchain/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi -lm

But still i am getting the following errors

/ARM_Toolchain/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi: No such file: File format not recognized
collect2: ld returned 1 exit status

Please help me.

Khursheed,

The command should be

arm-angstrom-linux-gnueabi-gcc -I/include -o Fax4 write.c function.c
-L/home/khukhu/ARM_Toolchain/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi
-ltiff -lm

Please note that there's no . between -L and the "prefix" path.

Thanks,
-Hieu

Think environment!