doonny / PipeCNN

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

Undefined Reference CV::_OutputArray::_OutputArray(cv::Mat&) #79

Closed ghost closed 5 years ago

ghost commented 6 years ago

Dear @doonny, I am getting this error while compiling Makefile using OpenCV 3.3.0.. 11111

ArjunaDeSoysa commented 6 years ago

Same issue for me also. Do you have any ideas @thinkoco , @hammadj, @davenso?

manojrohit commented 6 years ago

You can see opencv includes defined in the host file (lines 29, 30, 31). You can change them based on the opencv version you have installed.

Also in the Makefile, you can notice the opencv includes and libs defined. Change them based on your version.

ghost commented 6 years ago

Dear @manojrohit, How did you configure yours? What is your OpenCV version?

ghost commented 6 years ago

Dear @doonny @manojrohit,

We also have trouble defining paths for arm-linux-gnueabihf Do you have any tips for that?

manojrohit commented 6 years ago

I have install the OpenCV 2 version to configure. I tried to use the same paths specified in the program. I use x86 as my host not arm. So no idea about that.

ghost commented 6 years ago

Dear @doonny, Have you tried implementing this on ARM architecture with OpenCV enabled ? This works flawlessly on x86, (and ARM architecture with OpenCV disabled) but gives a bunch of errors on ARM with OpenCV.

If you did, Can you please send us a link for the opencv-arm libraries which are compatible with your code.

doonny commented 6 years ago

Please try 2.4.9 or 2.4.10. Do not use version 3.0 or newer. The prebuild libs should work with the correct version of arm-gcc, so it's better to compile on your own machine.

ghost commented 6 years ago

Dear @doonny, Ok, we'll try with OpenCV 2.4.9.. We got prebuild libs from here.. https://github.com/praveen-palanisamy/OpenCV-2.4.9-for-arm Where did you get prebuild opencv libs ?

doonny commented 6 years ago

We directly build all libs on our boards.

ghost commented 6 years ago

@doonny Did you use apt-get install gcc-4.7-arm-linux-gnueabihf for installing arm libraries or use a gcc-linaro-6.4.1-2017.11-x86_64_arm-linux-gnueabihf package ?

arun0303 commented 6 years ago

@DasunBhanuka Hai, Did you solved the above issue i am also facing the same error. Please help me if you solved the error Thanks ARUN

doonny commented 5 years ago

I am assuming this problem has been solved.