View Single Post
Old 10-20-2016, 03:38 AM   #1
NotaStudio
Junior Member
NotaStudio began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2016
Device: Kindle Touch 3
How to cross compile C program for Kindle?

Hey everyone,

I want to cross compile MPlayer with libaa for my Kindle Touch 3(in order to play video with "-vo aa"). I use arm-linux-gnueabi-gcc as my compiler.
My prompts are

root@kali:~/mplayer/aalib-1.4.0# CC=arm-linux-gnueabi-gcc ./configure --cache-file=./cache_file_0 --prefix=~/mplayer/aalib-out --host=arm-linux --build=x86 --target=arm-linux --enable-cross-compile && make
(for libaa)

and

root@kali:~/mplayer/mplayer# CC=arm-linux-gnueabi-gcc ./configure --cc=$CC --ar=arm-linux-gnueabi-ar --ranlib=arm-linux-ranlib --enable-fbdev --enable-static --disable-dvdread --disable-live --disable-win32dll --disable-ivtv --disable-gui --disable-dvdnav --enable-aa --enable-cross-compile --prefix=/root/mplayer/arm-out/ && make
(for MPlayer)

and then I received a lot of errors. I guess I did something wrong. Could anyone tell me the right way to cross compile Kindle program?

Thanks in advance!
NotaStudio is offline   Reply With Quote