Editing Octave for Android

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
== GNURoot Octave ==
The Android app [https://play.google.com/store/apps/details?id=com.octave Octave] in Google play is built and maintained by Corbin Champion and not part of the GNU Octave project.
The Android app [https://play.google.com/store/apps/details?id=com.gnuroot.octave GNURoot Octave] in the Google play store is built and maintained by Corbin Champion. It is not part of the GNU Octave project. Thus please use the following GitHub pages for questions and bug reports:
The source and some build instructions for the installer can be found here
* https://github.com/corbinlc/octave4android/
* http://octave.1599824.n4.nabble.com/Octave-on-Android-td4658392.html
* https://github.com/corbinlc/GNURootDebian
Because the app urges you to donate a fee some users asked on the mailing list if this is a GPL violation. One example [http://octave.1599824.n4.nabble.com/Octave-fior-Android-Requires-Payment-td4664157.html Octave for Android Requires Payment]
* https://github.com/corbinlc/octave4android
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.
There is nothing wrong with distributing binaries to only those people who pay for them. The GPLv3 requires some form of source distribution if you distribute binaries, but it doesn't require that you distribute binaries free of charge. If you're offended by Corbin charging money for his work in getting Octave working on Android, the source above makes it possible for you to duplicate his work and avoid paying him by undertaking the chore of building Octave for Android yourself. Any person with enough skill could take the Octave sources, Corbin's GitHub repository, and the Android SDK to reproduce his work without the need to pay for anything. Here is the donation dialog [https://github.com/corbinlc/octave4android/blob/b3bb7f6de607a99840f8b4e6dd40ae12460d2563/octave/src/com/octave/octaveMain.java#L375]
Some probably outdated build instructions for the older "octave4android" app:
* https://lists.gnu.org/archive/html/octave-maintainers/2013-10/msg00406.html
== Octave for Linux on Dex (Samsung Android devices) ==
[https://www.linuxondex.com/ Linux on Dex (LoD)] is an application (beta testing status) that runs on some Samsung Android devices.
To build Octave on LoD, do the following. This assumes you have LoD working. If not, follow the instructions on the LoD website.
# Many of the packages that Octave needs are not in the default Ubuntu installation. You will need to install them using <code>sudo apt install <package></code>. First, you need the compilers gcc, and gfortran. There are other packages that are essential to download: "libblas", "liblapack", "libatlas" and their development counterparts with the "-dev" extension.
# Remove all "libopenblas" packages with <code>sudo apt remove libopenblas*</code>. The OpenBLAS library from the default Ubuntu distribution does not work with Octave. You have to remove it. For details see bug {{bug|56900}}.
# Unpack the Octave source code and enter the directory. Create a build directory <code>mkdir my_build</code>, enter that directory and issue <code>../configure</code>. This will start the configure script. Look at the output at the end of the configure process to see what packages are not found by the script. Many of these will be things you want/need in terms of functionality. You can search for the packages available using the command "apt search", and install the ones you want using <code>sudo apt install <package></code> before compiling. If you want to install Octave in "my_build" be sure to issue <code>../configure --prefix=`pwd`</code> from this directory.
# In the {{Path|my_build}} directory issue <code>make</code> and <code>make install</code>.
Now you should have a working installation in, e.g., {{Path|/home/dextop/path_to/octave-5.1.0/my_build/}}.
# 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.

Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: