Maybe I'm the first one to try run LCL on kindle in this forum, I mean that E-ink reader.
Well, I followed the wiki ( wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM ).
Actually the guide is not working for kindle without some mod.
Here is what I did (using msys):
cd /home/binutils-2.24
./configure --target=arm-linux-gnueabi --disable-werror
make
make install
copy the bin to “C:\MinGW\msys\1.0\home\fpc\binutils”, and rename to “ar”, “ld”,“as”.
cd C:\MinGW\msys\1.0\home\fpc\
set path=C:\MinGW\msys\1.0\home\fpc\bin\i386-win32\;%path%
make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=C:\MinGW\msys\1.0\home\fpc\binutils OPT=-dFPC_ARMEL INSTALL_PREFIX=C:\MinGW\msys\1.0\home CROSSOPT="-CpARMV7A -CfVFPV3"
add these to fpc.cfg
#IFDEF CPUARM
-CpARMV7A
-CfVFPV3
#ENDIF
Kindle use GTK2 and the title should be like this ->
http://wiki.mobileread.com/wiki/Running_X_apps_on_Kindle_TouchCopy the lib form Kindle to computer through USBNetwork.
Finally the FPC can compile for Kindle.
Well, GTK is working. I should post a screenshot here, unfortunately I don’t why I can’t make a screenshot at that state.
You can download my source and bin file below and try, a jailbreaked Kindle is needed.
Now the problem is LCL is not working. Here is the output run from kindle-xterm:
[FORMS.PP] ExceptionOccurred
Sender=EStringListError
Exception=String list does not allow duplicates
Stack trace:
$0004FDE4
$0014EB70
$0019BF38
$0013FB0C
$00131A90
$0014356C
$0002C470
$0002F218
$00192644
$0003B7A4
TApplication.HandleException String list does not allow duplicates
Stack trace:
$0004FDE4
$0014EB70
......
I really hope LCL can work on Kindle.
Any ideas? Thank you very much.