On Sat, 25 Mar 2023 23:25:07 +0100, Bo Berglund via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:
>I have latest Lazarus/Fpc on my Windows 10 main computer, but also on a number >of RaspberryPi (3 and 4) devices. If I create an application on Windows and >want >to build the same for RPi, then I have to transfer the sources (via Subversion) >to the RPi and build there. > >And doing so requires me to use VNC to connect to the RPi, which is less than >optimal. > >Now I wonder how to set up FPC on Windows to cross-compile for Raspberry Pi >(arm6/arm7 processor and Debian based Linux)? > >The freepascal Wiki articles I have found are either outdated or do not >describe >enough in detail how one can do this... > >So is there some up-to-date article describing it? I have found this: https://wiki.freepascal.org/Cross_compiling and it actually mentions RaspberryPi in passing, so I guess that is encouraging. Since I have RPi units with Lazarus/FPC installed there is also a directory: $HOME/lib/fpc/3.2.2/units which contains subdir arm-linux If I tar this arm-linux dir I get a file arm-linux.tgz which is about 52 MB in size. Do I extract this into my Windows FPC 3.2.2 installation somewhere in order to be able to cross-compile? Below the Lazarus installation dir /dev/lazarus/2.2.4 I also have this dir: /dev/lazarus/2.2.4/units/arm-linux and this is 233 KB in size. Do I tar and copy this too into my Windows Lazarus/FPC installation? It contains only 2 subdirs: /dev/lazarus/2.2.4/units/arm-linux/gtk2 /dev/lazarus/2.2.4/units/arm-linux/nogui If so, where do I deposit these files on Windows? I have used the SourceForge installer to get the Lazarus 2.2.4 installed. Do I drop them off into a new ...\fpc\3.2.2\units\arm-linux directory even though they came from two different places on the live system? Grateful for some advice, I have never done this ever before... -- Bo Berglund Developer in Sweden _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal