-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from mariux64/addlibtiff
going static
- Loading branch information
Showing
18 changed files
with
418 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
Error in pixReadMemTiff: function not present | ||
Error in pixReadMem: tiff: no pix returned | ||
Error in pixaGenerateFontFromString: pix not made | ||
Error in bmfCreate: font pixa not made | ||
|
||
pixReadMemTiff ist aus leptonica | ||
|
||
leptonica : build/leptonica-1.85.0/src/tiffio.c : pixReadMemTiff(const l_uint8 *cdata | ||
|
||
"function not present" kommt aus build/leptonica-1.85.0/src/tiffiostub.c | ||
|
||
tiffiostub.c wird eingebunden, anstatt tiffio.c wenn HAVE_LIBJPEG nicht defniert ist | ||
|
||
52: #if !HAVE_LIBTIFF || !HAVE_LIBJPEG /* defined in environ.h */ | ||
|
||
config.log @ leptonica sagt: finde pkg-config libtiff-4 nicht | ||
"No package 'libtiff-4' found" | ||
|
||
configure:14837: checking for libtiff-4 | ||
configure:14844: $PKG_CONFIG --exists --print-errors "libtiff-4" | ||
Package libtiff-4 was not found in the pkg-config search path. | ||
|
||
- wir bauen jetzt leptonica so lange, bis der libtiff findet | ||
+ is da : ~/2135-debug/tiff-4.7.0/lib/pkgconfig/libtiff-4.pc | ||
+ das profile von tiff- setzt auch den PKG_CONFIG_PATH: | ||
paperless@server:~/git/paperless-baremetal$ cat ~/2135-debug/tiff-4.7.0/profile | ||
PATH=/home/paperless/2135-debug/tiff-4.7.0/bin:$PATH | ||
PKG_CONFIG_PATH=/home/paperless/2135-debug/tiff-4.7.0/lib/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH:-} | ||
LD_LIBRARY_PATH=/home/paperless/2135-debug/tiff-4.7.0/lib${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH:-} | ||
|
||
+ das profile von tiff wird in leptonica gesourced | ||
|
||
+ exportiere jetzt mal PKG_CONFIG_PATH | ||
|
||
- er meckert er würde jetzt libjpeg.so.7 nicht finden. | ||
"/bin/ld: ../src/.libs/libleptonica.so: undefined reference to `jpeg_start_decompress@LIBJPEG_7.0'" | ||
+ die gibts aber: | ||
paperless@server:~/git/paperless-baremetal$ find ~/2135-debug/ | grep jpeg.so | ||
/home/paperless/2135-debug/libjpeg-turbo-3.1.0/lib/libjpeg.so.7.4.0 | ||
+ Im PKG_CONFIG_PATH steht sie auch drin | ||
+ config.log auch alles OK: | ||
JPEG_CFLAGS='-I/home/paperless/2135-debug/libjpeg-turbo-3.1.0/include' | ||
JPEG_LIBS='-L/home/paperless/2135-debug/libjpeg-turbo-3.1.0/lib -ljpeg' | ||
PKG_CONFIG_PATH='/home/paperless/2135-debug/imagemagick-7.1.1-41/lib/pkgconfig:/home/paperless/2135-debug/tiff-4.7.0/lib/pkgconfig:/home/paperless/2135-debug/libjpeg-turbo-3.1.0/lib/pkgconfig' | ||
#define HAVE_LIBJPEG 1 | ||
- diffs zwischen 'notiff und nojepg, | ||
+ config.log: sollte gehen, kennt HAVE_LIBTIFF und HAVE_LIBJPEG, alles korrekt | ||
+ config_auto.h: auch ok | ||
+ config.status: auch ok | ||
+ Makefile: auch ok | ||
eventuell bindet der grundsätzlich die JPEG_CFLAGS nicht ein ? | ||
ich find nix | ||
mal ab hier mit 1.84.1 ? Nope. | ||
|
||
die libs stimmen auch...: | ||
+ nm ./libjpegturbo-3.1.0/lib/libjpeg.so.7.4.0 | grep jpeg_calc_output_dimensions | ||
000000000004ace0 T jpeg_calc_output_dimensions | ||
symbol ist in text (code) section (T). | ||
nm ./leptonica-1.85.0/lib/libleptonica.so.6.0.0 | grep jpeg_calc_output_dimensions | ||
U jpeg_calc_output_dimensions@LIBJPEG_7.0 | ||
undefined, also extern (U) | ||
nm ./libjpegturbo-3.1.0/bin/djpeg | grep jpeg_calc_output_dimensions | ||
U jpeg_calc_output_dimensions@LIBJPEG_7.0 | ||
ldd ./libjpegturbo-3.1.0/bin/djpeg | ||
linux-vdso.so.1 (0x00007ffda8d52000) | ||
libjpeg.so.7 => /home/paperless/2135-debug/libjpegturbo-3.1.0/lib/libjpeg.so.7 (0x00007f61f9078000) | ||
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f61f8e00000) | ||
/lib64/ld-linux-x86-64.so.2 (0x00007f61f914a000) | ||
versuchen wir mal static libjpeg | ||
+ leptonica baut durch | ||
- tesseract failed: | ||
/bin/ld: /home/paperless/2135-debug/leptonica-1.85.0/lib/libleptonica.a(writefile.o): warning: relocation against `NumImageFileFormatExtensions' in read-only section `.text' | ||
/bin/ld: /home/paperless/2135-debug/leptonica-1.85.0/lib/libleptonica.a(colorspace.o): relocation R_X86_64_PC32 against symbol `LeptMsgSeverity' can not be used when making a shared object; recompile with -fPIC | ||
/bin/ld: final link failed: bad value | ||
collect2: error: ld returned 1 exit status | ||
- --with-pic bei leptonica ... | ||
... hmmm... ich glaube ich bin wieder an anfang.... | ||
|
||
+ ./manage.py migrate | ||
SystemCheckError: System check identified some issues: | ||
|
||
ERRORS: | ||
?: The selected ocr language deu is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE. | ||
?: The selected ocr language eng is not installed. Paperless cannot OCR your documents without it. Please fix PAPERLESS_OCR_LANGUAGE. | ||
|
||
- ./tesseract-5.5.0/bin/tesseract: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory | ||
|
||
- clean build auf 2.13.5.1 | ||
- jbig2enc failed | ||
checking for findFileFormatStream in -lleptonica... no | ||
Error! Leptonica not detected. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.