Open niemand0 opened 1 year ago
I can confirm this frustrating error also on macOS Ventura 13.4 + Micromamba V1.4.4 — so far only homebrew can successfully install octave for macOS users...
We are not related to these docs https://wiki.octave.org/Octave_for_macOS...
We don't support gui on osx and I am not sure what it will take to get it supported. If interested, you'd likely want to initiate an effort to get it added in this feedstock.
Thanks @ngam, is there some way to inform a user when installing a package that some functionality is not working, i.e. how are we supposed to know conda-forge doesn't support the GUI when using macOS?
edit: I assume the GUI did work at some point in the past which is why the Octave wiki suggests the GUI option works?
I don’t think we ever had the GUI working on macOS. It’s likely because we would need to link things better to the system library. I am afraid someone will have to fix it when they have time. I will try to have a look in the coming weeks. Maybe @matthiasdiener can offer a better answer?
Just FYI:
You've got qt and qscintilla2 packages there in the recipe/meta.yaml
requirements. Those are the main requirements for a GUI octave. And the recipe/build.sh
looks like it's trying to build a Qt-enabled GUI version.
--without-qrupdate \
--with-qt=5 \
--with-magick=GraphicsMagick \
I'd guess that the conda package build environment here isn't making Qt available properly, so the Octave ./configure
doesn't actually see it, and builds a non-GUI version. And I'd guess that is because Qt does not produce "correct" pkg-config files on macOS, which is generally how Octave's build detects Qt. The Homebrew qt formula has to do some hackery to produce usable pkg-config files for it on macOS. You may need to do the same if you want to build Qt-using GUI apps like Octave.
Here is the formula from homebrew QT 5 and 6:
https://github.com/Homebrew/homebrew-core/blob/master/Formula/q/qt%405.rb
https://github.com/Homebrew/homebrew-core/blob/master/Formula/q/qt.rb
And the octave formula itself:
https://github.com/Homebrew/homebrew-core/blob/master/Formula/o/octave.rb
Hope this helps anyone.
I managed to run the octave gui in macOS Sonoma by manually creating the "octave" folder inside the ".config" folder and then running the octave gui command in the terminal after installing octave through homebrew.
To access the ".config" folder I had to manually type "/users/your_username/.config" in the "go to folder" function of finder.
Solution to issue cannot be found in the documentation.
Issue
I updated octave from 8.1.0 to 8.2.0:
I followed the steps given in the Octave for macOS wiki page for Anaconda:
But the output is always:
Same issue exists in octave 8.1.0.
Installed packages
Environment info