I have installed GNU Octave 3.6.4 and 3.8.1 versions on one machine (OpenSUSE Linux 13.1, x86-64). Version 3.6.4 was out of the box, version 3.8.1 I build by myself from sources (configure-make-make install).
In octave-3.6.4 I have such output:
octave-3.6.4> available_graphics_toolkits
ans =
{
[1,1] = fltk
[1,2] = gnuplot
}
octave-3.6.4> loaded_graphics_toolkits
ans =
{
[1,1] = fltk
}
In octave-3.8.1 I have gnuplot only:
octave-3.8.1> available_graphics_toolkits
ans =
{
[1,1] = gnuplot
}
octave-3.8.1> loaded_graphics_toolkits
ans =
{
[1,1] = gnuplot
}
How can I load the FLTK graphics toolkit? I try so:
octave-3.8.1> register_graphics_toolkit("fltk")
octave-3.8.1> available_graphics_toolkits
ans =
{
[1,1] = fltk
[1,2] = gnuplot
}
octave-3.8.1> graphics_toolkit("fltk")
error: __init_fltk__: not available without OpenGL and FLTK libraries
error: called from:
error: /usr/local/share/octave/3.8.1/m/plot/util/graphics_toolkit.m at line 74, column 5
Why FLTK properly loads in octave-3.6.4 but doesn't in octave-3.8.1? How can I connect octave-3.8.1 to OpenGL and FLTK libraries?
What do you see if you execute
octave_config_info().GRAPHICS_LIBS
in your 3.8.1 build? It should return something like
ans = -lfltk_gl -lfltk -lX11
If not then configure wasn't able to find your fltk dev libs. See config.log why. Most probably because you haven't installed them.