[Gambas-user] gambas 100% CLI: is it possible?
chrisml at deganius.de
Fri Oct 25 08:03:15 CEST 2019
Am 25.10.19 um 00:47 schrieb roberto:
> i have headless ARM embedded board.
> I log in by serial line and/or ssh.
> I wan to develop a program, but i dislike python, . I can do in bash,
> maybe, but i prefere to use a compiled executable.
> So, i ask if it is possible in gambas to write, compile and package a
> program using only the command line.
It is possible, but not convenient. In theory you can write the program
with Vim, then compile it with:
gbc3 -a /path/to/sourcedir
Then pack and create the executable with:
gba3 -o /path/to/sourcedir/progname.gambas /path/to/sourcedir
Then install it as root:
cp /path/to/sourcedir/progname.gambas /usr/bin/progname.gambas
> In alternative, maybe i can install GUI and use remote desktop from
> another PC, but it will be a bad workaround i prefere to avoid.
I would try to use the IDE to create the project itself and its files
and directory structure as a command line project on a X86 computer.
You can also compile it on the X86 computer and the copy to and run the
Gambas executable on the ARM computer. This is what I do with some
programs that run on a Raspberry Pi.
As long as you only use Gambas methods and components inside your
program it should run the in the same way on X86 and ARM.
Dies ist keine Signatur
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the User