zimbatm / ffmpeg-static

Scripts to build ffmpeg with all the deps statically (webm + h264 included)
ISC License
508 stars 253 forks source link

`set -e` not working? #18

Closed albertz closed 10 years ago

albertz commented 10 years ago

It seems that a few packages aren't compiling but it just continues:

...
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
*** Building libogg ***
...

or

...
grammierung/ffmpeg-static/target/lib/libvorbis.a /Users/az/Programmierung/ffmpeg-static/target/lib/libogg.a -lm
undef: ___sincos_stret
Undefined symbols for architecture x86_64:
  "___sincos_stret", referenced from:
      _mdct_init in lto.o
      _drft_init in lto.o
      _dradfg in lto.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [encoder_example] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Building livpx ***
...

or

...
gcc -I/Users/az/Programmierung/ffmpeg-static/target/include -o faac main.o input.o  -L/Users/az/Programmierung/ffmpeg-static/target/lib ../libfaac/.libs/libfaac.a ../common/mp4v2/libmp4v2.a -lm -lstdc++
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [faac] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Building x264 ***
Unknown option --disable-sha
...

or

...

  D: =build
  C: ./decoder.c
install: mkdir =build: File exists
make: *** [=build] Error 71
make: *** Waiting for unfinished jobs....
clang: warning: argument unused during compilation: '-L/Users/az/Programmierung/ffmpeg-static/target/lib'
*** Building lame ***
...

And some more.

My /bin/sh is GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13). I'm on MacOSX 10.9.

albertz commented 10 years ago

Fixed now. :)