bugGNU Octave - Bugs: bug #65625, Build failure on macOS with Qt6...

 
 

bug #65625: Build failure on macOS with Qt6 6.7.0 from Homebrew

Submitter:  Markus Mützel <mmuetzel>
Submitted:  Mon 22 Apr 2024 01:21:33 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 9.1.0 Operating System:  * Mac OS
Fixed Release:  9.2.0 Planned Release:  9.2.0
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 22 Apr 2024 05:22:08 PM UTC, comment #2: 

The CI successfully built again after that change. (However, I don't know if bug #65605 is an issue also on that platform.)

Closing as fixed.

Markus Mützel <mmuetzel>
Group administrator
Mon 22 Apr 2024 03:58:21 PM UTC, comment #1: 

IIUC, we are using the Qt Widgets module without requiring it directly. That is probably a mistake.
It might have been that that Qt module was "coincidentally" pulled in in previous versions of Qt. But it looks like that is no longer the case (at least on macOS).

The following change hopefully fixes the build issue:
https://hg.savann ... /rev/f428a432ed4f

Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
Mon 22 Apr 2024 01:21:33 PM UTC, original submission:  

The CI currently fails to build on macOS with build errors like the following:

In file included from ../libgui/src/news-reader.cc:36:
In file included from ../libgui/src/gui-preferences-nr.h:29:
../libgui/src/gui-preferences.h:32:10: fatal error: 'QStyle' file not found
#include <QStyle>
         ^~~~~~~~
1 error generated.
make[2]: *** [libgui/src/libgui_src_la-news-reader.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
../libgui/src/octave-dock-widget.cc:31:10: fatal error: 'QApplication' file not found
#include <QApplication>
         ^~~~~~~~~~~~~~
../libgui/src/main-window.cc:33:10: fatal error: 'QApplication' file not found
#include <QApplication>
         ^~~~~~~~~~~~~~
1 error generated.
make[2]: *** [libgui/src/libgui_src_la-octave-dock-widget.lo] Error 1
1 error generated.


Homebrew recently updated Qt6 to version 6.7.0 which might be related.

I believe I have an idea what might be causing that.


Markus Mützel <mmuetzel>
Group administrator

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 16MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    History

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-04-22 mmuetzel StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2024-04-22 mmuetzel Fixed ReleaseNone 9.2.0
    2024-04-22 mmuetzel StatusNone Ready For Test
        Planned ReleaseNone 9.2.0

    Back to the top

    Powered by Savane 3.16.
    Corresponding source code