Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 46888

How to cross compile C program for Kindle?

$
0
0
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!

Viewing all articles
Browse latest Browse all 46888

Trending Articles