[BUG] CMake build system doesn't add tesseract's include directory (non-FHS system) #751

Closed
opened 2026-01-29 16:52:44 +00:00 by claunia · 4 comments
Owner

Originally created by @apteryks on GitHub (Mar 17, 2023).

Hi,

When build ccextractor on GNU Guix, which is not a file-hierarchy standard (FHS) system, the build system doesn't add the Tesseract include directory, which causes the compilation to fail like in the output reported below.

It seems the build system should also add the tesseract subdirectory under tesseract's include prefix to the include directories:

[...]
In file included from /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.h:10,
                 from /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.c:2:
/gnu/store/v8mc5l62jmq0dx8qgrjjqxrnd1pv2kmr-ffmpeg-3.4.11/include/libavformat/avformat.h:893:21: note: declared here
  893 |     AVCodecContext *codec;
      |                     ^~~~~
/tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.c:48:2: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
   48 |  ctx->codec_ctx = ctx->format_ctx->streams[ctx->video_stream_id]->codec;
      |  ^~~
In file included from /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.h:10,
                 from /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.c:2:
/gnu/store/v8mc5l62jmq0dx8qgrjjqxrnd1pv2kmr-ffmpeg-3.4.11/include/libavformat/avformat.h:893:21: note: declared here
  893 |     AVCodecContext *codec;
      |                     ^~~~~
/tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.c:118:1: warning: control reaches end of non-void function [-Wreturn-type]
  118 | }
      | ^
[ 35%] Building C object lib_ccx/CMakeFiles/ccx.dir/hardsubx_classifier.c.o
cd /tmp/guix-build-ccextractor-0.88.drv-0/source/build/lib_ccx && /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/gcc -DFT2_BUILD_LIBRARY -DGPAC_64_BITS -DGPAC_DISABLE_OD_DUMP -DGPAC_DISABLE_VTT -DVERSION_FILE_PRESENT -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/utf8proc -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/gpacmp4 -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/protobuf-c -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/zvbi -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_hash -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/wrappers -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/libpng -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/zlib -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/freetype/include -I/gnu/store/bm52xpy338afmdkz3k4k5w3zw2j30z15-leptonica-1.80.0/include/leptonica -Wall -g -std=gnu99 -DENABLE_FFMPEG -DENABLE_HARDSUBX -DENABLE_OCR -DENABLE_SHARING -DENABLE_HARDSUBX -DGPAC_CONFIG_LINUX -O2 -g -DNDEBUG -MD -MT lib_ccx/CMakeFiles/ccx.dir/hardsubx_classifier.c.o -MF CMakeFiles/ccx.dir/hardsubx_classifier.c.o.d -o CMakeFiles/ccx.dir/hardsubx_classifier.c.o -c /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx_classifier.c
[ 36%] Building C object lib_ccx/CMakeFiles/ccx.dir/hardsubx_decoder.c.o
cd /tmp/guix-build-ccextractor-0.88.drv-0/source/build/lib_ccx && /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/gcc -DFT2_BUILD_LIBRARY -DGPAC_64_BITS -DGPAC_DISABLE_OD_DUMP -DGPAC_DISABLE_VTT -DVERSION_FILE_PRESENT -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/utf8proc -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/gpacmp4 -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/protobuf-c -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/zvbi -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_hash -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/wrappers -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/libpng -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/zlib -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/freetype/include -I/gnu/store/bm52xpy338afmdkz3k4k5w3zw2j30z15-leptonica-1.80.0/include/leptonica -Wall -g -std=gnu99 -DENABLE_FFMPEG -DENABLE_HARDSUBX -DENABLE_OCR -DENABLE_SHARING -DENABLE_HARDSUBX -DGPAC_CONFIG_LINUX -O2 -g -DNDEBUG -MD -MT lib_ccx/CMakeFiles/ccx.dir/hardsubx_decoder.c.o -MF CMakeFiles/ccx.dir/hardsubx_decoder.c.o.d -o CMakeFiles/ccx.dir/hardsubx_decoder.c.o -c /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx_decoder.c
/tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx_decoder.c:12:10: fatal error: capi.h: No such file or directory
   12 | #include "capi.h"
      |          ^~~~~~~~
