Re: Cannot compile mupdf
Marc Boxerman via Fink-beginners <[email protected]>
| Newsgroups | gmane.os.apple.fink.beginners |
|---|---|
| Message-ID | <[email protected]> |
I ran the command, which generated this error: clang: error: no such file or directory: 'source/fitz/context.c' clang: error: no input files Dan asked me to look at source/fitz/compress.d . There is no file named compress.d in that directory. There is a file named compress.c. Are these the headers we are looking for: #include "mupdf/fitz.h" #include "z-imp.h" #include <limits.h> Marc > On May 3, 2021, at 9:40 PM, Alexander Hansen <[email protected]> wrote: > > > >> On May 3, 2021, at 19:21, Marc Boxerman via Fink-beginners <[email protected]> wrote: >> >> The directory is where Alex indicated. >> Running make from within the directory produces the following output: >> >> CC build/release/source/fitz/compress.o >> source/fitz/compress.c:26:20: error: use of undeclared identifier 'z_const'; did you mean 'const'? >> stream.next_in = (z_const Bytef *)source; >> ^~~~~~~ >> const >> source/fitz/compress.c:26:20: error: expected expression >> 2 errors generated. >> make: *** [Makefile:108: build/release/source/fitz/compress.o] Error 1 >> >> I am not sure what command you want me to run manually. Make again? >> >> Marc > > Run the command just before the failure from your build output, but with -MMD replaced by -MD, i.e. > > flag-sort cc -ffunction-sections -fdata-sections -Wsign-compare -pipe -O2 -DNDEBUG -fomit-frame-pointer -Iinclude -MD -MP -o build/release/source/fitz/crypt-sha2.o -c source/fitz/crypt-sha2.c -Wall -Wdeclaration-after-statement -I/sw/include/freetype2 -I/sw/include -I/sw/include/harfbuzz -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include -I/sw/include -DSHARE_JPEG -I/sw/include -DHAVE_LCMS2MT -I/sw/include/openjpeg-2.1flag-sort cc -ffunction-sections -fdata-sections -Wsign-compare -pipe -O2 -DNDEBUG -fomit-frame-pointer -Iinclude -MD -MP -o build/release/source/fitz/crypt-sha2.o -c source/fitz/crypt-sha2.c -Wall -Wdeclaration-after-statement -I/sw/include/freetype2 -I/sw/include -I/sw/include/harfbuzz -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include -I/ sw/include -DSHARE_JPEG -I/sw/include -DHAVE_LCMS2MT -I/sw/include/openjpeg-2.1 _______________________________________________ Fink-beginners mailing list [email protected] List archive: https://sourceforge.net/p/fink/mailman/fink-users/ Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-beginners