ffmpeg 编译问题
交叉编译ffmpeg 没有问题,安装也没有问题,可是在编译例子时出现头文件找不到
是交叉编译配置有问题吗???
opt/Atmel/arm-2007q1/bin/arm-linux-gcc -o tt tutorial01.c -lavformat -lavcodec -lz -lm
tutorial01.c:22:21: error: avcodec.h: No such file or directory
tutorial01.c:23:22: error: avformat.h: No such file or directory
tutorial01.c:27: error: expected ')' before '*' token
tutorial01.c: In function 'main':
tutorial01.c:50: error: 'AVFormatContext' undeclared (first use in this function)
tutorial01.c:50: error: (Each undeclared identifier is reported only once
tutorial01.c:50: error: for each function it appears in.)
tutorial01.c:50: error: 'pFormatCtx' undeclared (first use in this function)
tutorial01.c:52: error: 'AVCodecContext' undeclared (first use in this function)
tutorial01.c:52: error: 'pCodecCtx' undeclared (first use in this function)
tutorial01.c:53: error: 'AVCodec' undeclared (first use in this function)
tutorial01.c:53: error: 'pCodec' undeclared (first use in this function)
tutorial01.c:54: error: 'AVFrame' undeclared (first use in this function)
tutorial01.c:54: error: 'pFrame' undeclared (first use in this function)
tutorial01.c:55: error: 'pFrameRGB' undeclared (first use in this function)
tutorial01.c:56: error: 'AVPacket' undeclared (first use in this function)
tutorial01.c:56: error: expected ';' before 'packet'
tutorial01.c:59: error: 'uint8_t' undeclared (first use in this function)
tutorial01.c:59: error: 'buffer' undeclared (first use in this function)
tutorial01.c:82: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
tutorial01.c:111: error: 'PIX_FMT_RGB24' undeclared (first use in this function)
tutorial01.c:113: error: expected expression before ')' token
tutorial01.c:118: error: 'AVPicture' undeclared (first use in this function)
tutorial01.c:118: error: expected expression before ')' token
tutorial01.c:123: error: 'packet' undeclared (first use in this function)
tutorial01.c:133: error: expected expression before ')' token
是交叉编译配置有问题吗???
opt/Atmel/arm-2007q1/bin/arm-linux-gcc -o tt tutorial01.c -lavformat -lavcodec -lz -lm
tutorial01.c:22:21: error: avcodec.h: No such file or directory
tutorial01.c:23:22: error: avformat.h: No such file or directory
tutorial01.c:27: error: expected ')' before '*' token
tutorial01.c: In function 'main':
tutorial01.c:50: error: 'AVFormatContext' undeclared (first use in this function)
tutorial01.c:50: error: (Each undeclared identifier is reported only once
tutorial01.c:50: error: for each function it appears in.)
tutorial01.c:50: error: 'pFormatCtx' undeclared (first use in this function)
tutorial01.c:52: error: 'AVCodecContext' undeclared (first use in this function)
tutorial01.c:52: error: 'pCodecCtx' undeclared (first use in this function)
tutorial01.c:53: error: 'AVCodec' undeclared (first use in this function)
tutorial01.c:53: error: 'pCodec' undeclared (first use in this function)
tutorial01.c:54: error: 'AVFrame' undeclared (first use in this function)
tutorial01.c:54: error: 'pFrame' undeclared (first use in this function)
tutorial01.c:55: error: 'pFrameRGB' undeclared (first use in this function)
tutorial01.c:56: error: 'AVPacket' undeclared (first use in this function)
tutorial01.c:56: error: expected ';' before 'packet'
tutorial01.c:59: error: 'uint8_t' undeclared (first use in this function)
tutorial01.c:59: error: 'buffer' undeclared (first use in this function)
tutorial01.c:82: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
tutorial01.c:111: error: 'PIX_FMT_RGB24' undeclared (first use in this function)
tutorial01.c:113: error: expected expression before ')' token
tutorial01.c:118: error: 'AVPicture' undeclared (first use in this function)
tutorial01.c:118: error: expected expression before ')' token
tutorial01.c:123: error: 'packet' undeclared (first use in this function)
tutorial01.c:133: error: expected expression before ')' token
...全文
相关推荐
FFMPEG编译、使用与常见问题
#### FFMPEG编译中出现的一些问题与解决方法在编译FFMPEG的过程中,可能会遇到各种问题,包括依赖库的缺失、编译错误、链接错误等。
ffmpeg编译、使用与常见问题解决
编译中出现的一些问题与解决方法在FFmpeg的编译过程中可能会遇到各种问题,下面列举一些常见的问题及解决方案。
使用ffmpeg编译不过,用到的所有dll
通过以上步骤,你应该能够解决FFmpeg编译过程中遇到的DLL相关问题。同时,理解和熟悉FFmpeg的架构以及其组件的功能,将有助于更有效地排查问题。
编译opencv3.1需要的opencv_ffmpeg.dll以及opencv_ffmpeg_64.dll可解决取rtsp流花屏问题.zip
opencv3.10编译所需opencv_ffmpeg.dll opencv_ffmpeg_64.dll解压放到opencv\sources\3rdparty\ffmpeg\下即可使用opencv获取
ffmpeg编译过程出错总结.zip_ffmpeg_ffmpeg 编译_ffmpeg编译总结
在Linux环境下编译FFmpeg时,由于其复杂性和依赖众多,可能会遇到各种问题。这篇文档将详细介绍在Linux系统下编译FFmpeg时可能遇到的常见错误及其解决方案。1.


多媒体/流媒体开发
