Comments (6)
Thanks, @mdegans. I will give this a try.
I appreciate the heads up about running a swap file on my microSD card, as I just set that up today. I guess I will switch over to an external hard drive for swap.
That's a good solution, just make sure it's usb3 and fast. You can use the hdparm
utility to benchmark drives on linux. For example sudo hdparm -t /dev/mmcblk0
will read benchmark your MicroSD on nano. If it's not installed, you can install it with sudo apt-get install hdparm
. I have benchmarked external SSDs at around 225MB/s so that's the number you should be expecting from /dev/sda
(probably the name of your first usb drive) if it's a USB-3 SSD.
I was able to get OpenCV version 4.0 to build/install using this script from NVIDIA.
That script works perfectly well, but please be aware that you will likely have similar issues if you try to build without enough free memory. It will probably work fine until it comes time to link everything together at the end, and then fail at some random thing, yielding no useful google results from the error message.
from nano_build_opencv.
I'd be happy to help. It looks like it's failing at the building python2 module. One possible troubleshooting step is to try to build without python2 and see if that fixes it. here is a version with no Python2 support. Please let me know if it builds.
Also, please note that building OpenCV requires a lot of memory. If you encounter failures at random points, you might consider running headless (ssh in and then systemctl isolate multi-user.target
). A swap file might also help, but I would recommend mounting it on an external drive if you do use one. Swapping from a MicroSD card severely hurts it's lifespan.
from nano_build_opencv.
Thanks, @mdegans. I will give this a try.
I appreciate the heads up about running a swap file on my microSD card, as I just set that up today. I guess I will switch over to an external hard drive for swap.
I was able to get OpenCV version 4.0 to build/install using this script from NVIDIA.
from nano_build_opencv.
I'd be happy to help. It looks like it's failing at the building python2 module. One possible troubleshooting step is to try to build without python2 and see if that fixes it. here is a version with no Python2 support. Please let me know if it builds.
Also, please note that building OpenCV requires a lot of memory. If you encounter failures at random points, you might consider running headless (ssh in and then
systemctl isolate multi-user.target
). A swap file might also help, but I would recommend mounting it on an external drive if you do use one. Swapping from a MicroSD card severely hurts it's lifespan.
The link is not found , Please update
from nano_build_opencv.
Please update link for no-python2/build, as I'm encountering this same issue.
Thanks!
from nano_build_opencv.
Please update link for no-python2/build, as I'm encountering this same issue.
Thanks!
Sorry for the necropost. I removed that becuase it wasn't the root of the problem. If you are having the same issue, please try building again with a swap file / partition.
from nano_build_opencv.
Related Issues (20)
- /tmp/build_opencv/opencv_contrib/ is not available in docker image HOT 10
- boostdesc_bgm.i: No such file or directory HOT 2
- I want to Install opencv dnn module to python3 but when i run script it automatically got installed to python2.7 HOT 3
- this is support opencv in c++? HOT 1
- Build OpenCV with CUDA on Jetson AGX Xavier HOT 4
- Orin (Ubuntu 20.04) Missing v4l2ucp HOT 1
- Building OpenCV for Orin System HOT 2
- Script not working with Python 3.7.5 HOT 1
- Undefined reference to glXGetProcAddressARB() HOT 1
- Logging is preventing multiple jobs HOT 2
- Not an Issue but you saved my life. Thank you. Drop a star all. HOT 1
- In jtop still cuda support No HOT 3
- Unsupported gpu architecture 'compute_87' HOT 1
- Cannot generate make file - "Configuration Incomplete" HOT 2
- jetson nano errors to install it HOT 5
- Can not install it in docker HOT 1
- After install, opencv version displayed by 'jtop' and python script by 'cv2.getBuildInformation()' doesn't match. HOT 1
- fatal: unable to access 'https://github.com/opencv/opencv.git/': Failed to connect to github.com port 443: θΏζ₯θΆ ζΆ HOT 1
- Makefile:162: recipe for target 'all' failed
- Failed to build : Package 'libavresample-dev' has no installation candidate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nano_build_opencv.