Hi, I am new to Lazarus.
Basically, I followed below tutorial..
http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARMBelow is my system information.
- Host OS: Ubuntu 13.10
- binutils: 2.23
- FPC: 2.6.3
- Lazarus: 1.0.7binutils is built for arm-linux.
binutils and FPC have been built and tested console pascal code has been built with no error.
The executable binary code was moved and tested in BeagleBone Black and worked fine.Lazarus build was fine.
But the problem is about
LCL and Package Registration.
Profile to Build:
Clean Up + Build allLCL widget type:
gtk 2Target OS:
LinuxTarget CPU:
armOptions:
-XParam-linux-Clean up:
Clean allBut the compilation claims errors as below.
Compiling resource /home/theuser/.lazarus/units/arm-linux/gtk2/lazarus.or
Linking /home/theuser/.lazarus/bin/arm-linux/lazarus
/usr/local/bin/arm-linux-ld: cannot find -lpthread
/usr/local/bin/arm-linux-ld: cannot find -ldl
/usr/local/bin/arm-linux-ld: cannot find -lX11
/usr/local/bin/arm-linux-ld: cannot find -lgdk_pixbuf-2.0
/usr/local/bin/arm-linux-ld: cannot find -lgtk-x11-2.0
/usr/local/bin/arm-linux-ld: cannot find -lgdk-x11-2.0
/usr/local/bin/arm-linux-ld: cannot find -lgobject-2.0
/usr/local/bin/arm-linux-ld: cannot find -lglib-2.0
/usr/local/bin/arm-linux-ld: cannot find -lgthread-2.0
/usr/local/bin/arm-linux-ld: cannot find -lgmodule-2.0
/usr/local/bin/arm-linux-ld: cannot find -lpango-1.0
/usr/local/bin/arm-linux-ld: cannot find -lcairo
/usr/local/bin/arm-linux-ld: cannot find -latk-1.0
/usr/local/bin/arm-linux-ld: cannot find -lc
lazarus.pp(129,42) Error: Error while linking
lazarus.pp(129,42) Fatal: There were 1 errors compiling module, stopping
TMessagesView.CollectLineParts WARNING: 614<>599 SrcLine=lazarus.pp(129,42) Fatal: There were 1 errors compiling module, stopping
TExternalToolList.Run Exception: /home/theuser/lazarus/ide/lazarus.pp(129,42) Fatal: There were 1 errors compiling module, stopping
TMainIDE.DoOpenEditorFile Fixing file name: /home/theuser/lazarus/ide/ -> /home/theuser/lazarus/ide
TMainIDE.DoOpenEditorFile skipping directory /home/theuser/lazarus/ide
TBuildManager.SetBuildTargetIDE OS=Linux CPU=arm WS=gtk2
[WARNING] (../../../lib/unity-gtk-action-group.c:1030):unity_gtk_action_group_disconnect_shell: runtime check failed: (shell->action_group == group)
For the link error, I copied and moved library files from /lib and /usr/lib of BeagleBone Black to host Ubuntu.
I searched web, but I couldn't find the reason. Please help me.