Page 1 of 1

configure fails with ffmpeg 2.1.8 and MSVC2013

Posted: Thu Jun 29, 2017 1:29 pm
by scaram
I am trying to build ffmpeg 2.1.8 for a legacy project. I use windows 10, MSVC 2013 and the tutorial from https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC

After ./configure --toolchain=msvc

I see the following errors in config.log

What can I do to make it work?

...

C:/Users/scaram/AppData/Local/Temp/ffconf.LgAWDJFi.o_preprocessed.c:8859:27: error: 'test' declared as an array with a negative size
ffconf.LgAWDJFi.o_converted.c
C:/Users/scaram/AppData/Local/Temp/ffconf.RncapARb.c(1) : error C2118: Negativer Index
check_cpp_condition features.h defined __UCLIBC__
check_cpp
BEGIN /tmp/ffconf.RncapARb.c
1 #include <features.h>
2 #if !(defined __UCLIBC__)
3 #error "unsatisfied condition: defined __UCLIBC__"
4 #endif
END /tmp/ffconf.RncapARb.c
c99wrap cl -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -nologo -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -Dinline=__inline -FIstdlib.h -Dstrtoll=_strtoi64 -P -Fi /tmp/ffconf.LgAWDJFi.o /tmp/ffconf.RncapARb.c
ffconf.RncapARb.c
C:/Users/scaram/AppData/Local/Temp/ffconf.RncapARb.c(3) : fatal error C1189: #error : "unsatisfied condition: defined __UCLIBC__"
check_cpp_condition features.h defined __GLIBC__
check_cpp
BEGIN /tmp/ffconf.RncapARb.c
1 #include <features.h>
2 #if !(defined __GLIBC__)
3 #error "unsatisfied condition: defined __GLIBC__"
4 #endif
END /tmp/ffconf.RncapARb.c
c99wrap cl -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -nologo -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -Dinline=__inline -FIstdlib.h -Dstrtoll=_strtoi64 -P -Fi /tmp/ffconf.LgAWDJFi.o /tmp/ffconf.RncapARb.c
ffconf.RncapARb.c
C:/Users/scaram/AppData/Local/Temp/ffconf.RncapARb.c(3) : fatal error C1189: #error : "unsatisfied condition: defined __GLIBC__"
check_cpp_condition newlib.h defined _NEWLIB_VERSION
check_cpp
BEGIN /tmp/ffconf.RncapARb.c
1 #include <newlib.h>
2 #if !(defined _NEWLIB_VERSION)
3 #error "unsatisfied condition: defined _NEWLIB_VERSION"
4 #endif
END /tmp/ffconf.RncapARb.c
c99wrap cl -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -nologo -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -Dinline=__inline -FIstdlib.h -Dstrtoll=_strtoi64 -P -Fi /tmp/ffconf.LgAWDJFi.o /tmp/ffconf.RncapARb.c
ffconf.RncapARb.c
C:/Users/scaram/AppData/Local/Temp/ffconf.RncapARb.c(1) : fatal error C1083: Datei (Include) kann nicht ge򦦮et werden: "newlib.h": No such file or directory
check_header _mingw.h
check_cpp
BEGIN /tmp/ffconf.RncapARb.c
1 #include <_mingw.h>
2 int x;
END /tmp/ffconf.RncapARb.c

...