Thank you very much for the example xiniman.
I then tried to cross compile it for arm/android but the compilation fails because somewhere there is a reference to gtk3. If anyone could help me cross compile it for Android I would be grateful.
I just compiled your example (Linux) using the commandline compiler and there is no sign whatsoever of such dependencies.
cd LazWebServer-main
fpc -FEbin -Fusrc -Fusrc/jwt_unit -dUseCThreads -dSmartDebugLogWriteActive -B prj/lazwebserver.lpr
I suspect it might be related to the android part of things. Are you able to paste some log that is able to show what exactly the compiler is looking for ?
I do not have a cross setup for android for this machine (sorry as I have no intention to do so either (*)) so you might perhaps have more luck with someone that is more versed in/with android.
(*) just discovered
multipass 
.
A perhaps possible solution for you:
- use
FPCUpDeluxe to install (only) FPC 3.2.2 somewhere temporary (e.g. do not mix with your current setup unless you really want to)
- Use FPCUpDeluxe to to add an arm android cross-compiler
- download and extract (or clone) your project source-files
- cd LazWebServer-main
- /full/path/to/your/temporary/installed/FPCUpDeluxe/directory/fpc/bin/[x86_64-linux]/fpc.sh -FEbin -Fusrc -Fusrc/jwt_unit -dUseCThreads -dSmartDebugLogWriteActive -Parm -Tandroid -B prj/lazwebserver.lpr
The [x86_64-linux] part is specific to my host so might be different for you in case using another host OS.
Though I am not 100% sure about (your) ARM (target) options. Might be that there is need to specify some additional details (depending on your requirements).