Skip to content

brew installed octave contains no graphics toolkit, preventing github action headless plots #5687

Closed Answered by cho-m
fangq asked this question in Linux
Discussion options

You must be logged in to vote

I think it should be able to use fltk but doesn't seem to be found, e.g.

octave-cli --eval 'available_graphics_toolkits()'
ans = {}(1x0)

Most functional option is just standard Qt octave which may still work in CI given we do sometimes run tests on GitHub runner.

octave --eval 'available_graphics_toolkits()'
ans =
{
  [1,1] = qt
}

It looks like your Ubuntu test runs via gnuplot.

On macOS, Octave can use gnuplot though output won't actually work unless unmaintained AquaTerm.app (aquaterm cask) is installed so not ideal. You can see if installing just gnuplot gets you past the error

brew install gnuplotoctave-cli --eval 'available_graphics_toolkits()'
ans =
{
  [1,1] = gnuplot
}

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fangq
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Linux
Labels
None yet
3 participants