-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenCV 4.2.0 build fails at opencv_visualisation #19
Comments
Thanks for the report. I'm trying to replicate now. |
I ran the build yesterday on Nano an Xavier to test without a problem on the same JetPack. The most common cause of these kind of failures is running out of memory during build. Couple questions:
|
Thanks for looking into this. I have GUI disabled and 8GB swapfile mounted. After system startup there is 0.3GB out 4.0GB RAM used and total swap is 10GB. I ran Note: currently OpenCV 3.2.0 is installed from a source build (not using your script). |
I was able to complete the builds on Xavier and Nano yesterday with only zram swap and the GUI off. If you see the same error at the same point in the middle of the build it's probably not memory related. Most failures i've seen happen at the end with the python bindings. These errors would seem to be ffmpeg related. Do you have ffmpeg installed, and if so, what versions? |
yes, the error seems to be related to some dependencies...
|
So it looks like your version is not the same as mine. I'm not sure how that's happening.
Your seems to be significantly older, and was built using different config flags. That shouldn't happen on JetPack 4.3 with the version in Canonical's repos (ports.ubuntu.com). Did you build ffmpeg yourself, or do you have some custom version installed? There is a custom version of FFMPEG supplied by a third party for Tegra, but it's untested with OpenCV as far as I am aware. The easiest solution is probably to uninstall whatever version you have or specify *I would advise to use gstreamer for any video decoding at the moment since ffmpeg currently lacks hw decode on Tegra (however Nvidia has announced plans to include it in the next JetPack release). |
I ran the script in a fresh docker container and it finished without any errors. So issue was my messed up environment (the outdated ffmpeg was a dependency from the OpenCV 3.2 that I built manually). Again, thanks for your support and thanks for the script. |
Trying to build latest OpenCV (4.2.0) on Jetson Nano (Jetpack 4.3 / L4T 32.3.1), but it fails at opencv_visualisation:
Thanks in advance.
The text was updated successfully, but these errors were encountered: