Comments (9)
Please specify your Jetson hardware platform and JetPack version.
from jetson_nano.
Thanks for the quick reply.
JetPack version:
nvidia-l4t-core 32.2.3-20191105135548
Hardware:
jetson-desktop
description: Computer
product: NVIDIA Jetson Nano Developer Kit
serial: 142241905045508003ff
width: 64 bits
capabilities: smp cp15_barrier setend swp
from jetson_nano.
You are using JetPack-4.2.3, which is a little bit dated. I would suggest you to use a newer version of JetPack if possible. For example, you could refer to my JetPack-4.4 for Jetson Nano to set up the dev environment quickly.
Otherwise, I don't know why you encounter this error. I would just try to remove "libjpeg-turbo8-dev" in the script to work around the problem.
dpkg: error processing archive /var/cache/apt/archives/libjpeg-turbo8-dev_1.5.2-0ubuntu5.18.04.4_arm64.deb (--unpack):
trying to overwrite '/usr/include/aarch64-linux-gnu/jconfig.h', which is also in package libjpeg62-turbo-dev:arm64 1:1.5.2-2~bionic1.0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
jetson_nano/install_opencv-3.4.8.sh
Line 53 in f7960ff
from jetson_nano.
After removing this line:
sudo apt-get install -y libjpeg8-dev libjpeg-turbo8-dev libtiff-dev libpng-dev
Im running in the fowlloing error: (I have executed the file with sudo)
Collecting matplotlib
Downloading matplotlib-3.3.3.tar.gz (37.9 MB)
|████████████████████████████████| 37.9 MB 964 kB/s
ERROR: Command errored out with exit status -4:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nayhv8xi/matplotlib_75486bdb01bf419b9c4b4677db68fb1a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nayhv8xi/matplotlib_75486bdb01bf419b9c4b4677db68fb1a/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-pgs8wum6
cwd: /tmp/pip-install-nayhv8xi/matplotlib_75486bdb01bf419b9c4b4677db68fb1a/
Complete output (21 lines):
WARNING: The directory '/home/jetson/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/jetson/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Edit setup.cfg to change the build options; suppress output with --quiet.
BUILDING MATPLOTLIB
matplotlib: yes [3.3.3]
python: yes [3.6.9 (default, Oct 8 2020, 12:12:24) [GCC 8.4.0]]
platform: yes [linux]
sample_data: yes [installing]
tests: no [skipping due to configuration]
macosx: no [Mac OS-X only]
running egg_info
creating /tmp/pip-pip-egg-info-pgs8wum6/matplotlib.egg-info
writing /tmp/pip-pip-egg-info-pgs8wum6/matplotlib.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-pgs8wum6/matplotlib.egg-info/dependency_links.txt
writing namespace_packages to /tmp/pip-pip-egg-info-pgs8wum6/matplotlib.egg-info/namespace_packages.txt
writing requirements to /tmp/pip-pip-egg-info-pgs8wum6/matplotlib.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-pgs8wum6/matplotlib.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-pgs8wum6/matplotlib.egg-info/SOURCES.txt'
----------------------------------------
ERROR: Command errored out with exit status -4: python setup.py egg_info Check the logs for full command output.
from jetson_nano.
After removing this line:
sudo apt-get install -y libjpeg8-dev libjpeg-turbo8-dev libtiff-dev libpng-dev
Please only remove "libjpeg-turbo8-dev" while keep the rest of the line:
sudo apt-get install -y libjpeg8-dev libtiff-dev libpng-dev
ERROR: Command errored out with exit status -4:
I have not encountered this error before. I would try to update "setuptoools" or try to install an older version of "matplotlib" instead.
from jetson_nano.
Thank you for the reply.
But I still get the same error as at the beginning
I try to rebuild my nano and use the newest Jetpack version.
I would upgrade my JetPack to 4.4.1 with the sdk manager.
Then I should have no more problems to build openCv 3.4.
Or do I have to use the version you have linked above?
from jetson_nano.
For JetPack-4.4.1, I recommend using the stock opencv instead of building from source.
from jetson_nano.
Sorry for the late reply.
I have now used the following system on my nano:
NVIDIA Jetson Nano (Developer Kit Version)
L4T 32.4.4 [ JetPack UNKNOWN ]
Ubuntu 18.04.5 LTS
Kernel Version: 4.9.140-tegra
CUDA 10.2.89
CUDA Architecture: 5.3
OpenCV version: 3.4.8
OpenCV Cuda: YES
CUDNN: 8.0.0.180
TensorRT: 7.1.3.0
Vision Works: 1.6.0.501
VPI: 0.4.4
It seems to be working so far now. I still got the following error during the installation:
-- Installing: /usr/local/bin/opencv_version
-- Set runtime path of "/usr/local/bin/opencv_version" to "/usr/local/lib:/usr/local/cuda/lib64"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'
Here is the terminal output I get after building and installing.
General configuration for OpenCV 3.4.8 =====================================
Version control: unknown
Platform:
Timestamp: 2021-01-27T19:26:51Z
Host: Linux 4.9.140-tegra aarch64
CMake: 3.10.2
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/make
Configuration: RELEASE
CPU/HW features:
Baseline: NEON FP16
required: NEON
disabled: VFPV3
C/C++:
Built as dynamic libs?: YES
C++11: YES
C++ Compiler: /usr/bin/c++ (ver 7.5.0)
C++ flags (Release): -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: /usr/bin/cc
C flags (Release): -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release): -Wl,--gc-sections
Linker flags (Debug): -Wl,--gc-sections
ccache: NO
Precompiled headers: NO
Extra dependencies: m pthread /usr/lib/aarch64-linux-gnu/libGL.so /usr/lib/aarch64-linux-gnu/libGLU.so cudart_static -lpthread dl rt nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda/lib64 -L/usr/lib/aarch64-linux-gnu
3rdparty dependencies:
OpenCV modules:
To be built: calib3d core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev dnn features2d flann highgui imgcodecs imgproc ml objdetect photo shape stitching superres video videoio videostab
Disabled: world
Disabled by dependency: -
Unavailable: java js python2 python3 ts viz
Applications: apps
Documentation: NO
Non-free algorithms: NO
GUI:
QT: YES (ver 5.9.5)
QT OpenGL support: YES (Qt5::OpenGL 5.9.5)
GTK+: NO
OpenGL support: YES (/usr/lib/aarch64-linux-gnu/libGL.so /usr/lib/aarch64-linux-gnu/libGLU.so)
VTK support: NO
Media I/O:
ZLib: /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.11)
JPEG: /usr/lib/aarch64-linux-gnu/libjpeg.so (ver 80)
WEBP: build (ver encoder: 0x020e)
PNG: /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.6.34)
TIFF: /usr/lib/aarch64-linux-gnu/libtiff.so (ver 42 / 4.0.9)
JPEG 2000: build (ver 1.900.1)
OpenEXR: build (ver 2.3.0)
HDR: YES
SUNRASTER: YES
PXM: YES
Video I/O:
DC1394: YES (ver 2.2.5)
FFMPEG: YES
avcodec: YES (ver 57.107.100)
avformat: YES (ver 57.83.100)
avutil: YES (ver 55.78.100)
swscale: YES (ver 4.8.100)
avresample: NO
GStreamer: YES
base: YES (ver 1.14.5)
video: YES (ver 1.14.5)
app: YES (ver 1.14.5)
riff: YES (ver 1.14.5)
pbutils: YES (ver 1.14.5)
libv4l/libv4l2: 1.14.2 / 1.14.2
v4l/v4l2: linux/videodev2.h
Parallel framework: pthreads
Trace: YES (with Intel ITT)
Other third-party libraries:
Lapack: YES (/usr/lib/aarch64-linux-gnu/liblapack.so /usr/lib/aarch64-linux-gnu/libcblas.so /usr/lib/aarch64-linux-gnu/libatlas.so)
Eigen: YES (ver 3.3.4)
Custom HAL: YES (carotene (ver 0.0.1))
Protobuf: build (3.5.1)
NVIDIA CUDA: YES (ver 10.2, CUFFT CUBLAS FAST_MATH)
NVIDIA GPU arch: 53
NVIDIA PTX archs:
OpenCL: YES (no extra features)
Include path: /home/jetson/src/opencv-3.4.8/3rdparty/include/opencl/1.2
Link libraries: Dynamic load
Python 3:
Interpreter: /usr/bin/python3 (ver 3.6.9)
Libraries: NO
numpy: NO (Python3 wrappers can not be generated)
install path: -
Python (for build): /usr/bin/python2.7
Java:
ant: NO
JNI: NO
Java wrappers: NO
Java tests: NO
Install to: /usr/local
-----------------------------------------------------------------
I will now test the next few days whether everything works so far and then give a quick reply.
from jetson_nano.
I have now tested everything and so far everything works very well. Thanks again for your help.
from jetson_nano.
Related Issues (20)
- patch of tensorflow/opencv HOT 5
- Cannot build OpenCV-3.4.6 in Jetson Nano HOT 4
- time on install tensorflow 1.15 with jetpack v4.4 HOT 2
- not installed numpy on jetpack 4.4 on jetson nano2 HOT 2
- Could not find any cuda.h matching version '10.0' in any subdirectory HOT 4
- Did you try to install TF2.4 from source with GPU accel on Nano or NX? HOT 1
- keras_python_api_gen_compat_v2 failed HOT 12
- tensorflow 2.0.0 build error HOT 4
- Error installing protobuf-3.8.0.sh HOT 1
- Issues during installing TF 1.15 HOT 2
- hello, i installed protobuf using your script, but i come to an issue, please help HOT 1
- testing out demo 5 YOLOv4
- Latest Tensor Flow version
- jetpack-4.3 upgrade pip3 command not found HOT 2
- build whl tensorflow 1.12 and not tensorflow-gpu-1.12 HOT 1
- build tensorflow 1.15 HOT 1
- install opencv_3.4.8 on jetson nano HOT 3
- build tensorflow on jetson nano HOT 3
- Missing protobuf HOT 16
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 jetson_nano.