在s5pv210開發板linux平台上移植mplayer–基於x210開發板

來源:互聯網
上載者:User

x210開發板的linux和android共用一套核心,只不過編譯時間選擇不同的 config,真是太絕了!

而且linux核心和android核心全部打包到xboot.bin中,使用者只需要開機時通過按鍵在LCD互動

介面選擇linux或者android就可以了。

在調試時,我們可以進入linux系統,而且linux的檔案系統也一併打包到xboot中了,這個xboot

簡直無敵了!

廢話少說,下面在基於xboot的linux核心上移植mplayer:

安裝源檔案[見光碟片]:
MPlayer-1.0rc2.tar.bz2
libmad-0.15.1b.tar.gz
第一步:解壓libmad-0.15.1b並安裝:
./configure --enable-fpm=arm --host=arm-none-linux-gnueabi --disable-shared --disable-debugging --prefix=/usr/local/arm/arm-none-linux-gnueabi-2010-09-50/lib CC=/usr/local/arm/arm-none-linux-gnueabi-2010-09-50/bin/arm-none-linux-gnueabi-gcc
make
如下錯誤:
cc1: error: unrecognized command line option "-fforce-mem"
修改Makefile
在Makefile中找到包含"fforce-mem"字串,將其刪除即可;原因:gcc3.4或更高版本中,已將將該選項去除了。
再make
make install
第二步:解壓MPlayer-1.0rc2並安裝:
./configure --cc=/usr/local/arm/arm-none-linux-gnueabi-2010-09-50/bin/arm-none-linux-gnueabi-gcc --target=arm-none-linux-gnueabi --enable-static --prefix=/tmp/mplayer-rc2 --disable-win32dll --disable-dvdread --enable-fbdev --disable-mencoder --disable-live
--disable-mp3lib --enable-mad --enable-libavcodec_a --language=zh_CN --disable-armv5te --disable-armv6 --with-extraincdir=/usr/local/arm/arm-none-linux-gnueabi-2010-09-50/lib/include --with-extralibdir=/usr/local/arm/arm-none-linux-gnueabi-2010-09-50/lib/lib
--host-cc=gcc --enable-ossaudio
提示如下錯誤:
vo_ivtv.c: In function 'ivtv_reset':
vo_ivtv.c:79:31: error: storage size of 'sd' isn't known
vo_ivtv.c:80:32: error: storage size of 'sd1' isn't known
vo_ivtv.c:84:14: error: 'IVTV_STOP_FL_HIDE_FRAME' undeclared (first use in this function)
vo_ivtv.c:84:14: note: each undeclared identifier is reported only once for each function it appears in
vo_ivtv.c:87:23: error: 'IVTV_IOC_STOP_DECODE' undeclared (first use in this function)
vo_ivtv.c:97:23: error: 'IVTV_IOC_START_DECODE' undeclared (first use in this function)
vo_ivtv.c:80:32: warning: unused variable 'sd1'
vo_ivtv.c:79:31: warning: unused variable 'sd'
make[1]: *** [vo_ivtv.o] Error 1
解決方案,在 安裝 MPlayer時: ./configure --disable-ivtv
即:
sudo ./configure --cc=/usr/local/arm/arm-none-linux-gnueabi-2010-09-50/bin/arm-none-linux-gnueabi-gcc --target=arm-none-linux-gnueabi --enable-static --prefix=/tmp/mplayer-rc2 --disable-win32dll --disable-dvdread --enable-fbdev --disable-mencoder --disable-live
--disable-mp3lib --enable-mad --enable-libavcodec_a --language=zh_CN --disable-armv5te --disable-armv6 --with-extraincdir=/usr/local/arm/arm-none-linux-gnueabi-2010-09-50/lib/include --with-extralibdir=/usr/local/arm/arm-none-linux-gnueabi-2010-09-50/lib/lib
--host-cc=gcc --enable-ossaudio --disable-ivtv --disable-tv
注意配置之前先make clean一下。
再make,提示如下錯誤:
ioctl.c: In function 'ioctl_ReadCopyright':
ioctl.c:273:5: error: #error "DVD ioctls are unavailable on this system"
ioctl.c: In function 'ioctl_ReadDiscKey':
ioctl.c:446:5: error: #error "DVD ioctls are unavailable on this system"
ioctl.c: In function 'ioctl_ReadTitleKey':
ioctl.c:610:5: error: #error "DVD ioctls are unavailable on this system"
ioctl.c: In function 'ioctl_ReportAgid':
ioctl.c:734:5: error: #error "DVD ioctls are unavailable on this system"
ioctl.c: In function 'ioctl_ReportChallenge':
ioctl.c:868:5: error: #error "DVD ioctls are unavailable on this system"
ioctl.c: In function 'ioctl_ReportASF':
ioctl.c:1001:5: error: #error "DVD ioctls are unavailable on this system"
ioctl.c: In function 'ioctl_ReportKey1':
ioctl.c:1130:5: error: #error "DVD ioctls are unavailable on this system"
ioctl.c: In function 'ioctl_InvalidateAgid':
ioctl.c:1241:5: error: #error "DVD ioctls are unavailable on this system"
ioctl.c: In function 'ioctl_SendChallenge':
ioctl.c:1378:5: error: #error "DVD ioctls are unavailable on this system"
ioctl.c: In function 'ioctl_SendKey2':
ioctl.c:1515:5: error: #error "DVD ioctls are unavailable on this system"
ioctl.c: In function 'ioctl_ReportRPC':
ioctl.c:1670:5: error: #error "DVD ioctls are unavailable on this system"
ioctl.c: In function 'ioctl_SendRPC':
ioctl.c:1797:5: error: #error "DVD ioctls are unavailable on this system"
make[1]: *** [ioctl.o] Error 1
make[1]: Leaving directory `/home/lqm/tools/mplayer/MPlayer-1.0rc2/libdvdcss'
make: *** [libdvdcss/libdvdcss.a] 錯誤 2
找到ioctl.c的相應行,全部屏掉,再編譯,編譯成功。
第三步:將產生的mplayer拷貝到外置的SD卡中,同時拷貝要播放的mp3或者視頻檔案,再將SD卡插到
x210開發板右邊的SD卡卡槽中。
第四步:掛載SD卡並播放音視頻檔案:
mount /dev/mmcblk1p1 /tmp
cd /tmp
./mplayer *.mp3
/mplayer *.mp4
如果不想自己編譯,可以直接在光碟片中拷貝已經編譯好的mplayer。

來一張x210開發板的圖:

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.