On 2010-12-26 01:35-0800 Alan W. Irwin wrote:

> I have gotten a lot farther with this.  For example, with a few
> changes I got the gcd example at
> http://www.swig.org/Doc1.3/Octave.html#Octave_nn3 to work perfectly
> which verified for me that swig generates good octave interfaces.
>
> But now I need some simple octave help to achieve my goal of getting
> octave example 10 to work on Linux (and wine???) with the
> swig-generated approach.  The current issue is I am making some stupid
> mistake in how I wrap functions in octave.  Can somebody quickly
> give me a few minutes of octave advice about that issue?

Never mind.  Although I still don't know how to wrap functions properly
in octave, it turns out that the above gcd example lead me astray, and
_both_ the specific namespace (e.g., plplot_octave.plinit()) and dropped
namespace (e.g., plinit()) are available with the swig-generated
octave bindings so function wrapping is not required (for this purpose).

Once I understood that accessing the dropped namespace was not an
issue, two additional real issues had to be sorted out (revisions
11389 and 11390) and the result is x10c.m "just works" on Linux with
the swig-generated interface.  That good result fundamentally
validates this whole idea.

The current status is I am expanding the list of octave examples to be
tested to include the few more beyond standard example 10 which do not
use array arguments.  Once those additional examples give good results
on Linux, then I will try a wine test, and assuming that works, the
next step is to introduce more typemaps dealing with arrays, etc., so
that the tested examples can be expanded to the full list of both "x"
and "p" octave examples.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to