Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
linux上编译ffmpeg时未定义的数学函数引用_Linux_Math_Ffmpeg_Makefile - Fatal编程技术网

linux上编译ffmpeg时未定义的数学函数引用

linux上编译ffmpeg时未定义的数学函数引用,linux,math,ffmpeg,makefile,Linux,Math,Ffmpeg,Makefile,我试图通过提供的make命令在Linux系统中编译一个版本的ffmpeg源代码(ffmpeg2dwave)。 使运行正常,但在某些情况下会出现如下错误: libavcodec/eval.c:252: undefined reference to `cosh' undefined reference to `tanh' undefined reference to `sin' undefined reference to `cos' etc(后面还有更多功能) 我是否必须检查有关math.

我试图通过提供的
make
命令在Linux系统中编译一个版本的ffmpeg源代码(ffmpeg2dwave)。 使运行正常,但在某些情况下会出现如下错误:

libavcodec/eval.c:252: undefined reference to `cosh'
 undefined reference to `tanh'
 undefined reference to `sin'
 undefined reference to `cos'
etc(后面还有更多功能)

我是否必须检查有关
math.h
函数的一些信息?有什么想法吗


非常感谢

它是用
-lm
选项编译的吗?我使用一个make文件,在CFLAGS后面有这个条目LDFLAGS+=-g我应该在那里添加/替换什么吗?还请注意,当我在cygwin环境中编译时,不存在任何问题!我尝试使用-lm或-lmath作为CFLAGS或LDFLAGS,但效果不佳。在linux中包含math.h时是否存在已知问题?make是否在源/对象文件之前传递标志?这些库需要在后面传递,以便链接器知道它需要链接哪些符号。这是编译行:gcc-L“/home/geogo/ffmpeg-2dwave”/libavformat-L“/home/geogo/ffmpeg-2dwave”/libavcodec-L“/home/geogo/ffmpeg-2dwave”/libavutil-lm-Wl,--warn common-Wl,--as-required-Wl,--rpath-link,/home/geogo/ffmpeg-2dwave”/libavcodec-Wl,-rpath link,“/home/geogeo/ffmpeg-2dwave”/libavformat-Wl,-rpath link,“/home/geogeo/ffmpeg-2dwave”/libavutil-g-o ffmpeg_g-2dwave ffmpeg.o cmdutils.o-lavformat-2dwave-lavcodec-2dwave-lavutil-2dwave-lpthread-lt-lz