compilation terminated.
make[2]: *** [lib_ccx/CMakeFiles/ccx.dir/build.make:1255: lib_ccx/CMakeFiles/ccx.dir/hardsubx_decoder.c.o] Error 1
make[2]: Leaving directory '/tmp/guix-build-ccextractor-0.88.drv-0/source/build'
make[1]: *** [CMakeFiles/Makefile2:129: lib_ccx/CMakeFiles/ccx.dir/all] Error 2
make[1]: Leaving directory '/tmp/guix-build-ccextractor-0.88.drv-0/source/build'
make: *** [Makefile:139: all] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "1") exit-status: 2 term-signal: #f stop-signal: #f> 
phase `build' failed after 46.0 seconds
command "make" "-j" "1" failed with status 2
builder for `/gnu/store/rq7pa3r609s88flyrwrz23cp1irq6fy2-ccextractor-0.88.drv' failed with exit code 1
build of /gnu/store/rq7pa3r609s88flyrwrz23cp1irq6fy2-ccextractor-0.88.drv failed
View build log at '/var/log/guix/drvs/rq/7pa3r609s88flyrwrz23cp1irq6fy2-ccextractor-0.88.drv'.
guix build: error: build of `/gnu/store/rq7pa3r609s88flyrwrz23cp1irq6fy2-ccextractor-0.88.drv' failed

Here's the pkg-config output for the tesseract library (here version 5) and the actual file layout:

$ pkg-config --variable=includedir tesseract
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include
maxim@hurd ~/src/guix-master [env]$ find /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/export.h
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/ocrclass.h
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/osdetect.h
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/version.h
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/unichar.h
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/baseapi.h
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/capi.h
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/pageiterator.h
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/publictypes.h
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/ltrresultiterator.h
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/resultiterator.h
/gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/renderer.h

CCExtractor version: 0.88 to 0.94 (CMake build)

Necessary information

  • Is this a regression (i.e. did it work before)? I think it did (with Autotools vs CMake)
  • What platform did you use? GNU/Linux
  • What were the used arguments? N/A.

Thanks!

Originally created by @apteryks on GitHub (Mar 17, 2023). Hi, When build ccextractor on GNU Guix, which is not a file-hierarchy standard (FHS) system, the build system doesn't add the Tesseract include directory, which causes the compilation to fail like in the output reported below. It seems the build system should also add the `tesseract` subdirectory under tesseract's `include` prefix to the include directories: ``` [...] In file included from /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.h:10, from /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.c:2: /gnu/store/v8mc5l62jmq0dx8qgrjjqxrnd1pv2kmr-ffmpeg-3.4.11/include/libavformat/avformat.h:893:21: note: declared here 893 | AVCodecContext *codec; | ^~~~~ /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.c:48:2: warning: ‘codec’ is deprecated [-Wdeprecated-declarations] 48 | ctx->codec_ctx = ctx->format_ctx->streams[ctx->video_stream_id]->codec; | ^~~ In file included from /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.h:10, from /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.c:2: /gnu/store/v8mc5l62jmq0dx8qgrjjqxrnd1pv2kmr-ffmpeg-3.4.11/include/libavformat/avformat.h:893:21: note: declared here 893 | AVCodecContext *codec; | ^~~~~ /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx.c:118:1: warning: control reaches end of non-void function [-Wreturn-type] 118 | } | ^ [ 35%] Building C object lib_ccx/CMakeFiles/ccx.dir/hardsubx_classifier.c.o cd /tmp/guix-build-ccextractor-0.88.drv-0/source/build/lib_ccx && /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/gcc -DFT2_BUILD_LIBRARY -DGPAC_64_BITS -DGPAC_DISABLE_OD_DUMP -DGPAC_DISABLE_VTT -DVERSION_FILE_PRESENT -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/utf8proc -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/gpacmp4 -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/protobuf-c -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/zvbi -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_hash -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/wrappers -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/libpng -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/zlib -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/freetype/include -I/gnu/store/bm52xpy338afmdkz3k4k5w3zw2j30z15-leptonica-1.80.0/include/leptonica -Wall -g -std=gnu99 -DENABLE_FFMPEG -DENABLE_HARDSUBX -DENABLE_OCR -DENABLE_SHARING -DENABLE_HARDSUBX -DGPAC_CONFIG_LINUX -O2 -g -DNDEBUG -MD -MT lib_ccx/CMakeFiles/ccx.dir/hardsubx_classifier.c.o -MF CMakeFiles/ccx.dir/hardsubx_classifier.c.o.d -o CMakeFiles/ccx.dir/hardsubx_classifier.c.o -c /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx_classifier.c [ 36%] Building C object lib_ccx/CMakeFiles/ccx.dir/hardsubx_decoder.c.o cd /tmp/guix-build-ccextractor-0.88.drv-0/source/build/lib_ccx && /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/gcc -DFT2_BUILD_LIBRARY -DGPAC_64_BITS -DGPAC_DISABLE_OD_DUMP -DGPAC_DISABLE_VTT -DVERSION_FILE_PRESENT -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/utf8proc -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/gpacmp4 -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/protobuf-c -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/zvbi -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_hash -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/wrappers -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/libpng -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/zlib -I/tmp/guix-build-ccextractor-0.88.drv-0/source/src/freetype/include -I/gnu/store/bm52xpy338afmdkz3k4k5w3zw2j30z15-leptonica-1.80.0/include/leptonica -Wall -g -std=gnu99 -DENABLE_FFMPEG -DENABLE_HARDSUBX -DENABLE_OCR -DENABLE_SHARING -DENABLE_HARDSUBX -DGPAC_CONFIG_LINUX -O2 -g -DNDEBUG -MD -MT lib_ccx/CMakeFiles/ccx.dir/hardsubx_decoder.c.o -MF CMakeFiles/ccx.dir/hardsubx_decoder.c.o.d -o CMakeFiles/ccx.dir/hardsubx_decoder.c.o -c /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx_decoder.c /tmp/guix-build-ccextractor-0.88.drv-0/source/src/lib_ccx/hardsubx_decoder.c:12:10: fatal error: capi.h: No such file or directory 12 | #include "capi.h" | ^~~~~~~~ compilation terminated. make[2]: *** [lib_ccx/CMakeFiles/ccx.dir/build.make:1255: lib_ccx/CMakeFiles/ccx.dir/hardsubx_decoder.c.o] Error 1 make[2]: Leaving directory '/tmp/guix-build-ccextractor-0.88.drv-0/source/build' make[1]: *** [CMakeFiles/Makefile2:129: lib_ccx/CMakeFiles/ccx.dir/all] Error 2 make[1]: Leaving directory '/tmp/guix-build-ccextractor-0.88.drv-0/source/build' make: *** [Makefile:139: all] Error 2 error: in phase 'build': uncaught exception: %exception #<&invoke-error program: "make" arguments: ("-j" "1") exit-status: 2 term-signal: #f stop-signal: #f> phase `build' failed after 46.0 seconds command "make" "-j" "1" failed with status 2 builder for `/gnu/store/rq7pa3r609s88flyrwrz23cp1irq6fy2-ccextractor-0.88.drv' failed with exit code 1 build of /gnu/store/rq7pa3r609s88flyrwrz23cp1irq6fy2-ccextractor-0.88.drv failed View build log at '/var/log/guix/drvs/rq/7pa3r609s88flyrwrz23cp1irq6fy2-ccextractor-0.88.drv'. guix build: error: build of `/gnu/store/rq7pa3r609s88flyrwrz23cp1irq6fy2-ccextractor-0.88.drv' failed ``` Here's the pkg-config output for the tesseract library (here version 5) and the actual file layout: ``` $ pkg-config --variable=includedir tesseract /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include maxim@hurd ~/src/guix-master [env]$ find /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/export.h /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/ocrclass.h /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/osdetect.h /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/version.h /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/unichar.h /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/baseapi.h /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/capi.h /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/pageiterator.h /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/publictypes.h /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/ltrresultiterator.h /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/resultiterator.h /gnu/store/sm32way40wph3j9xrv3vlzhzzllna782-tesseract-ocr-5.3.0/include/tesseract/renderer.h ``` CCExtractor version: 0.88 to 0.94 (CMake build) # Necessary information - Is this a regression (i.e. did it work before)? I think it did (with Autotools vs CMake) - What platform did you use? GNU/Linux - What were the used arguments? N/A. Thanks!
Author
Owner

