Ask Your Question
0

Can I build OpenCV on my Desktop Computer from source, then transfer the build folder to a raspberry pi for use on a raspberry pi?

asked 2017-07-26 17:06:42 -0600

sa5mmm gravatar image

Hello, I have built OpenCV 3.1.0 on my Windows computer. I used python 2.7, have numpy installed, and have added a few modules from opencv_contrib. The build works on my computer in the python terminal I can import cv2 and have made a test program and that also works. I was wondering if I can zip up my build folder and transfer it to my Raspberry Pi 3, then unzip and start using OpenCV on my Raspberry Pi, or do I have to rebuild OpenCV from scratch again on my Raspberry Pi 3.

Thank you,

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2017-07-26 22:57:14 -0600

berak gravatar image
  • no, you can't simply zip your desktop environment, and put it on a raspi, the underlying hardware architecture differs.
  • you can build it from scratch on the actual device, but this will take ages. (and you'd need a quite large disc, ~2gb temp files produced during build)
  • you can try to cross-compile it on your desktop box, and later transfer it to your raspi
  • there are prebuilt cv2 packages for raspian, unfortunately they're stone-age, something like 2.4.8
edit flag offensive delete link more
0

answered 2017-08-17 04:43:30 -0600

supra56 gravatar image

The answer is NO! U will get an errors during make -j(x). For raspberry pi 3. u will have to start over from beginning install libraries to make install. Recently, I had problem w/out install libraries for 5 times. but i'm getting a lot of an errors during make -j4.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-07-26 17:06:42 -0600

Seen: 923 times

Last updated: Aug 17 '17