Octave for Android: Difference between revisions

added info about termux
m (Siko1056 moved page Android to Octave for Android: Adapt title to current standards.)
(added info about termux)
Line 7: Line 7:


The implementation has been done in close cooperation with the Octave developers and makes use of the Octave source code without essential changes. Thus, it is fully compatible with the versions of Octave on other platforms.
The implementation has been done in close cooperation with the Octave developers and makes use of the Octave source code without essential changes. Thus, it is fully compatible with the versions of Octave on other platforms.
However, note that these repositories have not been updated for several years.


Some probably outdated build instructions for the older "octave4android" app:
Some probably outdated build instructions for the older "octave4android" app:
Line 29: Line 30:
# If you set the graphics toolbox to "gnuplot", Octave should generate plots correctly. If it does not, set the environment variable GNUTERM to x11. The default shell in LoD is bash, and you can either issue <code>export GNUTERM=x11</code> in the bash terminal or in your octave session issuing "setenv GNUTERM x11". You can also add <code>setenv GNUTERM x11</code> to your {{Path|.octaverc}} file to do this automatically.
# If you set the graphics toolbox to "gnuplot", Octave should generate plots correctly. If it does not, set the environment variable GNUTERM to x11. The default shell in LoD is bash, and you can either issue <code>export GNUTERM=x11</code> in the bash terminal or in your octave session issuing "setenv GNUTERM x11". You can also add <code>setenv GNUTERM x11</code> to your {{Path|.octaverc}} file to do this automatically.
# If you want to use Qt graphics it will take some work, and may or may not be possible. It has not been tested by anyone. You will need to download the package [https://github.com/termux/libandroid-shmem libandroid-shmem], get it working, and then recompile Octave linking to this library. There are more detailed instructions regarding the compilation on the github website.
# If you want to use Qt graphics it will take some work, and may or may not be possible. It has not been tested by anyone. You will need to download the package [https://github.com/termux/libandroid-shmem libandroid-shmem], get it working, and then recompile Octave linking to this library. There are more detailed instructions regarding the compilation on the github website.
== Octave on Termux ==
[https://termux.com Termux] is a Terminal Emulator for Android. You can install it from [https://play.google.com/store/apps/details?id=com.termux Play store] or [https://f-droid.org/repository/browse/?fdid=com.termux F-Droid].
You can directly install Octave in Termux using the repository by [https://github.com/its-pointless/gcc_termux its-pointless].
<code>
wget https://its-pointless.github.io/setup-pointless-repo.sh
sh setup-pointless-repo.sh
apt install octave
</code>
Graphics - Using a Distro in Termux:
You can [https://github.com/EXALAB/AnLinux-App install a distro] like Debian, Ubuntu, Arch or Alpine (this consumes less disk space), and then install Octave from the package manager of that distro. You can also install desktop environments and use VNC Server to use Octave's graphical capabilities.  In many android devices, only the graphics toolkit "gnuplot" works.


[[Category:Installation]]
[[Category:Installation]]
21

edits