Ask Your Question
0

cross compiling opencv - /usr/local/lib/libopencv_core.so: file not recognized: File format not recognized

asked 2013-11-14 16:00:00 -0600

vyga gravatar image

I am trying to get cross compiling to work on ubuntu. error: **make all Building target: aaaaa Invoking: Cross G++ Linker arm-linux-gnueabihf-g++ -L/usr/local/lib -L/usr/lib -o "aaaaa" ./aaaaa.o -lopencv_core /usr/local/lib/libopencv_core.so: file not recognized: File format not recognized collect2: error: ld returned 1 exit status

make: * [aaaaa] Error 1

blabla@ubuntu:/usr/local/lib$ file libopencv_core.so libopencv_core.so: symbolic link to `/usr/local/lib/libopencv_core.so.2.4'

Have no idea why it is not working :(

edit retag flag offensive close merge delete

Comments

someone???

vyga gravatar imagevyga ( 2013-11-15 01:39:34 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-11-18 04:21:39 -0600

You try to link your app against OpenCV build for desktop. You need to build OpenCV for ARM manually by this tutorial and link app against it.

edit flag offensive delete link more

Comments

Hi, thanks, have done that. But now I am getting another error:

/usr/local/lib/libopencv_highgui.so: undefined reference to `__fdelt_chk@GLIBC_2.15'

Do You have an idea what can it be?

vyga gravatar imagevyga ( 2013-12-28 18:53:27 -0600 )edit

Question Tools

Stats

Asked: 2013-11-14 16:00:00 -0600

Seen: 6,576 times

Last updated: Nov 18 '13