@apteryks commented on GitHub (Mar 17, 2023):

I tried the Autotools build, and it has the same defect:

mv -f ../src/lib_ccx/.deps/ccextractor-hardsubx.Tpo ../src/lib_ccx/.deps/ccextractor-hardsubx.Po
gcc -DPACKAGE_NAME=\"CCExtractor\" -DPACKAGE_TARNAME=\"ccextractor\" -DPACKAGE_VERSION=\"0.88\" -DPACKAGE_STRING=\"CCExtractor\ 0.88\" -DPACKAGE_BUGREPORT=\"carlos@ccextractor.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ccextractor\" -DVERSION=\"0.88\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_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 -I../src/zvbi/ -I../src/lib_hash/ -I../src/protobuf-c/ -I../src/utf8proc/ -I../src/ -I../src/freetype/include/      -I/gnu/store/bm52xpy338afmdkz3k4k5w3zw2j30z15-leptonica-1.80.0/include/leptonica  -std=gnu99 -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DVERSION_FILE_PRESENT -DFT2_BUILD_LIBRARY -DGPAC_DISABLE_VTT -DGPAC_DISABLE_OD_DUMP -O3 -s -DGPAC_CONFIG_LINUX  -DGPAC_64_BITS -DENABLE_HARDSUBX -DENABLE_OCR -DPN3G_NO_CONFIG_H -g -O2 -MT ../src/lib_ccx/ccextractor-hardsubx_imgops.o -MD -MP -MF ../src/lib_ccx/.deps/ccextractor-hardsubx_imgops.Tpo -c -o ../src/lib_ccx/ccextractor-hardsubx_imgops.o `test -f '../src/lib_ccx/hardsubx_imgops.c' || echo './'`../src/lib_ccx/hardsubx_imgops.c
../src/lib_ccx/hardsubx_decoder.c:12:10: fatal error: capi.h: No such file or directory
   12 | #include "capi.h"
      |          ^~~~~~~~
