ffmpeg-static icon indicating copy to clipboard operation
ffmpeg-static copied to clipboard

libpng not building

Open albertz opened this issue 12 years ago • 4 comments

...
clangclang: : warning: warning: argument unused during compilation: '-L/Users/az/Programmierung/ffmpeg-static/target/lib'argument unused during compilation: '-L/Users/az/Programmierung/ffmpeg-static/target/lib'

In file included from pngerror.c:19:
./pngpriv.h:768:4: error: ZLIB_VERNUM != PNG_ZLIB_VERNUM "-I (include path) error: see the notes in pngpriv.h"
In file included from png.c:14:
./pngpriv.h:768:4: error: ZLIB_VERNUM != PNG_ZLIB_VERNUM "-I (include path) error: see the notes in pngpriv.h"
#  error ZLIB_VERNUM != PNG_ZLIB_VERNUM \
   ^
#  error ZLIB_VERNUM != PNG_ZLIB_VERNUM \
   ^
1 error generated.
make[1]: *** [pngerror.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
1 error generated.
make[1]: *** [png.lo] Error 1
make: *** [all] Error 2

I guess it includes the wrong zlib.h? But why?

albertz avatar Nov 06 '13 13:11 albertz

Probably because clang is ignoring some of the flags ? clangclang: : warning: warning: argument unused during compilation I don't know why though

zimbatm avatar Nov 06 '13 15:11 zimbatm

Well that is an -L, so only relevant for linking. This would need more debugging.

I would also watch the related Homebrew formula. You will find all needed patches/options there. However, they are using libpng 1.5.14 (that is where I get the link from). The formula is here. But maybe we just wait and adopt from there.

albertz avatar Nov 07 '13 09:11 albertz

Agreed. Let's leave that issue open until someone finds the time to debug the issue.

zimbatm avatar Nov 07 '13 13:11 zimbatm

You need to set your CPPFLAGS variable to the zlib headers location... I use

    setenv LDFLAGS "-L/usr/local/lib -R/usr/local/lib"
    setenv CFLAGS "-I/usr/local/include"
    setenv CPPFLAGS "-I/usr/local/include"

marksolaris avatar Jul 03 '14 04:07 marksolaris