Ask Your Question

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

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

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/ file not recognized: File format not recognized collect2: error: ld returned 1 exit status

make: * [aaaaa] Error 1

[email protected]:/usr/local/lib$ file symbolic link to `/usr/local/lib/'

Have no idea why it is not working :(

edit retag flag offensive close merge delete



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

1 answer

Sort by ยป oldest newest most voted

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

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


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

/usr/local/lib/ undefined reference to `[email protected]_2.15'

Do You have an idea what can it be?

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

Question Tools


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

Seen: 5,761 times

Last updated: Nov 18 '13