參考資訊:
https://www.freebasic.net/
https://sourceforge.net/projects/fbc/files/
https://www.freebasic.net/wiki/DevCrossCompiling
步驟如下:
$ sudo dpkg --add-architecture arm64 $ sudo apt-get update $ sudo apt-get install libncurses-dev:arm64 $ cd $ wget https://sourceforge.net/projects/fbc/files/FreeBASIC-1.10.1/Binaries-Linux/FreeBASIC-1.10.1-linux-x86_64.tar.gz/download -O FreeBASIC-1.10.1-linux-x86_64.tar.gz $ tar xvf FreeBASIC-1.10.1-linux-x86_64.tar.gz $ sudo mv FreeBASIC-1.10.1-linux-x86_64 /opt/fbc $ wget https://sourceforge.net/projects/fbc/files/FreeBASIC-1.10.1/Source/FreeBASIC-1.10.1-source.tar.gz/download -O FreeBASIC-1.10.1-source.tar.gz $ tar xvf FreeBASIC-1.10.1-source.tar.gz $ cd FreeBASIC-1.10.1-source $ vim makefile +165 prefix := /opt/fbc_aarch64 $ export PATH=/opt/fbc/bin/:$PATH $ make TARGET=aarch64-linux-gnu rtlib gfxlib2 compiler $ sudo make install TARGET=aarch64-linux-gnu