Update on crosscompiling for BBB (BeagleBone Black) from Win8.1.
As stated previously, I use a normal install by fpcup on a Win8.1 pc, with FPC 2.7.1 and Laz 1.3
(fpcup.exe --fpcURL="2.7.1" --lazURL="1.3")
Next, install the crossbinutils (see link below) in the directory "cross".
https://bitbucket.org/reiniero/fpcup/downloads/CrossFPC_binutils_libs.7zNext, copy the whole "/lib" directory (only the files, not the directories) from your BBB into "cross/lib/arm-linux" (overwrite/replace).
Including all links !!!!!
This copies more than strictly needed, but it will work nevertheless.
(I am a bit lazy ...)
Next, run:
fpcup.exe --cputarget="arm" --ostarget="linux" --fpcURL="2.7.1" --lazURL="1.3" --fpcOPT="-dFPC_ARMHF"
I found out (the hard, very time consuming way) that the "-dFPC_ARMHF" is necessary to prevent access violation errors from scrollbars on arm in gtk2 !!!!
Include "-dFPC_ARMHF" in your project options (Compiler Options / Other / Custom options).
(I also include CROSSOPT="-Caeabihf -Cparmv7 -CfVFPv3", but I do not know if this is strictly necessary).
Set target OS: Linux.
Set target CPU: arm.
Include "cross/lib/arm-Linux" in your Library search path (Compiler Options / Paths / Libraries)
Crosscompile ... add missing link files to "cross/lib/arm-Linux" crosscompile ... until error free.
The above worked for me. I hope it will also work for you !
Enjoy !!!
ps:
Forgot to mention that my BBB runs Arch Linux (hardfloat) !!
This is a very good distro for BBB, but needs some extra work for e.g. a working graphical system.
All libs are inside /lib, very convenient.
Also no Lazarus avaiable --> thats why I need crosscompile from Windows.