Giter VIP home page Giter VIP logo

Comments (6)

mdegans avatar mdegans commented on June 27, 2024 1

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.

mdegans avatar mdegans commented on June 27, 2024

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.

monocongo avatar monocongo commented on June 27, 2024

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.

m7mdosama avatar m7mdosama commented on June 27, 2024

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.

DaveXanatos avatar DaveXanatos commented on June 27, 2024

Please update link for no-python2/build, as I'm encountering this same issue.

Thanks!

from nano_build_opencv.

mdegans avatar mdegans commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.