[BUG] Autogen Compilation terminates at make #564

Open
opened 2026-01-29 16:47:52 +00:00 by claunia · 0 comments
Owner

Originally created by @vishwesh-D-kumar on GitHub (Mar 3, 2020).

CCExtractor version: 0.88

In raising this issue, I confirm the following:

  • I have read and understood the contributors guide.
  • I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • I have checked that the issue I'm posting isn't already reported.
  • I have checked that the issue I'm porting isn't already solved and no duplicates exist in closed issues and in opened issues
  • I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • I have used the latest available version of CCExtractor to verify this issue exists.
  • I have ticked all the boxes in this section and to prove it I'm deleting the section completely to remove boilerplate text.

Necessary information

  • Is this a regression (i.e. did it work before)? {YES/NO} Maybe
  • What platform did you use? {Window/Linux/Mac} Linux (Ubuntu bash Docker)
  • What were the used arguments? None : A build error

Video links

None

Additional information

While runningmake after running the commands ./autogen.sh and ./configure there is an error namely

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_UNISTD_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 -DHAVE_FLOAT_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_MALLOC_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMEB_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE__BOOL=1 -DHAVE_PTRDIFF_T=1 -DHAVE_FSEEKO=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALARM=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DHAVE_FLOOR=1 -DHAVE_FTRUNCATE=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_INET_NTOA=1 -DHAVE_MBLEN=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_REALPATH=1 -DHAVE_RMDIR=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/thirdparty/gpacmp4/ -I../src/libpng/ -I../src/thirdparty/zlib/ -I../src/thirdparty/zvbi/ -I../src/thirdparty/lib_hash/ -I../src/thirdparty/protobuf-c/ -I../src/thirdparty -I../src/ -I../src/thirdparty/freetype/include/    -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 -O3 -s -DGPAC_CONFIG_LINUX  -DGPAC_64_BITS   -g -O2 -MT ../src/lib_ccx/ccextractor-ccx_encoders_common.o -MD -MP -MF ../src/lib_ccx/.deps/ccextractor-ccx_encoders_common.Tpo -c -o ../src/lib_ccx/ccextractor-ccx_encoders_common.o `test -f '../src/lib_ccx/ccx_encoders_common.c' || echo './'`../src/lib_ccx/ccx_encoders_common.c
In file included from ../src/lib_ccx/ccx_encoders_common.c:4:0:
../src/lib_ccx/ocr.h:3:10: fatal error: png.h: No such file or directory
 #include <png.h>
          ^~~~~~~
compilation terminated.
Makefile:3355: recipe for target '../src/lib_ccx/ccextractor-ccx_encoders_common.o' failed
make: *** [../src/lib_ccx/ccextractor-ccx_encoders_common.o] Error 1

I know that it is not an error in the platform , as I have used build.sh to compile CCextractor correctly
The platform I'm using :
Ubuntu 18.04 on Docker , on MacOS

Upon comparing and investigating, it seems that png.h does exist in ../src/thirdparty/libpng/
Upon searching for this issue, seems that running sudo apt-get install libpng-dev installs it correctly and make runs perfectly well

This is not an included library in the Compilation page , for Autogen Scripts .Is there a reason behind this ?

Originally created by @vishwesh-D-kumar on GitHub (Mar 3, 2020). CCExtractor version: 0.88 # In raising this issue, I confirm the following: - [X] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md). - [X] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present. - [X] I have checked that the issue I'm posting isn't already reported. - [X] I have checked that the issue I'm porting isn't already solved and no duplicates exist in [closed issues](https://github.com/CCExtractor/ccextractor/issues?q=is%3Aissue+is%3Aclosed) and in [opened issues](https://github.com/CCExtractor/ccextractor/issues) - [X] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion. - [X] I have used the latest available version of CCExtractor to verify this issue exists. - [X] I have ticked all the boxes in this section and to prove it I'm deleting the section completely to remove boilerplate text. # Necessary information - Is this a regression (i.e. did it work before)? {YES/NO} Maybe - What platform did you use? {Window/Linux/Mac} Linux (Ubuntu bash Docker) - What were the used arguments? None : A build error # Video links None # Additional information While running``` make ``` after running the commands ```./autogen.sh``` and ```./configure``` there is an error namely ``` 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_UNISTD_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 -DHAVE_FLOAT_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_MALLOC_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMEB_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE__BOOL=1 -DHAVE_PTRDIFF_T=1 -DHAVE_FSEEKO=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALARM=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DHAVE_FLOOR=1 -DHAVE_FTRUNCATE=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_INET_NTOA=1 -DHAVE_MBLEN=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_REALPATH=1 -DHAVE_RMDIR=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/thirdparty/gpacmp4/ -I../src/libpng/ -I../src/thirdparty/zlib/ -I../src/thirdparty/zvbi/ -I../src/thirdparty/lib_hash/ -I../src/thirdparty/protobuf-c/ -I../src/thirdparty -I../src/ -I../src/thirdparty/freetype/include/ -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 -O3 -s -DGPAC_CONFIG_LINUX -DGPAC_64_BITS -g -O2 -MT ../src/lib_ccx/ccextractor-ccx_encoders_common.o -MD -MP -MF ../src/lib_ccx/.deps/ccextractor-ccx_encoders_common.Tpo -c -o ../src/lib_ccx/ccextractor-ccx_encoders_common.o `test -f '../src/lib_ccx/ccx_encoders_common.c' || echo './'`../src/lib_ccx/ccx_encoders_common.c In file included from ../src/lib_ccx/ccx_encoders_common.c:4:0: ../src/lib_ccx/ocr.h:3:10: fatal error: png.h: No such file or directory #include <png.h> ^~~~~~~ compilation terminated. Makefile:3355: recipe for target '../src/lib_ccx/ccextractor-ccx_encoders_common.o' failed make: *** [../src/lib_ccx/ccextractor-ccx_encoders_common.o] Error 1 ``` I know that it is not an error in the platform , as I have used ```build.sh``` to compile CCextractor correctly The platform I'm using : Ubuntu 18.04 on Docker , on MacOS Upon comparing and investigating, it seems that png.h does exist in ```../src/thirdparty/libpng/``` Upon searching for this issue, seems that running ```sudo apt-get install libpng-dev``` installs it correctly and ```make``` runs perfectly well This is not an included library in the Compilation page , for Autogen Scripts .Is there a reason behind this ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#564