mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[BUG] Autogen Compilation terminates at make #567
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vishwesh-D-kumar on GitHub (Mar 3, 2020).
CCExtractor version: 0.88
In raising this issue, I confirm the following:
Necessary information
Video links
None
Additional information
While running
makeafter running the commands./autogen.shand./configurethere is an error namelyI know that it is not an error in the platform , as I have used
build.shto compile CCextractor correctlyThe 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-devinstalls it correctly andmakeruns perfectly wellThis is not an included library in the Compilation page , for Autogen Scripts .Is there a reason behind this ?
@canihavesomecoffee commented on GitHub (Mar 3, 2020):
libpngwas more recently moved into thethirdpartyfolder, and the include inorc.hmight not have been updated correctly.It was moved in
af6d8282cb, so maybe @NilsIrl can help out.@NilsIrl commented on GitHub (Mar 3, 2020):
The issue is that autogen wasn't updated (IIRC) for the movement of libraries to the
thirdpartydirectory (unlike the other build systems).Why do we ship libpng when we could use the system package?
@cfsmp3 commented on GitHub (Mar 3, 2020):
In general we vendor libraries (except tesseract) to guarantee portability and availability. Remember that we also support Windows (in fact, like it or not, most of our users run Windows). Requiring external libraries in Windows is frowned upon.
@vishwesh-D-kumar commented on GitHub (Mar 3, 2020):
@NilsIrl
It seems like the third party support has been configured into,as the makefile gcc command I quoted has all the thirdparty directories included via the -I option.
@cfsmp3 I totally missed that point, I can how see that the problems it would cause for windows!
I looked at the gcc command , and It seems that the command doesnt have the correct file path for libpng included.
I've figured the source of the error to be the wrong path on the Makefile.am
1b17a04b25/linux/Makefile.am (L321)I'm correcting the path and submitting a pull request for the same ,
Ive tested it for the autoconf scripts , it has sucessfully compiled .
Do let me know if theres somewhere I went wrong :)
@NilsIrl commented on GitHub (Mar 3, 2020):
Just to make sure, did you uninstall
libpng-dev? (To make sure the change is what fixes the problem.)@vishwesh-D-kumar commented on GitHub (Mar 3, 2020):
Yeah.
I double checked it by running
apt-get remove libpng-devgave the output :The testing suite also seems to work fine with it, I can see it has a test to check autoconf scripts.
:)
@NilsIrl commented on GitHub (Mar 3, 2020):
The autoconf scripts worked in the first place, they didn't catch the regression so...
It may be interesting to remove the packages that can hide regressions from the workflows.