Marc Weustink wrote:
ik wrote:
Hi,

While google suggest rewards for developing applications for Android,
there is an open source firmware named OpenMoko
(http://openmoko.org/).
I asked Michael Shiloh what are some of the requirement in building
apps in different compilers (FPC to be exact, and I also mentioned
Lazarus :)). Well "all" that is required is to bind ourself to the C
libraries.

I wonder what does it mean (other then binding) to make FPC and
Lazarus to support such environment.

I've been playing with that thought also (I've been following that project for a while now). It supports X and gtk so that part should work and AFAIK it runs some arm-linux so imo fpc could genererste some exe. Since there wasn't an (easy) emulator environment, I stopped thinging about it and didn't test.

OK, thinks have inmroved and you now can run a qemu emulator :)

I did some tests.
First, just using the gnu-arm-linux binutils, I compiled a arm-linux trunk fpc and compiled a test (RTTIdump) console app. It runs fine on the emulated moko.

Second I tried one of my simple test gtk2 apps. It compiles, but failed to link since the gnu-arm-linux binutils don't understand the format used for the X, gdk, gtk libs.

I should have done some more initial reading, since openmoko brings its own binutils. After installing the openmoko toolchain I tried and linking my testapp failed again. Now ld was complaining that the .o files of the rtl had a wrong eabi version.
Sure, true, indeed, I forgot to recompile fpc.
And that ends in:
/net/thunder/mnt/mirror1/src/fpc/trunk/rtl/units/arm-linux/system.s: Assembler messages: /net/thunder/mnt/mirror1/src/fpc/trunk/rtl/units/arm-linux/system.s:15225: Error: selected processor does not support `rfs r0' /net/thunder/mnt/mirror1/src/fpc/trunk/rtl/units/arm-linux/system.s:15228: Error: selected processor does not support `wfs r0' /net/thunder/mnt/mirror1/src/fpc/trunk/rtl/units/arm-linux/system.s:19155: Error: selected processor does not support `stfd f0,[r13]'
....

It seems that the used arm core has no floatingpoint unit.

Does fpc support softfloat ? (if yes, how to use ?)

Marc




_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to