compilation terminated.

This is with 0.88. I'll try 0.94 in a bit.

@apteryks commented on GitHub (Mar 17, 2023): I tried the Autotools build, and it has the same defect: ``` mv -f ../src/lib_ccx/.deps/ccextractor-hardsubx.Tpo ../src/lib_ccx/.deps/ccextractor-hardsubx.Po gcc -DPACKAGE_NAME=\"CCExtractor\" -DPACKAGE_TARNAME=\"ccextractor\" -DPACKAGE_VERSION=\"0.88\" -DPACKAGE_STRING=\"CCExtractor\ 0.88\" -DPACKAGE_BUGREPORT=\"carlos@ccextractor.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ccextractor\" -DVERSION=\"0.88\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H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-I../src/zlib/ -I../src/zvbi/ -I../src/lib_hash/ -I../src/protobuf-c/ -I../src/utf8proc/ -I../src/ -I../src/freetype/include/ -I/gnu/store/bm52xpy338afmdkz3k4k5w3zw2j30z15-leptonica-1.80.0/include/leptonica -std=gnu99 -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DVERSION_FILE_PRESENT -DFT2_BUILD_LIBRARY -DGPAC_DISABLE_VTT -DGPAC_DISABLE_OD_DUMP -O3 -s -DGPAC_CONFIG_LINUX -DGPAC_64_BITS -DENABLE_HARDSUBX -DENABLE_OCR -DPN3G_NO_CONFIG_H -g -O2 -MT ../src/lib_ccx/ccextractor-hardsubx_imgops.o -MD -MP -MF ../src/lib_ccx/.deps/ccextractor-hardsubx_imgops.Tpo -c -o ../src/lib_ccx/ccextractor-hardsubx_imgops.o `test -f '../src/lib_ccx/hardsubx_imgops.c' || echo './'`../src/lib_ccx/hardsubx_imgops.c ../src/lib_ccx/hardsubx_decoder.c:12:10: fatal error: capi.h: No such file or directory 12 | #include "capi.h" | ^~~~~~~~ compilation terminated. ``` This is with 0.88. I'll try 0.94 in a bit.
Author
Owner

@cfsmp3 commented on GitHub (Mar 17, 2023):

That errors suggests that you don't have that file in the include search
path, that's all.

On Thu, Mar 16, 2023, 20:55 Apteryks @.***> wrote:

I tried the Autotools build, and it has the same defect:

