[Lazarus] [Partially Solved] Cross Compile for arm-linux
Kjow
antispammoni at gmail.com
Sat Dec 12 00:44:58 CET 2009
2009/12/11 Kjow <antispammoni at gmail.com>:
> I tried with:
>
> make lcl LCL_PLATFORM=gtk2 CPU_TARGET=arm OS_TARGET=linux
> CROSSBINDIR=/home/kjow/lazarus/fpc/binutils/
> FPC=/usr/lib/fpc/2.5.1/ppcrossarm OPT="-CfSOFT -Xd -Sd"
I tried also, in lazarus root, but:
~/lazarus/$ sudo make clean all CPU_TARGET=arm OS_TARGET=linux
PP=/usr/local/bin/ppcarm OPT="-FU/usr/lib/fpc/2.5.1/units/arm-linux/"
...
Target OS: Linux for ARM
Compiling lazarus.pp
Assembling lazarus
Linking ../lazarus
/usr/local/bin/arm-linux-ld: cannot find -lX11
lazarus.pp(125,42) Error: Error while linking
lazarus.pp(125,42) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[2]: *** [lazarus] Error 1
make[2]: Leaving directory `/home/kjow/lazarus/ide'
make[1]: *** [ide] Error 2
make[1]: Leaving directory `/home/kjow/lazarus/ide'
make: *** [ide] Error 2
~/lazarus$ make lcl LCL_PLATFORM=GTK2 PP=ppcarm CPU_TARGET=arm OS_TARGET=linux
make -C lcl all
make[1]: Entering directory `/home/kjow/lazarus/lcl'
/bin/rm -f units/arm-linux/alllclunits.ppu
ppcarm -Parm -XParm-linux- -Xr -gl -Fu. -Funonwin32 -Fuforms
-Fuwidgetset -Fu/usr/lib/fpc/2.5.1/units/arm-linux/rtl -Fiinclude -FE.
-FUunits/arm-linux -darm alllclunits.pp
Free Pascal Compiler version 2.5.1 [2009/12/11] for arm
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for ARM
Compiling alllclunits.pp
Assembling alllclunits
73 lines compiled, 0.2 sec
make -C interfaces all
make[2]: Entering directory `/home/kjow/lazarus/lcl/interfaces'
make[2]: *** No rule to make target `GTK2_all', needed by `all'. Stop.
make[2]: Leaving directory `/home/kjow/lazarus/lcl/interfaces'
make[1]: *** [interfaces] Error 2
make[1]: Leaving directory `/home/kjow/lazarus/lcl'
make: *** [lcl] Error 2
cd /packager/registration
~/lazarus/packager/registration$ make PP=ppcarm CPU_TARGET=arm OS_TARGET=linux
/bin/rm -f ../units/arm-linux/lazaruspackageintf.ppu
ppcarm -Parm -XParm-linux- -Xr -gl -Fu.
-Fu/usr/lib/fpc/2.5.1/units/arm-linux/rtl -FE. -FU../units/arm-linux
-darm lazaruspackageintf.pas
Free Pascal Compiler version 2.5.1 [2009/12/11] for arm
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for ARM
Compiling lazaruspackageintf.pas
Assembling lazaruspackageintf
109 lines compiled, 0.0 sec
But now compiling with command line:
~/dev/TestARM/LazARM$ ppcarm -Xd -CaEABI -CfSOFT -CpARMV5 LAzARM.lpr
Free Pascal Compiler version 2.5.1 [2009/12/11] for arm
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for ARM
Compiling LAzARM.lpr
Fatal: Can't find unit Interfaces used by LAzARM
Fatal: Compilation aborted
kjow at kjw-linux-vm:~/dev/TestARM/LazARM$ ppcarm -Xd -CaEABI -CfSOFT
-CpARMV5 LAzARM.lpr
Free Pascal Compiler version 2.5.1 [2009/12/11] for arm
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for ARM
Compiling LAzARM.lpr
Compiling /home/kjow/lazarus/lcl/interfacebase.pp
Compiling /home/kjow/lazarus/lcl/lclstrconsts.pas
Writing Resource String Table file: lclstrconsts.rst
Assembling lclstrconsts
Compiling /home/kjow/lazarus/lcl/lcltype.pp
Assembling lcltype
Compiling /home/kjow/lazarus/lcl/lclproc.pas
Compiling /home/kjow/lazarus/lcl/fpcadds.pas
Assembling fpcadds
Compiling /home/kjow/lazarus/lcl/avglvltree.pas
Assembling avglvltree
Compiling /home/kjow/lazarus/lcl/fileutil.pas
Compiling /home/kjow/lazarus/lcl/masks.pas
Assembling masks
Assembling fileutil
Assembling lclproc
Compiling /home/kjow/lazarus/lcl/lmessages.pp
Compiling /home/kjow/lazarus/lcl/graphtype.pp
Assembling graphtype
Assembling lmessages
Compiling /home/kjow/lazarus/lcl/graphmath.pp
Assembling graphmath
Compiling /home/kjow/lazarus/lcl/themes.pas
Compiling /home/kjow/lazarus/lcl/tmschema.pas
Assembling tmschema
Compiling /home/kjow/lazarus/lcl/interfacebase.pp
Assembling interfacebase
Compiling /home/kjow/lazarus/lcl/lclintf.pas
Compiling /home/kjow/lazarus/lcl/lresources.pp
Compiling /home/kjow/lazarus/lcl/dynqueue.pas
Assembling dynqueue
Compiling /home/kjow/lazarus/lcl/lazconfigstorage.pas
Assembling lazconfigstorage
Assembling lresources
Compiling /home/kjow/lazarus/lcl/utf8process.pp
Assembling utf8process
Assembling lclintf
Compiling /home/kjow/lazarus/lcl/graphics.pp
Compiling /home/kjow/lazarus/lcl/intfgraphics.pas
Compiling /home/kjow/lazarus/lcl/icnstypes.pas
Assembling icnstypes
Compiling /home/kjow/lazarus/lcl/graphics.pp
Compiling /home/kjow/lazarus/lcl/lclrescache.pas
Assembling lclrescache
Assembling graphics
Assembling intfgraphics
Compiling /home/kjow/lazarus/lcl/imglist.pp
Compiling /home/kjow/lazarus/lcl/lclclasses.pp
Compiling /home/kjow/lazarus/lcl/lclclasses.pp
Assembling lclclasses
Compiling /home/kjow/lazarus/lcl/controls.pp
Compiling /home/kjow/lazarus/lcl/utrace.pp
Assembling utrace
Compiling /home/kjow/lazarus/lcl/propertystorage.pas
Assembling propertystorage
Compiling /home/kjow/lazarus/lcl/menus.pp
Compiling /home/kjow/lazarus/lcl/actnlist.pas
Assembling actnlist
Compiling /home/kjow/lazarus/lcl/forms.pp
Compiling /home/kjow/lazarus/lcl/maps.pp
Assembling maps
Compiling /home/kjow/lazarus/lcl/lclversion.pas
Assembling lclversion
Compiling /home/kjow/lazarus/lcl/customtimer.pas
Assembling customtimer
Compiling /home/kjow/lazarus/lcl/clipbrd.pp
Assembling clipbrd
Compiling /home/kjow/lazarus/lcl/helpintfs.pas
Assembling helpintfs
Compiling /home/kjow/lazarus/lcl/controls.pp
Compiling /home/kjow/lazarus/lcl/forms.pp
Assembling forms
Assembling controls
Assembling menus
Assembling imglist
Assembling themes
Compiling /home/kjow/lazarus/lcl/stdctrls.pp
Compiling /home/kjow/lazarus/lcl/extendedstrings.pas
Assembling extendedstrings
Compiling /home/kjow/lazarus/lcl/textstrings.pas
Assembling textstrings
Assembling stdctrls
Compiling /home/kjow/lazarus/lcl/lclmessageglue.pas
Assembling lclmessageglue
Compiling /home/kjow/lazarus/lcl/dynhasharray.pp
Assembling dynhasharray
Compiling /home/kjow/lazarus/lcl/comctrls.pp
Compiling /home/kjow/lazarus/lcl/extctrls.pp
Compiling /home/kjow/lazarus/lcl/popupnotifier.pas
Assembling popupnotifier
Assembling extctrls
Compiling /home/kjow/lazarus/lcl/toolwin.pp
Assembling toolwin
Compiling /home/kjow/lazarus/lcl/buttons.pp
Compiling /home/kjow/lazarus/lcl/imagelistcache.pas
Assembling imagelistcache
Assembling buttons
Assembling comctrls
Compiling /home/kjow/lazarus/lcl/dialogs.pp
Compiling /home/kjow/lazarus/lcl/buttonpanel.pas
Assembling buttonpanel
Assembling dialogs
Compiling /home/kjow/lazarus/lcl/extdlgs.pas
Compiling /home/kjow/lazarus/lcl/calendar.pp
Assembling calendar
Assembling extdlgs
Compiling /home/kjow/lazarus/lcl/lclmemmanager.pas
Assembling lclmemmanager
Compiling /home/kjow/lazarus/lcl/translations.pas
Compiling /home/kjow/lazarus/lcl/stringhashlist.pas
Assembling stringhashlist
Compiling /home/kjow/lazarus/lcl/lconvencoding.pas
Assembling lconvencoding
Assembling translations
Compiling /home/kjow/lazarus/lcl/lazlinkedlist.pas
Assembling lazlinkedlist
Compiling /home/kjow/lazarus/lcl/arrow.pp
Assembling arrow
Compiling /home/kjow/lazarus/lcl/checklst.pas
Assembling checklst
Compiling /home/kjow/lazarus/lcl/grids.pas
Compiling /home/kjow/lazarus/lcl/dynamicarray.pas
Assembling dynamicarray
Compiling /home/kjow/lazarus/lcl/maskedit.pp
Assembling maskedit
Assembling grids
Compiling /home/kjow/lazarus/lcl/pairsplitter.pas
Assembling pairsplitter
Compiling /home/kjow/lazarus/lcl/spin.pp
Assembling spin
Compiling /home/kjow/lazarus/lcl/filectrl.pp
Compiling /home/kjow/lazarus/lcl/shellctrls.pas
Assembling shellctrls
Assembling filectrl
Compiling main.pas
Assembling main
Assembling lazarm
Linking LAzARM
/home/kjow/lazarus/fpc/binutils/ld: skipping incompatible
/usr/lib/libX11.so when searching for -lX11
/home/kjow/lazarus/fpc/binutils/ld: skipping incompatible
/usr/lib/libX11.a when searching for -lX11
/home/kjow/lazarus/fpc/binutils/ld: cannot find -lX11
LAzARM.lpr(22) Error: Error while linking
LAzARM.lpr(22) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
I have all libraries incompatible... how make it compatible? (or where
to find these...)
Thanks
More information about the Lazarus
mailing list