Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1083617
  • 博文数量: 190
  • 博客积分: 1156
  • 博客等级: 少尉
  • 技术积分: 2153
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-16 15:01
个人简介

go!go!go!

文章分类

全部博文(190)

文章存档

2023年(11)

2022年(13)

2021年(15)

2020年(38)

2019年(3)

2018年(6)

2016年(1)

2015年(16)

2014年(13)

2013年(24)

2012年(46)

分类: C/C++

2013-05-28 11:25:17

1.编译失败
ffmpeg_opt.c:490: warning: dereferencing type-punned pointer will break strict-aliasing rules
ffplay.c: In function `audio_open':
ffplay.c:2288: warning: implicit declaration of function `SDL_getenv'
ffplay.c:2288: warning: assignment makes pointer from integer without a cast
ffplay.c: In function `main':
ffplay.c:3384: warning: implicit declaration of function `SDL_putenv'
ffplay.o(.text+0x516f): In function `stream_component_open':
/data/liubin/ffmpeg-1.2.1/ffplay.c:2288: undefined reference to `SDL_getenv'
ffplay.o(.text+0x8f37): In function `main':
/data/liubin/ffmpeg-1.2.1/ffplay.c:3384: undefined reference to `SDL_putenv'
collect2: ld returned 1 exit status
make: *** [ffplay_g] Error 1

红色部分实际为SDL-1.2.15 的函数

编译失败,是因为os中缺省该库,
[root@TEST192 ffmpeg-1.2.1]# ack libSDL
libavdevice/sdl.c
23: * libSDL output device

google到该库wget
./configure
make
make install 
默认将该lib的头文件安装到/usr/local/include/SDL 下,
因此要在编译ffmpeg 时,指定改库的路劲
./configure --disable-yasm --incdir=/usr/local/include/SDL/
然后make,make install
阅读(5468) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~