bugGNU Octave - Bugs: bug #53081, build failure for GUI in recent dev

 
 

bug #53081: build failure for GUI in recent dev

Submitter:  A.R. Burgers <arb>
Submitted:  Wed 07 Feb 2018 08:11:51 AM 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:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 08 Feb 2018 09:58:50 AM UTC, comment #5: 

issue fixed for Qt 4.6.2, I was able to build hg-id 8b346a19108e+

A.R. Burgers <arb>
Wed 07 Feb 2018 08:53:22 PM UTC, comment #4: 

@John: Since tab bar set for the tab widget is already the derived one (tab_bar), isn't a static_cast sufficient in this case?

Torsten Lilge <ttl>
Group Member
Wed 07 Feb 2018 08:40:02 PM UTC, comment #3: 

A derived class of QTabWidget is used for solving the problem with the protected tabBar function. This has already been used for the editor. I just missed to declare m_tab_widget with the derived class.
John's Changeset http://hg.savannah.gnu.org/hgweb/octave/rev/21d6d80ed427 should already have fixed this. Maybe that's why you have not seen the build error (comment #2)?

Torsten Lilge <ttl>
Group Member
Wed 07 Feb 2018 05:24:54 PM UTC, comment #2: 

I don't see the build error with Qt 4.8, where the tabBar member function is also protected.

However, as a separate issue, shouldn't that be a dynamic_cast, not a static_cast?

John W. Eaton <jwe>
Group administrator
Wed 07 Feb 2018 09:12:56 AM UTC, comment #1: 
Kai Torben Ohlhus <siko1056>
Group Member
Wed 07 Feb 2018 08:11:51 AM UTC, original submission:  

with current dev (HG-ID 344832a898ad+) I get the compilation error below. qt version is 4.6.2. HG-ID 037ace76257d+ still built.



  CXX      libgui/src/libgui_src_libgui_src_la-variable-editor.lo
In file included from /usr/include/QtGui/qstyleoption.h:52:0,
                 from /usr/include/QtGui/qabstractitemdelegate.h:46,
                 from /usr/include/QtGui/qabstractitemview.h:48,
                 from /usr/include/QtGui/qheaderview.h:45,
                 from /usr/include/QtGui/QHeaderView:1,
                 from ../octave/libgui/src/variable-editor.cc:34:
/usr/include/QtGui/qtabwidget.h: In constructor 'variable_editor::variable_editor(QWidget*)':
/usr/include/QtGui/qtabwidget.h:167:14: error: 'QTabBar* QTabWidget::tabBar() const' is protected
     QTabBar* tabBar() const;
              ^
../octave/libgui/src/variable-editor.cc:155:54: error: within this context
       = static_cast<tab_bar *>(m_tab_widget->tabBar ());


A.R. Burgers <arb>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by siko1056 (Knows more?)
  • -email is unavailable- added by arb (Submitted the item)
  •  

    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.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-02-08 ttl StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2018-02-07 rik5 Carbon-CopyRemoved 72865 -
    2018-02-07 rik5 CategoryInterpreter Configuration and Build System
        StatusNeed Info Confirmed
    2018-02-07 siko1056 StatusNone Need Info
        Carbon-Copy- Added torsten <mttl@mailbox.org>

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code