主题 : 交叉编译 MPlayer-1.0rc3 配置文件 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 9105
精华: 0
发帖: 95
金钱: 755 两
威望: 307 点
贡献值: 0 点
综合积分: 190 分
注册时间: 2009-09-17
最后登录: 2017-09-13
楼主  发表于: 2010-09-22 23:07

 交叉编译 MPlayer-1.0rc3 配置文件

图片:
./configure \
--host-cc=gcc \
--cc=arm-linux-gnueabi-gcc \
--target=arm \
--enable-static \
--disable-win32dll \
--disable-dvdread \
--disable-dvdread-internal \
--disable-dvdnav \
--disable-libdvdcss-internal \
\
--disable-largefiles \
--disable-apple-remote \
--disable-apple-ir \
\
--disable-tv \
--disable-tv-v4l1 \
--disable-tv-v4l2 \
--disable-tv-bsdbt848 \
--disable-tv-teletext \
\
--disable-unrarexec \
\
--disable-macosx \
--disable-maemo \
--disable-macosx-finder \
\
--disable-macosx-bundle \
--disable-inet6       \
--disable-gethostbyname2  \
--disable-ftp          \
--disable-vstream      \
--disable-pthreads     \
--disable-w32threads   \
--disable-ass          \
--enable-rpath         \
\
--enable-fbdev \
--disable-mencoder \
--disable-live \
--enable-mad \
--enable-libavcodec_a


结果  李孝利的MV
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-03-14 17:52
支持一下
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2013-10-29 23:02
这其中的第一句:1.編譯Kernel支持ALSA
如何实现呢?

这里指的是内核镜像里需要包含ALSA架构的音频驱动。如果你用的是光盘上的内核源代码,里面应该已经包含了。

我现在编译,make的时候,出现libasound.a中找不到clock_gettime

能否把你的步骤和完整的编译信息传上来?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2013-10-30 14:02

 回 7楼(mukguchina) 的帖子

从命令"readelf -s /opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/lib/librt-2.11.so |grep clock_gettime"的输出来看,clock_gettime()应该是包含在librt-2.11.so里的:
    75: 00003818   112 FUNC    GLOBAL DEFAULT   12 clock_gettime@@GLIBC_2.4
   153: 00000000     0 FILE    LOCAL  DEFAULT  ABS clock_gettime.c
   340: 00003818   112 FUNC    LOCAL  HIDDEN    12 __GI_clock_gettime
   364: 00003818   112 FUNC    GLOBAL DEFAULT   12 clock_gettime

你可以在命令行上手动执行

arm-linux-gcc -o mplayer mplayer.o m_property.o mp_fifo.o mp_msg.o mixer.o parser-mpcmd.o subopt-helper.o command.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o get_path.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o libvo/libvo.a libao2/libao2.a input/libinput.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a tremor/libvorbisidec.a osdep/libosdep.a  -Wl,-z,noexecstack    -lncurses -lpng -lz -ljpeg -lasound -ldl -lpthread -lz -lmad -lpthread -ldl -lrt -rdynamic -static -lm

来验证加上"-lrt"是否能解决问题
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."