octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave-3.3.55 and Octave-3.3.90 on OSX


From: bpabbott
Subject: Re: Octave-3.3.55 and Octave-3.3.90 on OSX
Date: Mon, 31 Jan 2011 16:19:46 +0000 (GMT)

On Jan 31, 2011, at 11:15 AM, Richard Campbell <address@hidden> wrote:

On Jan 31, 2011, at 11:08 AM, bpabbott wrote:

On Jan 31, 2011, at 10:33 AM, Richard Campbell <address@hidden> wrote:

On Jan 31, 2011, at 10:17 AM, bpabbott wrote:

> On Jan 31, 2011, at 09:18 AM, Richard Campbell <address@hidden> wrote:
>
>>
>> On Jan 31, 2011, at 8:10 AM, Ben Abbott wrote:
>>
>> > __gnuplot_get_var__ (gcf, "GPVAL_TERMINALS")
>>
>> Looks the same. I should add that I use this gnuplot with the precompiled Octave.app and it works just fine. I built it from source with no options.
>>
>>
>> octave:2> __gnuplot_get_var__ (gcf, "GPVAL_TERMINALS")
>> ans = canvas cgm corel dpu414 dumb dxf eepic emf emtex epslatex epson_180dpi epson_60dpi epson_lx800 fig gpic hp2623A hp2648 hp500c hpdj hpgl hpljii hppj imagen latex mf mif mp nec_cp6 okidata pbm pcl5 postscript pslatex pstex pstricks qms regis starc svg tandy_60dpi tek40xx tek410x texdraw tgif tkcanvas tpic unknown vttek x11 xlib xterm
>
> Ok. I suspect that regexp isn't working correctly. First check the regexp libs. Mine is below.
>
> octave:1> octave_config_info.REGEX_LIBS
> ans = -L/sw/lib -lpcre
>
> Now, make sure this is where the problem is.
>
> octave:1> peaks
> octave:2> terms = __gnuplot_get_var__ (gcf, "GPVAL_TERMINALS");
> octave:3> terms = regexp (terms, '\b\w+\b', "match");
> octave:4> disp(char(terms))
> aqua
> canvas
> cgm
> corel
> dpu414
> dumb
> dxf
> eepic
> emf
> emtex
> epslatex
> epson_180dpi
> epson_60dpi
> epson_lx800
> fig
> gif
> gnugraph
> gpic
> hp2623A
> hp2648
> hp500c
> hpdj
> hpgl
> hpljii
> hppj
> imagen
> jpeg
> latex
> lua
> mf
> mif
> mp
> nec_cp6
> okidata
> pbm
> pcl5
> pdf
> pdfcairo
> png
> pngcairo
> postscript
> pslatex
> pstex
> pstricks
> qms
> regis
> rgip
> starc
> svg
> tandy_60dpi
> tek40xx
> tek410x
> texdraw
> tgif
>
> Assuming that the regexp command does not give the proper result ...
>
> In /usr/lib, I see the following pcre libs.
>
> libpcre.0.0.1.dylib
> libpcre.0.dylib
> libpcre.dylib
> libpcreposix.0.0.0.dylib
> libpcreposix.0.dylib
> libpcreposix.dylib
>
> I'm guessing you are configured with libpcre.dylib. Try switching to libpcreposix.dylib.
>
> Ben
>
>

It works! So PCRE needs to be listed as 'required', apparently.

I do get some funny errors and warnings, but I can produce a .eps file now. Note that putting a title on the figure gives an error, but the title DOES appear on the figure.

I'm attaching test.eps from this build, and test323.eps which I made using the same commands in the Octave.app prebuilt binary. I'm using the same gnuplot build in both.

octave:1> figure;
octave:2> peaks;
octave:3> title('Test');
error: `__fltk_redraw__' undefined near line 41 column 5
error: called from:
error: /Users/campbell/Downloads/octave-3.3.90/scripts/plot/private/__axis_label__.m at line 41, column 5
error: /Users/campbell/Downloads/octave-3.3.90/scripts/plot/title.m at line 33, column 7
octave:3> print('-depsc','~/Downloads/test.eps')
warning: print.m: fig2dev binary is not available

<test.eps>
<test323.eps>
 
I assume your build does not include the FLTK stuff?

If so, then I assume that __flkt_redraw__.oct was not built. Please confirm.

octave:1> which __fltk_redraw__ 
`__fltk_redraw__' is a function from the file /Users/bpabbott/Development/mercurial/local_clone/src/DLD-FUNCTIONS/__init_fltk__.oct

Ben

Correct, it was not built. which __fltk_redraw__ doesn't return anything. The function call __fltk_redraw(); appears by itself on line 41 of __axis_labelm without any conditional statement.

Campbell
 
ok. As a temporary work around you can create a function to avoid the error. Just put it somewhere in Octave's path.

function __fltk_redraw__ ()
endfunction

We should also add a report to the bug tracker. Would you like to do that? The link to the bug tracker is below.

https://savannah.gnu.org/bugs/?group=octave

Ben


reply via email to

[Prev in Thread] Current Thread [Next in Thread]