There’s some posts already from last year, but they don’t work for me.
I’m trying to use scikit-image for a segmentation task, on the Jetson NX
So I’m using the L4T docker images, and trying things inside the docker as root.
Among the issues I’ve encountered so far:
Illegal instruction (core dumped) on import for numpy 1.19.5 on ARM64 · Issue #18131 · numpy/numpy · GitHub - Need to use Numpy 1.19.4 to build matplotlib successfully
Need to change system locale to en_US.UTF-8
Now I’m getting the issue at the bottom of this post Install scikit-image - #14 by AastaLLL
imagecodecs/_jpeg2k.c:603:10: fatal error: openjpeg.h: No such file or directory
#include "openjpeg.h"
^~~~~~~~~~~~
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for imagecodecs
I need the imagecodecs for the skimage. I tried with imagecodecs-lite, but that didn’t work.
Has anyone been able to build a recent skimage ?
Thanks
Hi,
The steps is similar.
Please check the following for JetPack 4.5.1:
1. Prerequisite
$ sudo apt-get install libblosc-dev libbrotli-dev libbz2-dev libgif-dev libopenjp2-7-dev
$ sudo apt-get install libgif-dev liblcms2-dev libjpeg-dev libjxr-dev liblz4-dev liblzma-dev libpng-dev libsnappy-dev libwebp-dev libzopfli-dev libzstd-dev
2. Tiff
$ wget https://download.osgeo.org/libtiff/tiff-4.1.0.tar.gz
$ tar -xzvf tiff-4.1.0.tar.gz
$ cd tiff-4.1.0/
$ ./configure
$ make
$ sudo make install
3. Imgecodecs
$ sudo pip3 install imagecodecs
Thanks.
Hi, thanks for the reply.
I’ve tried that. It gives the same error.
I’m using nvcr.io/nvidia/l4t-ml:r32.5.0-py3
Here’s my history, that leads to the error:
4 apt-get update
5 apt-get install python3-pip
6 pip3 install -U pip
7 ls
8 wget https://github.com/scipy/scipy/releases/download/v1.3.3/scipy-1.3.3.tar.gz
9 tar -xzvf scipy-1.3.3.tar.gz scipy-1.3.3
10 cd scipy-1.3.3
11 python3 setup.py install --user
12 apt-get install libblosc-dev libbrotli-dev libbz2-dev libgif-dev libopenjp2-7-dev
13 apt-get install libgif-dev liblcms2-dev libjpeg-dev libjxr-dev liblz4-dev liblzma-dev libpng-dev libsnappy-dev libwebp-dev libzopfli-dev libzstd-dev
14 cd …
15 ls
16 wget https://download.osgeo.org/libtiff/tiff-4.1.0.tar.gz
17 tar -xzvf tiff-4.1.0.tar.gz
18 cd tiff-4.1.0
19 ./configure
20 make
21 make install
22 pip3 install imagecodecs