Hi all,
I'm writing a tutorial to cross compile for arm-linux, but there are
some problems yet.
Here first revision:
http://forum.lazarus.freepascal.org/index.php/topic,8084.0.html

I don't know if all steps are right, infact FPC compile simplest code
and my arm-linux device runs that, but I can't get Lazarus cross
compiling... it returns: "/tmp/project1.lpr(1,1) Fatal: Can't find
unit system used by Project1"

For command line FPC compiling I tried more complex program, with
other units than default, but it give error. I tried the example
program linked here:
http://lists.lazarus.freepascal.org/pipermail/lazarus/2009-December/047424.html
Precisely this: http://fpc4gp2x.eonclash.com/downloads/gp2x_tutorial.7z

This is the console output:

~/programmazione/gp2xdemo$
~/lazarus/fpc/2.5.1/lib/fpc/2.5.1/ppcrossarm -Xd -CaEABI -CfSOFT
-CpARMV5 gp2x_tutorial.dpr
Free Pascal Compiler version 2.5.1 [2009/12/09] for arm
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for ARM
Compiling gp2x_tutorial.dpr
Assembling gp2x_tutorial
Linking gp2x_tutorial
/home/kjow/lazarus/fpc/binutils/ld: skipping incompatible
/usr/lib/libSDL.so when searching for -lSDL
/home/kjow/lazarus/fpc/binutils/ld: skipping incompatible
/usr/lib/libSDL.a when searching for -lSDL
/home/kjow/lazarus/fpc/binutils/ld: cannot find -lSDL
gp2x_tutorial.dpr(137,45) Error: Error while linking
gp2x_tutorial.dpr(137,45) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

Here files in gp2xdemo:
backup                  gp2x_tutorial.dpr   gp2x_tutorial.o  SDL.o
CleanupFiles.bat        gp2x_tutorial.~dpr  image.bmp        SDL.pas
CompileAux.bat          gp2x_tutorial.dsk   InitFiles.bat    SDL.~pas
CompileMain.bat         gp2x_tutorial.~dsk  jedi-sdl.inc     SDL.ppu
CompileProject.bat      gp2x_tutorial.dsm   link.res         SDL.s
gp2x_tutorial.cfg       gp2x_tutorial.exe   pgd.bmp
gp2x_tutorial.compiled  gp2x_tutorial.gpe   SDL.dcu
gp2x_tutorial.dof       gp2x_tutorial.lpi   SDL.dll

Thank you!

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to