mv -f ../src/lib_ccx/.deps/ccextractor-hardsubx.Tpo ../src/lib_ccx/.deps/ccextractor-hardsubx.Po
gcc -DPACKAGE_NAME="CCExtractor" -DPACKAGE_TARNAME="ccextractor" -DPACKAGE_VERSION="0.88" -DPACKAGE_STRING="CCExtractor\ 0.88" @.***" -DPACKAGE_URL="" -DPACKAGE="ccextractor" -DVERSION="0.88" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE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/ -I../src/gpacmp4/ -I../src/libpng/ -I../src/zlib/ -I../src/zvbi/ -I../src/lib_hash/ -I../src/protobuf-c/ -I../src/utf8proc/ -I../src/ -I../src/freetype/include/ -I/gnu/store/bm52xpy338afmdkz3k4k5w3zw2j30z15-leptonica-1.80.0/include/leptonica -std=gnu99 -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DVERSION_FILE_PRESENT -DFT2_BUILD_LIBRARY -DGPAC_DISABLE_VTT -DGPAC_DISABLE_OD_DUMP -O3 -s -DGPAC_CONFIG_LINUX -DGPAC_64_BITS -DENABLE_HARDSUBX -DENABLE_OCR -DPN3G_NO_CONFIG_H -g -O2 -MT ../src/lib_ccx/ccextractor-hardsubx_imgops.o -MD -MP -MF ../src/lib_ccx/.deps/ccextractor-hardsubx_imgops.Tpo -c -o ../src/lib_ccx/ccextractor-hardsubx_imgops.o test -f '../src/lib_ccx/hardsubx_imgops.c' || echo './'../src/lib_ccx/hardsubx_imgops.c
../src/lib_ccx/hardsubx_decoder.c:12:10: fatal error: capi.h: No such file or directory
12 | #include "capi.h"
| ^~~~~~~~
compilation terminated.

This is with 0.88. I'll try 0.94 in a bit.


Reply to this email directly, view it on GitHub
https://github.com/CCExtractor/ccextractor/issues/1503#issuecomment-1473087629,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABNMTWPGPMXPWQAW3SLBIGDW4POBPANCNFSM6AAAAAAV6AIRAU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@cfsmp3 commented on GitHub (Mar 17, 2023): That errors suggests that you don't have that file in the include search path, that's all. On Thu, Mar 16, 2023, 20:55 Apteryks ***@***.***> wrote: > I tried the Autotools build, and it has the same defect: > > mv -f ../src/lib_ccx/.deps/ccextractor-hardsubx.Tpo ../src/lib_ccx/.deps/ccextractor-hardsubx.Po > gcc -DPACKAGE_NAME=\"CCExtractor\" -DPACKAGE_TARNAME=\"ccextractor\" -DPACKAGE_VERSION=\"0.88\" -DPACKAGE_STRING=\"CCExtractor\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IR=1 -DHAVE_SELECT=1 -DHAVE_SETLOCALE=1 -DHAVE_SOCKET=1 -DHAVE_SQRT=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRNDUP=1 -DHAVE_STRRCHR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -I../src/lib_ccx/ -I../src/gpacmp4/ -I../src/libpng/ -I../src/zlib/ -I../src/zvbi/ -I../src/lib_hash/ -I../src/protobuf-c/ -I../src/utf8proc/ -I../src/ -I../src/freetype/include/ -I/gnu/store/bm52xpy338afmdkz3k4k5w3zw2j30z15-leptonica-1.80.0/include/leptonica -std=gnu99 -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DVERSION_FILE_PRESENT -DFT2_BUILD_LIBRARY -DGPAC_DISABLE_VTT -DGPAC_DISABLE_OD_DUMP -O3 -s -DGPAC_CONFIG_LINUX -DGPAC_64_BITS -DENABLE_HARDSUBX -DENABLE_OCR -DPN3G_NO_CONFIG_H -g -O2 -MT ../src/lib_ccx/ccextractor-hardsubx_imgops.o -MD -MP -MF ../src/lib_ccx/.deps/ccextractor-hardsubx_imgops.Tpo -c -o ../src/lib_ccx/ccextractor-hardsubx_imgops.o `test -f '../src/lib_ccx/hardsubx_imgops.c' || echo './'`../src/lib_ccx/hardsubx_imgops.c > ../src/lib_ccx/hardsubx_decoder.c:12:10: fatal error: capi.h: No such file or directory > 12 | #include "capi.h" > | ^~~~~~~~ > compilation terminated. > > This is with 0.88. I'll try 0.94 in a bit. > > — > Reply to this email directly, view it on GitHub > <https://github.com/CCExtractor/ccextractor/issues/1503#issuecomment-1473087629>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABNMTWPGPMXPWQAW3SLBIGDW4POBPANCNFSM6AAAAAAV6AIRAU> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Author
Owner

@apteryks commented on GitHub (Mar 17, 2023):

Hi Carlos! Yes, that's the symptom, but I'm interested in fixing the root cause. I'm testing a fix and will issue a PR if it tests fine.

@apteryks commented on GitHub (Mar 17, 2023): Hi Carlos! Yes, that's the symptom, but I'm interested in fixing the root cause. I'm testing a fix and will issue a PR if it tests fine.
Author
Owner

@apteryks commented on GitHub (Mar 19, 2023):

Thanks!

@apteryks commented on GitHub (Mar 19, 2023): Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#751