doonny / PipeCNN

An OpenCL-based FPGA Accelerator for Convolutional Neural Networks
Apache License 2.0
1.22k stars 370 forks source link

ERROR: usr/local/lib/libopencv_co.so: file not recognized: file format not recognized #77

Closed ghost closed 5 years ago

ghost commented 6 years ago

@doonny @thinkoco @aazz44ss @hammadj, Does this error come up because of a compatibility issue with the version I am using for OpenCV (which is 4.0.0)?

ghost commented 6 years ago

@doonny @thinkoco @aazz44ss @hammadj, which OpenCV version are you using?

doonny commented 6 years ago

the version of opencv is not related with the version of opencl, there are different things. Any version should work

ghost commented 6 years ago

Dear @doonny I am sorry, I meant OpenCV, I've read that codes that uses old opencv versions can be incompatible on new opencv versions. So, I've tranferred from OpenCV 4.0.0 to OpenCV 3.3.1. But still gets the same error.. arm-linux-gnueabihf-g++ .. usr/local/lib/libopencv_co.so: file not recognized: file format not recognized. After a while, I found that this is due to an issue in building OpenCV for ARM.. Can you tell me which OpenCV version you are using for this demo?

ghost commented 6 years ago

Dear @doonny, This is the error I get. Can you tell me which OpenCV version you used for the demo, so that I can try it also and see just in case in order to figure out where the problem is.. screenshot from 2018-05-04 14-00-24

roddregs commented 6 years ago

@DasunBhanuka Were you able to solve this error? Encountered same error here.. How do you solve it? Thanks.

Enshall commented 6 years ago

file format issues always mean ur compiler was wrong. ur path of opencv in makefile is /usr/local/opencv-arm, but what actually works is usr/local/lib/.. so, the answer is just in ur logs.

ghost commented 6 years ago

@Enshall Were you able to successfully implement the PipeCNN on a DE1SoC including OpenCV part?

ghost commented 6 years ago

@Enshall Can you please tell me what you did to solve this issue ? I am stuck with this for weeks.. It would be a great help..

Enshall commented 6 years ago

@DasunBhanuka I dont have a problem with u or opencv, but I guess ur opencv compilation didnt success(/usr/local/opencv-arm exits?). what now actually works is ur x86 version, arm-linux-gnueabihf-g++ can`t recognize. so recompile ur opencv with arm-linux-gnueabihf-g++ or just download a copy may be worked.

ghost commented 6 years ago

@Enshall Yes, Problem might be in "arm-gcc" . Couldn't find a compatible version for DE1SOC.. How did you install arm-gcc ?

crazylazydboy commented 6 years ago

@Enshall I am having the same problem as well. Did you get the same error as well.. ? The problem is in the arm-linux-gnueabihf-g++ How did you get it to work ?

Enshall commented 6 years ago

@DasunBhanuka ur compiler is ok. ur log says there is no opencv_core.lib in /usr/local/opencv-arm, thats means u didnt corss-compile opencv successfully or ur path in makefile is wrong. u can check them first.
@SudharanTJ Cross compile opencv with CMake, modify opencv path in ur makefile (OCV_INCLUDES OCV_LIBDIRS).

arun0303 commented 6 years ago

hi, I am using DE10 Standard kit i am facing the following error kindly help me.

Thanks ARUN for_doony

arun0303 commented 6 years ago

hi @Enshall kindly help me on this

doonny commented 5 years ago

I am assuming this problem has been solved.