Skip to content

hardsubx lacks a link directive to the tesseract library #1719

@apteryks

Description

@apteryks

Hi,

Using the current latest commit 81fdecd, the build fails with the configure flags --enable-ffmpeg, --enable-ocr and --enable-hardsubx:

gcc -std=gnu99 -Wno-write-strings -Wno-pointer-sign -D_FILE_OFFSET_BITS=64 -DVERSION_FILE_PRESENT -DFT2_BUILD_LIBRARY -DGPAC_DISABLE_VTT -DGPAC_DISABLE_OD_DUMP -DGPAC_DISABLE_REMOTERY -DNO_GZIP -O3 -s  -DGPAC_64_BITS -DENABLE_HARDSUBX -DENABLE_OCR -DPN3G_NO_CONFIG_H -DDISABLE_RUST -g -O2   -o ccextractor ../src/ccextractor-ccextractor.o ../src/thirdparty/libpng/ccextractor-png.o ../src/thirdparty/libpng/ccextractor-pngerror.o ../src/thirdparty/libpng/ccextractor-pngget.o ../src/thirdparty/libpng/ccextractor-pngmem.o ../src/thirdparty/libpng/ccextractor-pngpread.o ../src/thirdparty/libpng/ccextractor-pngread.o ../src/thirdparty/libpng/ccextractor-pngrio.o ../src/thirdparty/libpng/ccextractor-pngrtran.o ../src/thirdparty/libpng/ccextractor-pngrutil.o ../src/thirdparty/libpng/ccextractor-pngset.o ../src/thirdparty/libpng/ccextractor-pngtrans.o ../src/thirdparty/libpng/ccextractor-pngwio.o ../src/thirdparty/libpng/ccextractor-pngwrite.o ../src/thirdparty/libpng/ccextractor-pngwtran.o ../src/thirdparty/libpng/ccextractor-pngwutil.o ../src/lib_ccx/ccextractor-ccx_common_option.o ../src/lib_ccx/ccextractor-ccx_common_common.o ../src/lib_ccx/ccextractor-utility.o ../src/lib_ccx/ccextractor-activity.o ../src/lib_ccx/ccextractor-asf_functions.o ../src/lib_ccx/ccextractor-avc_functions.o ../src/lib_ccx/ccextractor-cc_bitstream.o ../src/lib_ccx/ccextractor-ccx_common_char_encoding.o ../src/lib_ccx/ccextractor-ccx_common_constants.o ../src/lib_ccx/ccextractor-ccx_common_timing.o ../src/lib_ccx/ccextractor-ccx_decoders_608.o ../src/lib_ccx/ccextractor-ccx_decoders_708.o ../src/lib_ccx/ccextractor-ccx_decoders_708_encoding.o ../src/lib_ccx/ccextractor-ccx_decoders_708_output.o ../src/lib_ccx/ccextractor-ccx_decoders_common.o ../src/lib_ccx/ccextractor-ccx_decoders_isdb.o ../src/lib_ccx/ccextractor-ccx_decoders_vbi.o ../src/lib_ccx/ccextractor-ccx_decoders_xds.o ../src/lib_ccx/ccextractor-ccx_demuxer.o ../src/lib_ccx/ccextractor-ccx_demuxer_mxf.o ../src/lib_ccx/ccextractor-ccx_dtvcc.o ../src/lib_ccx/ccextractor-ccx_encoders_common.o ../src/lib_ccx/ccextractor-ccx_encoders_curl.o ../src/lib_ccx/ccextractor-ccx_encoders_g608.o ../src/lib_ccx/ccextractor-ccx_encoders_helpers.o ../src/lib_ccx/ccextractor-ccx_encoders_mcc.o ../src/lib_ccx/ccextractor-ccx_encoders_sami.o ../src/lib_ccx/ccextractor-ccx_encoders_scc.o ../src/lib_ccx/ccextractor-ccx_encoders_smptett.o ../src/lib_ccx/ccextractor-ccx_encoders_splitbysentence.o ../src/lib_ccx/ccextractor-ccx_encoders_spupng.o ../src/lib_ccx/ccextractor-ccx_encoders_srt.o ../src/lib_ccx/ccextractor-ccx_encoders_ssa.o ../src/lib_ccx/ccextractor-ccx_encoders_transcript.o ../src/lib_ccx/ccextractor-ccx_encoders_webvtt.o ../src/lib_ccx/ccextractor-ccx_encoders_xds.o ../src/lib_ccx/ccextractor-ccx_gxf.o ../src/lib_ccx/ccextractor-ccx_share.o ../src/lib_ccx/ccextractor-ccx_sub_entry_message.pb-c.o ../src/lib_ccx/ccextractor-configuration.o ../src/lib_ccx/ccextractor-dvb_subtitle_decoder.o ../src/lib_ccx/ccextractor-dvd_subtitle_decoder.o ../src/lib_ccx/ccextractor-es_functions.o ../src/lib_ccx/ccextractor-es_userdata.o ../src/lib_ccx/ccextractor-ffmpeg_intgr.o ../src/lib_ccx/ccextractor-file_functions.o ../src/lib_ccx/ccextractor-general_loop.o ../src/lib_ccx/ccextractor-hardsubx.o ../src/lib_ccx/ccextractor-hardsubx_classifier.o ../src/lib_ccx/ccextractor-hardsubx_decoder.o ../src/lib_ccx/ccextractor-hardsubx_imgops.o ../src/lib_ccx/ccextractor-hardsubx_utility.o ../src/lib_ccx/ccextractor-lib_ccx.o ../src/lib_ccx/ccextractor-matroska.o ../src/lib_ccx/ccextractor-mp4.o ../src/lib_ccx/ccextractor-myth.o ../src/lib_ccx/ccextractor-networking.o ../src/lib_ccx/ccextractor-ocr.o ../src/lib_ccx/ccextractor-output.o ../src/lib_ccx/ccextractor-params.o ../src/lib_ccx/ccextractor-params_dump.o ../src/lib_ccx/ccextractor-sequencing.o ../src/lib_ccx/ccextractor-stream_functions.o ../src/lib_ccx/ccextractor-telxcc.o ../src/lib_ccx/ccextractor-ts_functions.o ../src/lib_ccx/ccextractor-ts_info.o ../src/lib_ccx/ccextractor-ts_tables.o ../src/lib_ccx/ccextractor-ts_tables_epg.o ../src/lib_ccx/ccextractor-wtv_functions.o ../src/thirdparty/zlib/ccextractor-adler32.o ../src/thirdparty/zlib/ccextractor-compress.o ../src/thirdparty/zlib/ccextractor-crc32.o ../src/thirdparty/zlib/ccextractor-deflate.o ../src/thirdparty/zlib/ccextractor-gzclose.o ../src/thirdparty/zlib/ccextractor-gzlib.o ../src/thirdparty/zlib/ccextractor-gzread.o ../src/thirdparty/zlib/ccextractor-gzwrite.o ../src/thirdparty/zlib/ccextractor-infback.o ../src/thirdparty/zlib/ccextractor-inffast.o ../src/thirdparty/zlib/ccextractor-inflate.o ../src/thirdparty/zlib/ccextractor-inftrees.o ../src/thirdparty/zlib/ccextractor-trees.o ../src/thirdparty/zlib/ccextractor-uncompr.o ../src/thirdparty/zlib/ccextractor-zutil.o ../src/thirdparty/utf8proc/ccextractor-utf8proc.o ../src/thirdparty/lib_hash/ccextractor-sha2.o ../src/thirdparty/protobuf-c/ccextractor-protobuf-c.o ../src/lib_ccx/zvbi/ccextractor-bit_slicer.o ../src/lib_ccx/zvbi/ccextractor-decoder.o ../src/lib_ccx/zvbi/ccextractor-raw_decoder.o ../src/lib_ccx/zvbi/ccextractor-sampling_par.o ../src/thirdparty/freetype/autofit/ccextractor-autofit.o ../src/thirdparty/freetype/base/ccextractor-ftbase.o ../src/thirdparty/freetype/base/ccextractor-ftbbox.o ../src/thirdparty/freetype/base/ccextractor-ftbdf.o ../src/thirdparty/freetype/base/ccextractor-ftbitmap.o ../src/thirdparty/freetype/base/ccextractor-ftcid.o ../src/thirdparty/freetype/base/ccextractor-ftfntfmt.o ../src/thirdparty/freetype/base/ccextractor-ftfstype.o ../src/thirdparty/freetype/base/ccextractor-ftgasp.o ../src/thirdparty/freetype/base/ccextractor-ftglyph.o ../src/thirdparty/freetype/base/ccextractor-ftgxval.o ../src/thirdparty/freetype/base/ccextractor-ftinit.o ../src/thirdparty/freetype/base/ccextractor-ftlcdfil.o ../src/thirdparty/freetype/base/ccextractor-ftmm.o ../src/thirdparty/freetype/base/ccextractor-ftotval.o ../src/thirdparty/freetype/base/ccextractor-ftpatent.o ../src/thirdparty/freetype/base/ccextractor-ftpfr.o ../src/thirdparty/freetype/base/ccextractor-ftstroke.o ../src/thirdparty/freetype/base/ccextractor-ftsynth.o ../src/thirdparty/freetype/base/ccextractor-ftsystem.o ../src/thirdparty/freetype/base/ccextractor-fttype1.o ../src/thirdparty/freetype/base/ccextractor-ftwinfnt.o ../src/thirdparty/freetype/bdf/ccextractor-bdf.o ../src/thirdparty/freetype/bzip2/ccextractor-ftbzip2.o ../src/thirdparty/freetype/cache/ccextractor-ftcache.o ../src/thirdparty/freetype/cff/ccextractor-cff.o ../src/thirdparty/freetype/cid/ccextractor-type1cid.o ../src/thirdparty/freetype/gzip/ccextractor-ftgzip.o ../src/thirdparty/freetype/lzw/ccextractor-ftlzw.o ../src/thirdparty/freetype/pcf/ccextractor-pcf.o ../src/thirdparty/freetype/pfr/ccextractor-pfr.o ../src/thirdparty/freetype/psaux/ccextractor-psaux.o ../src/thirdparty/freetype/pshinter/ccextractor-pshinter.o ../src/thirdparty/freetype/psnames/ccextractor-psnames.o ../src/thirdparty/freetype/raster/ccextractor-raster.o ../src/thirdparty/freetype/sfnt/ccextractor-sfnt.o ../src/thirdparty/freetype/smooth/ccextractor-smooth.o ../src/thirdparty/freetype/truetype/ccextractor-truetype.o ../src/thirdparty/freetype/type1/ccextractor-type1.o ../src/thirdparty/freetype/type42/ccextractor-type42.o ../src/thirdparty/freetype/winfonts/ccextractor-winfnt.o  -lm -lpthread -ldl -lgpac  -L/gnu/store/awps99vrf8jnd6wanvq2yw2k2jjf1bw3-ffmpeg-6.1.1/lib -lavcodec -L/gnu/store/awps99vrf8jnd6wanvq2yw2k2jjf1bw3-ffmpeg-6.1.1/lib -lavformat  -L/gnu/store/awps99vrf8jnd6wanvq2yw2k2jjf1bw3-ffmpeg-6.1.1/lib -lavutil -L/gnu/store/awps99vrf8jnd6wanvq2yw2k2jjf1bw3-ffmpeg-6.1.1/lib -lswscale  -L/gnu/store/qr5snmjnyg6zj039hbv4y8vvpw62b420-leptonica-1.84.1/lib -lleptonica  -lm 
ld: ../src/lib_ccx/ccextractor-hardsubx.o: in function `_init_hardsubx':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx.c:232:(.text+0x5f2): undefined reference to `TessBaseAPICreate'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx.c:261:(.text+0x67c): undefined reference to `TessVersion'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx.c:267:(.text+0x6f5): undefined reference to `TessBaseAPIInit4'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx.c:261:(.text+0x7f3): undefined reference to `TessVersion'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx.c:274:(.text+0x832): undefined reference to `TessBaseAPIInit4'
ld: ../src/lib_ccx/ccextractor-hardsubx.o: in function `_dinit_hardsubx':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx.c:321:(.text+0x8a4): undefined reference to `TessBaseAPIEnd'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx.c:322:(.text+0x8b0): undefined reference to `TessBaseAPIDelete'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx.c:321:(.text+0x944): undefined reference to `TessBaseAPIEnd'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx.c:322:(.text+0x950): undefined reference to `TessBaseAPIDelete'
ld: ../src/lib_ccx/ccextractor-hardsubx_classifier.o: in function `get_ocr_text_simple':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:17:(.text+0xc): undefined reference to `TessBaseAPISetImage2'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:18:(.text+0x1a): undefined reference to `TessBaseAPIRecognize'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:24:(.text+0x2a): undefined reference to `TessBaseAPIGetUTF8Text'
ld: ../src/lib_ccx/ccextractor-hardsubx_classifier.o: in function `get_ocr_text_wordwise':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:35:(.text+0x89): undefined reference to `TessBaseAPISetImage2'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:36:(.text+0x97): undefined reference to `TessBaseAPIRecognize'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:42:(.text+0xb1): undefined reference to `TessBaseAPIGetIterator'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:110:(.text+0x120): undefined reference to `TessPageIteratorNext'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:52:(.text+0x135): undefined reference to `TessResultIteratorGetUTF8Text'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:56:(.text+0x155): undefined reference to `TessDeleteText'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:89:(.text+0x1a0): undefined reference to `TessResultIteratorWordFontAttributes'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:119:(.text+0x21a): undefined reference to `TessResultIteratorDelete'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:63:(.text+0x34e): undefined reference to `TessResultIteratorWordFontAttributes'
ld: ../src/lib_ccx/ccextractor-hardsubx_classifier.o: in function `get_ocr_text_letterwise':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:128:(.text+0x415): undefined reference to `TessBaseAPISetImage2'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:129:(.text+0x423): undefined reference to `TessBaseAPIRecognize'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:135:(.text+0x439): undefined reference to `TessBaseAPIGetIterator'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:143:(.text+0x459): undefined reference to `TessResultIteratorGetUTF8Text'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:147:(.text+0x479): undefined reference to `TessDeleteText'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:156:(.text+0x4c1): undefined reference to `TessPageIteratorNext'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:159:(.text+0x4cd): undefined reference to `TessResultIteratorDelete'
ld: ../src/lib_ccx/ccextractor-hardsubx_classifier.o: in function `get_ocr_text_simple_threshold':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:168:(.text+0x524): undefined reference to `TessBaseAPISetImage2'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:169:(.text+0x532): undefined reference to `TessBaseAPIRecognize'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:175:(.text+0x542): undefined reference to `TessBaseAPIGetUTF8Text'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:180:(.text+0x556): undefined reference to `TessBaseAPIMeanTextConf'
ld: ../src/lib_ccx/ccextractor-hardsubx_classifier.o: in function `get_ocr_text_wordwise_threshold':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:194:(.text+0x5cf): undefined reference to `TessBaseAPISetImage2'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:195:(.text+0x5dd): undefined reference to `TessBaseAPIRecognize'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:201:(.text+0x5f4): undefined reference to `TessBaseAPIGetIterator'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:213:(.text+0x629): undefined reference to `TessResultIteratorGetUTF8Text'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:217:(.text+0x651): undefined reference to `TessDeleteText'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:218:(.text+0x65e): undefined reference to `TessResultIteratorConfidence'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:276:(.text+0x6e6): undefined reference to `TessPageIteratorNext'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:289:(.text+0x73a): undefined reference to `TessResultIteratorDelete'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:255:(.text+0x77e): undefined reference to `TessResultIteratorWordFontAttributes'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:229:(.text+0x85e): undefined reference to `TessResultIteratorWordFontAttributes'
ld: ../src/lib_ccx/ccextractor-hardsubx_classifier.o: in function `get_ocr_text_letterwise_threshold':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:298:(.text+0x9df): undefined reference to `TessBaseAPISetImage2'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:299:(.text+0x9ed): undefined reference to `TessBaseAPIRecognize'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:305:(.text+0xa04): undefined reference to `TessBaseAPIGetIterator'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:316:(.text+0xa29): undefined reference to `TessResultIteratorGetUTF8Text'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:320:(.text+0xa49): undefined reference to `TessDeleteText'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:321:(.text+0xa56): undefined reference to `TessResultIteratorConfidence'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:334:(.text+0xabd): undefined reference to `TessPageIteratorNext'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/hardsubx_classifier.c:341:(.text+0xafa): undefined reference to `TessResultIteratorDelete'
ld: ../src/lib_ccx/ccextractor-ocr.o: in function `delete_ocr':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:82:(.text+0x121): undefined reference to `TessBaseAPIEnd'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:83:(.text+0x12a): undefined reference to `TessBaseAPIDelete'
ld: ../src/lib_ccx/ccextractor-ocr.o: in function `init_ocr':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:162:(.text+0x320): undefined reference to `TessBaseAPICreate'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:163:(.text+0x32b): undefined reference to `TessVersion'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:169:(.text+0x3a8): undefined reference to `TessBaseAPIInit4'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:181:(.text+0x3c1): undefined reference to `TessBaseAPISetPageSegMode'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:163:(.text+0x3fb): undefined reference to `TessVersion'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:176:(.text+0x443): undefined reference to `TessBaseAPIInit4'
ld: ../src/lib_ccx/ccextractor-ocr.o: in function `delete_ocr':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:82:(.text+0x4e7): undefined reference to `TessBaseAPIEnd'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:83:(.text+0x4ef): undefined reference to `TessBaseAPIDelete'
ld: ../src/lib_ccx/ccextractor-ocr.o: in function `ocr_bitmap':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:335:(.text+0x81a): undefined reference to `TessBaseAPISetImage2'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:336:(.text+0x824): undefined reference to `TessBaseAPIRecognize'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:352:(.text+0x839): undefined reference to `TessBaseAPIGetUTF8Text'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:358:(.text+0x85d): undefined reference to `TessDeleteText'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:369:(.text+0xb17): undefined reference to `TessBaseAPISetImage2'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:370:(.text+0xb21): undefined reference to `TessBaseAPIRecognize'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:685:(.text+0xb46): undefined reference to `TessResultIteratorDelete'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:377:(.text+0xb58): undefined reference to `TessBaseAPIGetIterator'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:583:(.text+0xb9b): undefined reference to `TessPageIteratorNext'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:384:(.text+0xbb5): undefined reference to `TessResultIteratorGetUTF8Text'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:387:(.text+0xbe0): undefined reference to `TessPageIteratorBoundingBox'
ld: /tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/ocr.c:582:(.text+0x1194): undefined reference to `TessDeleteText'
ld: ../src/lib_ccx/ccextractor-params.o: in function `version':
/tmp/guix-build-ccextractor-0.94-0.81fdecd.drv-0/source/linux/../src/lib_ccx/params.c:1080:(.text+0x29a2): undefined reference to `TessVersion'
collect2: error: ld returned 1 exit status

It seems a link directive to the tesseract shared library is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions