[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with Octave standalone
From: |
Ian McCallion |
Subject: |
Re: Help with Octave standalone |
Date: |
Sun, 15 Mar 2020 12:00:14 +0000 |
On Fri, 13 Mar 2020 at 16:37, Ian McCallion <address@hidden> wrote:
>
> On Fri, 13 Mar 2020 at 15:21, ashwin damle <address@hidden> wrote:
> >
> >
> >
> > On Fri, 13 Mar 2020 at 09:21, ashwin damle <address@hidden> wrote:
> >>
> >>
> >>
> >> On Fri, 13 Mar 2020 at 06:43, Mike Miller <address@hidden> wrote:
> >>>
> >>> On Fri, Mar 13, 2020 at 05:08:50 +0530, ashwin damle wrote:
> >>> > Could you please let me know how you set the OCTAVE_HOME in your windows
> >>> > 10? I added a variable called
> >>> > OCTAVE_HOME->C:\Octave\Octave-5.2.0\mingw64.
> >>>
> >>> I'm not sure how it helps, since Octave can install in any directory,
> >>> but I set OCTAVE_HOME to C:\Program Files\Octave\5.2.0\mingw64.
> >>>
> >>> > It does not work. Please guide.
> >>>
> >>> It works for me.
> >>>
> >>> Good luck,
> >>>
> >>> --
> >>> mike
> >>
> >>
> >> Hello,
> >>
> >> I will try and update you on this. I have no idea why it is not working. I
> >> have done this before and it worked with older version of GNU Octave. I
> >> will check.
> >>
> >> At least I know that I am not doing anything incorrect.
> >>
> >> Thank you.
> >> Ashwin
> >> --
> >> Ashwin Damle
> >
> >
> > Hello Support,
> >
> > FYI, v4.4.1 does not show the above problem.
> >
> > I cannot fathom why I am not able to use v 5.2. I used version 4.4.1 for
> > now.
> >
> > Thanks,
> > --
> > Ashwin Damle
>
> I am having a related problem. I'm not invoking the interpreter from
> C++ but from a commandline, but I need to call octave-cli.exe directly
> rather than via octave.vbs because the latter creates a new
> commandline window. Prior to Octave 5 there was no problem, but with
> Octave 5.2 suddenly graphics_toolkit('qt'), at least, does not work.
> The octave.vbs sets up several environment variables before calling
> octave.exe and clearly these need to be duplicated. I will report back
> when I've decoded octave.vbs.
I am having great difficulty with this and I think there is a bug in
Octave 5.2 although I'd be happy to be proved wrong.
The script below demonstrates the problem:
----------------------------
graphics_toolkit('qt');
myfont={'fontsize',25,'fontweight','bold'};
mygraphs={'-dpng','-S800,800'};
mywidegraphs={'-dpng','-S1800,800'};
set(0, 'defaulttextfontsize', 15)
figure(1, 'visible', 'off')
xrange = 1:10;
ssd=xrange.+rand(1,10);
plot(xrange, [ssd; mean(ssd)*ones(1,10)], 'Linewidth',2);
legend('Actual','Average over touch')
axis([0, xrange(end)+2, min(ssd)-5, 5+max(10,max(ssd))])
xlabel('Row number', myfont{:})
ylabel('Milliseconds', myfont{:})
title('Standard Deviation (Touch only)', myfont{:})
grid ('on')
print (1, [graphics_toolkit, '1.png'], mywidegraphs{:})
------------------------
It runs fine when launching Octave from a commandline using the command
- c:\octave\octave-5.2.0\octave.vbs
- C:\octave\octave-5.2.0\octave.vbs --no-gui
- C:\octave\octave-5.2.0\mingw64\bin\octave.bat --gui
It fails when when launching Octave from a commandline using the command
- C:\octave\octave-5.2.0\mingw64\bin\octave.bat --no-gui
and the resulting output is given below.
--------------------------
octave:6> plottest
*** Building graphs
error: graphics_toolkit: qt toolkit is not available
error: called from
graphics_toolkit at line 81 column 5
plottest at line 2 column 3
octave:6>
--------------------------------
The common property of the situations in which it works is that a new
window is launched for all of them, and in the case where it does not
work Octave "borrows" the commandline window it was launched from.
Unfortunately for me this is a show-stopper for use of 5.2.0 so I will
be happy to run other tests as needed to help track down the problem.
Cheers... Ian
- Re: Help with Octave standalone, ashwin damle, 2020/03/12
- Re: Help with Octave standalone, Mike Miller, 2020/03/12
- Re: Help with Octave standalone, ashwin damle, 2020/03/12
- Re: Help with Octave standalone, ashwin damle, 2020/03/13
- Re: Help with Octave standalone, Ian McCallion, 2020/03/13
- Re: Help with Octave standalone,
Ian McCallion <=
- Re: Help with Octave standalone, Markus Mützel, 2020/03/15
- Re: Help with Octave standalone, Ian McCallion, 2020/03/15
- Re: Help with Octave standalone, Markus Mützel, 2020/03/15
- Re: Help with Octave standalone, Ian McCallion, 2020/03/15
- Re: Help with Octave standalone, Markus Mützel, 2020/03/15