[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiled Octave 3.8.2 for Android. Plotting with gnuplot?
From: |
Daniel J Sebald |
Subject: |
Re: Compiled Octave 3.8.2 for Android. Plotting with gnuplot? |
Date: |
Sat, 20 Dec 2014 12:54:58 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 |
On 12/19/2014 10:30 PM, Forrest Carroll wrote:
I've compiled Octave 3.8.2 and all of its' dependencies, as well as most
of its' optional dependencies, minus hdf5 and Graphics Magick, for
Android. Specifically, to run on an HTC One m8.
Here's what I used for configure:
--host=arm-cortexa9_neon-linux-gnueabihf
--prefix=/home/shadowed/octave/native --disable-java --disable-gui
--without-hdf5 --with-x=no --without-framework-carbon --without-opengl
--without-framework-opengl --with-sysroot=/home/shadowed/octave/native
--with-blas=/home/shadowed/octave/native/lib/libblas.a
--with-lapack=/home/shadowed/octave/native/lib/liblapack.a
host_alias=arm-cortexa9_neon-linux-gnueabihf
LDFLAGS=-L/home/shadowed/octave/native/lib
CPPFLAGS=-I/home/shadowed/octave/native/include
It is nearly flawless. Nearly. I can't plot, or, more accurately, I
can't set the default plotter.
As far as I can tell, none of the options I've selected keep the
finished binary from plotting with gnuplot, which I have set up to
create a .png image (/sdcard2/plot.png). However, when I run:
octave: 1> graphics_toolkit("gnuplot")
It returns:
error: 'graphics_toolkit' undefined near line 1 column 1
Well, clearly the script file graphics_toolkit isn't being found because
some path setup isn't correct, or an installation is incomplete or
something.
Can you locate the file graphics_toolkit.m somewhere in an installed
directory on your system? For example, on my system it ends up in:
/usr/local/share/octave/3.7.5/m/plot/graphics_toolkit.m
Beyond that, there are a bunch of things in your setup that could be an
issue:
--prefix=/home/shadowed/octave/native
[Could be an issue in the build that's not setting up the environment
correctly.]
--without-opengl
[Could be an issue in the build, libraries, configuration that leaves
out all graphics.]
--without-framework-opengl
[Same as above.]
--with-sysroot=/home/shadowed/octave/native
[Another path issue possible whereby octave can't find the
graphics_toolkit.m script file.]
I can register gnuplot just fine, and it will show in the list of
available graphics toolkits, but Octave refuses to load it.
How so? Please show the command and list that is created for the toolkits.
Dan