/usr/local/lib/libcxcore.a: could not read symbols: File in wrong format

Hi guys, im trying to compile a opencv codes with the following
commands

fyp@fyp-laptop:~/opencv.build$ arm-angstrom-linux-gnueabi-g++ /home/
fyp/stuff/opencvvvvv/findLinesMatrix.c -o opencvtest -I/usr/local/
include/opencv /usr/local/lib/libhighgui.a /usr/local/lib/libcxcore.a /
usr/local/lib/libcvaux.a /usr/local/lib/libcv.a /usr/lib/libpng.a /usr/
lib/libz.a -lpthread -ldl

but i get these errors which i cannot solve...

/usr/local/angstrom/arm/lib/gcc/arm-angstrom-linux-gnueabi/
4.3.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: /usr/local/lib/
libcxcore.a(dgesv.o): Relocations in generic ELF (EM: 3)
/usr/local/lib/libcxcore.a: could not read symbols: File in wrong
format
collect2: ld returned 1 exit status

Im using opencv2.0..
can someOne point out my mistakes?? Or possible solutions?

THanks for all the help!!

Charlie

Why aren't you using Angstrom (OE) to build opencv?

You should be able to just run 'bitbake opencv' and have OE perform
all the cross compile magic.

haha...cause im not familiar with bitbake, u tried and end up with some unsolved errors..
Then i saw this website http://www.stanford.edu/~zxwang/cross_compilation.html
and followed it...that's how i end up here...
Thanks! your suggestion is good...Is there any website i can read on bitbake opencv??

First of all, please keep your replies on the mailing list so that all may benefit.

A reasonable place to find out about Angstrom and OE would be http://www.linuxtogo.org/gowiki/Angstrom

haha...cause im not familiar with bitbake, u tried and end up with some
unsolved errors..
Then i saw this website
http://www.stanford.edu/~zxwang/cross_compilation.html
and followed it...that's how i end up here...
Thanks! your suggestion is good...Is there any website i can read on
bitbake opencv??

First of all, please keep your replies on the mailing list so that all may
benefit.

A reasonable place to find out about Angstrom and OE would be
http://www.linuxtogo.org/gowiki/Angstrom

Also http://www.angstrom-distribution.org/

Philip

The way I read his command line, he is trying to compile an openCV app
not build openCV. Different task.

Hi guys, im trying to compile a opencv codes with the following
commands

[...]

but i get these errors which i cannot solve...

/usr/local/angstrom/arm/lib/gcc/arm-angstrom-linux-gnueabi/
4.3.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: /usr/local/lib/
libcxcore.a(dgesv.o): Relocations in generic ELF (EM: 3)
/usr/local/lib/libcxcore.a: could not read symbols: File in wrong
format
collect2: ld returned 1 exit status

Im using opencv2.0..
can someOne point out my mistakes?? Or possible solutions?

Charlie,

I have an impression that you try to link intel-compiled OpenCV to
your ARM-compiled objects.
Can you show the output of 'file /usr/local/lib/libcxcore.a' ?

regards,
j.