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