Problem description
In an octave sesion, when executing a (any) command, throw an error:
error: feval: /usr/lib/octave/5.2.0/oct/x86_64-pc-linux-gnu/init_fltk.oct: failed to load: libfltk_gl.so.1.3: cannot open shared object file: No such file or directory
error: called from
graphics_toolkit at line 91 column 5
figure at line 91 column 7
gcf at line 63 column 9
tmrepl at line 41 column 21
~/.TeXmacs/plugins/octave/octave/tmstart.m at line 47 column 1
warning: gh_manager::do_close_all_figures: some graphics elements failed to close.
Problem reproduction
- Without fltk or gnuplot installed on the system. By default, octave will use qt as the plot engine.
- Open TeXmaxs, open an octave session, execuate any command
Problem attribution
From /octave/progs/init-octave.scm, it seems that the command to open a new octave instance is "octave-cli". I tried to execute "available_graphics_toolkits", the result is
ans =
{
[1,1] = fltk
}.
Also, the result of command "graphics_toolkit" in octave is
ans = fltk.
After I searched for any similar issue, I found this. Perhaps it's because octave-cli does not recognize "qt" as a plot toolkit.
Possible solution
- Use "octave --no-gui" as the command to create a new octave instance.
- Install fltk or gnuplot package
Problem description
In an octave sesion, when executing a (any) command, throw an error:
Problem reproduction
Problem attribution
From /octave/progs/init-octave.scm, it seems that the command to open a new octave instance is "octave-cli". I tried to execute "available_graphics_toolkits", the result is
Also, the result of command "graphics_toolkit" in octave is
After I searched for any similar issue, I found this. Perhaps it's because octave-cli does not recognize "qt" as a plot toolkit.
Possible solution