Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
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
Old 10-20-2016, 11:40 AM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Same way you cross-compile (or compile) for any other device -
Read the error messages and make the indicated corrections.

There are a multitude of cross-compiling tutorials on the 'net.
Use those for specific answers to specific problems, this is not the place to learn programming.

There is also a video player specific for (earlier) Kindle models to be found at this site, and a lot written about it.

You would do well to at least read about the Kindle specific video player and decide if the video you want to play falls within the abilities of the KT3.
knc1 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura H2O CROSS COMPILE on UBUNTU 16.04 x86_64 disruptivesocial Kobo Reader 1 05-04-2016 10:19 AM
Noob Cross-Compile Question icantbebothered Kindle Developer's Corner 1 05-07-2013 03:44 PM
Help with cross compile Ondra Kindle Developer's Corner 18 01-06-2013 01:25 PM
hi. Pity on me. Cross compile request. Jnotify twobob Kindle Developer's Corner 17 12-13-2012 08:30 AM
Cross Compile c code for K3 on Win 7 or XP jmseight Kindle Developer's Corner 1 04-18-2012 12:33 AM


All times are GMT -4. The time now is 01:31 AM.


MobileRead.com is a privately owned, operated and funded community.