本文介绍了编译ffmpeg来支持SPEEX解码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编译ffmpeg来支持Speex解码。我已经在我的shell脚本中使用以下标志--enable-libspeex启用了speex解码。我还编译了从链接下载的speex 1.2rc1。编译后,头文件在这个路径上可用/ usr / local / include / speex。按照上述过程,当ffmpeg被编译以产生对SPEEX解码的支持时,我得到未找到的libspeex错误。
任何人都可以帮助我吗?



Config.log:

  BEGIN /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c 
1 #include< math.h>
2 float foo(float f,float g){return roundf(f); }
3 int main(void){return(int)foo; }
END /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS = 64 -D_LARGEFILE_SOURCE -
DPIC -arch armv7s - mios-version-min = 6.0 -mcpu = -std = c99 -fomit-frame-pointer -fPIC -
mthumb -c -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o
/var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
clang:warning:join参数期望附加值:'-mcpu ='
xcrun -sdk iphoneos clang -arch armv7s -mios-version-min = 6.0 -Wl,-dynamic, -
search_paths_first -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.vFN4Vpqk
/ var / folders / 5p / cffcbsm954b632yfzq4jrbbw0000gn /T//ffconf.8q3GcEO3.o -lm -lz
check_mathfunc sinf 1
check_ld cc
check_cc
BEGIN / var / folders / 5p / cffcbsm954b632yfzq4jrbbw0000gn / T // ffconf。 5U5MfgMb.c
1 #include< math.h>
2 float foo(float f,float g){return sinf(f); }
3 int main(void){return(int)foo; }
END /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS = 64 -D_LARGEFILE_SOURCE -
DPIC -arch armv7s - mios-version-min = 6.0 -mcpu = -std = c99 -fomit-frame-pointer -fPIC -
mthumb -c -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o
/var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
clang:warning:join参数期望附加值:'-mcpu ='
xcrun -sdk iphoneos clang -arch armv7s -mios-version-min = 6.0 -Wl,-dynamic, -
search_paths_first -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.vFN4Vpqk
/ var / folders / 5p / cffcbsm954b632yfzq4jrbbw0000gn /T//ffconf.8q3GcEO3.o -lm -lz
check_mathfunc trunc 1
check_ld cc
check_cc
BEGIN / var / folders / 5p / cffcbsm954b632yfzq4jrbbw0000gn / T // ffconf。 5U5MfgMb.c
1 #include< math.h>
2 float foo(float f,float g){return trunc(f); }
3 int main(void){return(int)foo; }
END /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS = 64 -D_LARGEFILE_SOURCE -
DPIC -arch armv7s - mios-version-min = 6.0 -mcpu = -std = c99 -fomit-frame-pointer -fPIC -
mthumb -c -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o
/var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
clang:warning:join参数期望附加值:'-mcpu ='
xcrun -sdk iphoneos clang -arch armv7s -mios-version-min = 6.0 -Wl,-dynamic, - search_paths_first -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.vFN4Vpqk /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3。 o -lm -lz
check_mathfunc truncf 1
check_ld cc
check_cc
BEGIN /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
1 #include< math.h>
2 float foo(float f,float g){return truncf(f); }
3 int main(void){return(int)foo; }
END /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS = 64 -D_LARGEFILE_SOURCE -DPIC -arch armv7s -mios-version- min = 6.0 -mcpu = -std = c99 -fomit-frame-pointer -fPIC -mthumb -c -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o / var / folders / 5p / cffcbsm954b632yfzq4jrbbw0000gn / t // ffconf.5U5MfgMb.c
clang:warning:join参数期望附加值:'-mcpu ='
xcrun -sdk iphoneos clang -arch armv7s -mios-version-min = 6.0 -Wl, -dynamic,-search_paths_first -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.vFN4Vpqk /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o -lm -lz
check_lib speex / speex.h speex_decoder_init -lspeex
check_header speex / speex.h
check_cpp
BEGIN /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
1 #include < Speex语音/ speex.h>
2 int x;
END /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS = 64 -D_LARGEFILE_SOURCE -DPIC -arch armv7s -mios-version-min = 6.0 -mcpu = -std = c99 -fomit-frame-pointer -fPIC -mthumb -E -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o / var / folders / 5p / cffcbsm954b632yfzq4jrbbw0000gn / T //ffconf.5U5MfgMb.c
clang:warning:join参数期望附加值:'-mcpu ='
/var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c:1: 10:致命错误:'speex / speex.h'文件未找到
#include< speex / speex.h>
^
1生成错误。
错误:未找到libspeex


