Forum > Android-JVM
Compile to a tablet?
MarkMLl:
OP: You might find https://hackaday.com/2020/10/07/linux-fu-the-linux-android-convergence/#more-429444 worth reading.
MarkMLl
engkin:
--- Quote from: regressist on October 27, 2021, 09:54:17 pm ---I know practically nothing of what you are saying and do not know where to start!! I will try of course, I like too much your solution...
--- End quote ---
I would suggest you start with laz4android and see if it works on Windows xp.
You only need to be patient and when you get stuck don't hesitate to post your questions. The forums are full of friendly people.
alpine:
--- Quote from: ojz0r on October 27, 2021, 08:48:36 pm ---I have the FPC compiler installed in Termux on my android phone.
This is where i usually do all my (hobby) coding and then compile and run them in the Termux terminal, so no "native" apk.
--- End quote ---
That's the beauty of the forum life!
Installed the Termux from the app store, then: Settings->Applications->Termux->Permissions, enabled the Storage permission.
In the Termux console:
--- Code: ---$ pkg install clang
$ pkg install fp-compiler
$ termux-setup-storage
--- End code ---
the last one creates a new directory in termux, ~/storage, which contains simlinks to /storage/emulated/0 and can be accessed by a standard gui file manager.
Wrote 1.pas with nano (text editor):
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---begin writeln('hello!');end.
And then:
--- Code: ---$ fpc 1.pas
$ ./1
hello!
--- End code ---
Just simple as that! It is just Bluetooth keyboard missing.
Thanks ojz0r!
regressist:
--- Quote from: engkin on October 27, 2021, 11:52:04 pm ---
--- End quote ---
I would suggest you start with laz4android and see if it works on Windows xp.
You only need to be patient and when you get stuck don't hesitate to post your questions. The forums are full of friendly people.
[/quote]
Thank you, yes it works, it's like the lazarus-2.0.12-fpc-3.2.0-win32 with which I compiled my program. But the result is the same, just an *.exe, I thought it would come out with a linux/android executable. I did not find any menu to have an android output (surely I'm wrong on this)
S
engkin:
--- Quote from: regressist on October 28, 2021, 10:44:42 am ---Thank you, yes it works, it's like the lazarus-2.0.12-fpc-3.2.0-win32 with which I compiled my program. But the result is the same, just an *.exe, I thought it would come out with a linux/android executable. I did not find any menu to have an android output (surely I'm wrong on this)
--- End quote ---
Yes, by default, it gives an exe file. You can change that by changing the target OS to Android, and target CPU to Arm. Both are in the Project Options window. You can open this window from the main menu under Project, or using CTRL+Shift+F11 key shortcut if I recall correctly.
I am not by a computer now, I'll try to post a screenshot later if you did not find them.
Navigation
[0] Message Index
[#] Next page
[*] Previous page