Raspberry PI : error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 #947
-
Hi, Firstly when I ran "pip install PyMuPDF" I got the error bellow: After several unsuccessful tries and errors installing all sorts of packages when I ran "python setup.py install" from PyMuPDF-master I got a slightly different error: I did all the steps on the links bellow, but nothing worked. Appreciate any help on this. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 15 replies
-
There are fundamental differences in the install methods you used. When installing PyMuPDF you have two options:
Ad 1.Wheel refers to the extensions Ad 2.You can generate PyMuPDF from sources. This obviously requires a C compiler suitable for the desired target platform. In addition, you must download and generate MuPDF (Artifex Software Inc.) before generating PyMuPDF. Obviously, a lot can go wrong with this approach. You did not specify any details of the encountered errors. So there is no way to tell what really happened. But they all indicate, that the "source generation" alternative has been tried to execute. So what may be next steps:
I am currently developping additional wheels for ARM environments. Maybe there is a chance to make one for you. |
Beta Was this translation helpful? Give feedback.
-
Hi, pi@raspberrypi:~/dev/guidegf/sggen $
|
Beta Was this translation helpful? Give feedback.
-
These errors indicate, that MuPDF has not been previously installed. |
Beta Was this translation helpful? Give feedback.
-
Hi Jorj, I'm having trouble to install MuPDF. Below is the error I have when I run pi@pi:/gcc_all/mupdf $ make prefix=/usr/local install Would installing 64bits Raspian solve these issues? |
Beta Was this translation helpful? Give feedback.
-
Thank you. Would it be possible to include 32bit versions for Raspberry Pi OS? |
Beta Was this translation helpful? Give feedback.
Hi Jorj,
I'm having trouble to install MuPDF. Below is the error I have when I run
make prefix=/usr/local install
:pi@pi:/gcc_all/mupdf $ make prefix=/usr/local install
CC build/debug/pdf/pdf-pkcs7.o
source/pdf/pdf-pkcs7.c: In function ‘bsegs_read’:
source/pdf/pdf-pkcs7.c:30:39: error: dereferencing pointer to incomplete type ‘BIO’ {aka ‘struct bio_st’}
BIO_SEGS_CTX *ctx = (BIO_SEGS_CTX *)b->ptr;
^~
source/pdf/pdf-pkcs7.c: At top level:
source/pdf/pdf-pkcs7.c:107:1: error: variable ‘methods_bsegs’ has initializer but incomplete type
static BIO_METHOD methods_bsegs =
^~~~~~
source/pdf/pdf-pkcs7.c:109:2: warning: excess elements in struct initializer
0,"segment reader",
^
source/pdf/pdf-pkc…