解决方案

gcc不在 / usr / local / include 中,或者您的动态链接器没有 / usr / local / lib 在路径中。



重新编译speex并传递 - prefix = / usr 选项进行配置。 >

I am trying to compile ffmpeg to support Speex decoding. I have enabled speex decoding using the following flag --enable-libspeex in my shell script. I have also compiled speex 1.2rc1 downloaded from this link. After compiling the header files are available on this path /usr/local/include/speex. Following the above procedure when ffmpeg is compiled to produce support for SPEEX decoding I get the error libspeex not found.Can anyone help me with this?

Config.log :

    BEGIN /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
    1   #include <math.h>
    2   float foo(float f, float g) { return roundf(f); }
    3   int main(void){ return (int) foo; }
    END /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
    xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -
    DPIC -arch armv7s -mios-version-min=6.0 -mcpu= -std=c99 -fomit-frame-pointer -fPIC -
    mthumb -c -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o
    /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
    clang: warning: joined argument expects additional value: '-mcpu='
    xcrun -sdk iphoneos clang -arch armv7s -mios-version-min=6.0 -Wl,-dynamic,-
    search_paths_first -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.vFN4Vpqk
    /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o -lm -lz
    check_mathfunc sinf 1
    check_ld cc
    check_cc
    BEGIN /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
     1  #include <math.h>
     2  float foo(float f, float g) { return sinf(f); }
     3  int main(void){ return (int) foo; }
     END /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
     xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -
     DPIC  -arch armv7s -mios-version-min=6.0 -mcpu= -std=c99 -fomit-frame-pointer -fPIC - 
     mthumb -c -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o
     /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
     clang: warning: joined argument expects additional value: '-mcpu='
     xcrun -sdk iphoneos clang -arch armv7s -mios-version-min=6.0 -Wl,-dynamic,-
    search_paths_first -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.vFN4Vpqk
    /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o -lm -lz
    check_mathfunc trunc 1
    check_ld cc
     check_cc
    BEGIN /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
     1  #include <math.h>
     2  float foo(float f, float g) { return trunc(f); }
     3  int main(void){ return (int) foo; }
    END /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
     xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -
      DPIC -arch armv7s -mios-version-min=6.0 -mcpu= -std=c99 -fomit-frame-pointer -fPIC -
     mthumb -c -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o 
    /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
    clang: warning: joined argument expects additional value: '-mcpu='
    xcrun -sdk iphoneos clang -arch armv7s -mios-version-min=6.0 -Wl,-dynamic,-               search_paths_first -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.vFN4Vpqk /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o -lm -lz
check_mathfunc truncf 1
check_ld cc
check_cc
BEGIN /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
    1   #include <math.h>
    2   float foo(float f, float g) { return truncf(f); }
    3   int main(void){ return (int) foo; }
END /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7s -mios-version-min=6.0 -mcpu= -std=c99 -fomit-frame-pointer -fPIC -mthumb -c -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
clang: warning: joined argument expects additional value: '-mcpu='
xcrun -sdk iphoneos clang -arch armv7s -mios-version-min=6.0 -Wl,-dynamic,-search_paths_first -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.vFN4Vpqk /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o -lm -lz
check_lib speex/speex.h speex_decoder_init -lspeex
check_header speex/speex.h
check_cpp
BEGIN /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
    1   #include <speex/speex.h>
    2   int x;
END /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7s -mios-version-min=6.0 -mcpu= -std=c99 -fomit-frame-pointer -fPIC -mthumb -E -o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.8q3GcEO3.o /var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c
clang: warning: joined argument expects additional value: '-mcpu='
/var/folders/5p/cffcbsm954b632yfzq4jrbbw0000gn/T//ffconf.5U5MfgMb.c:1:10: fatal error: 'speex/speex.h' file not found
#include <speex/speex.h>
         ^
1 error generated.
ERROR: libspeex not found
解决方案

Either your gcc is not looking in /usr/local/include or your dynamic linker does not have /usr/local/lib in its path.

Recompile speex and pass the --prefix=/usr option to configure.

这篇关于编译ffmpeg来支持SPEEX解码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 22:39