bugGNU Octave - Bugs: bug #40252, Make GUI compatible with both Qt4...

 
 

bug #40252: Make GUI compatible with both Qt4 and Qt5

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Sat 12 Oct 2013 07:40:35 PM UTC  
 
Category: Configuration and Build SystemSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Feature Request
Status: PostponedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 02 Nov 2013 01:32:46 AM UTC, comment #3:

Many more errors, a handful of member functions have been deprecated or removed with Qt5. I haven't gotten all the way through it yet, but here's a sample of what I've worked through so far:

And the appropriate pkg-config modules are (at least on Debian):

Marking as postponed for now, this looks pretty disruptive and unnecessary at this point in time.

Mike Miller <mtmiller>
Project Member
Fri 01 Nov 2013 08:15:41 PM UTC, comment #2:

Off the top of my head, I remember that the pkg-config files are named Qt5Gui, etc. I don't have it in front of me at the moment to check what else there was. I got around the different build flags by setting the QT_CPPFLAGS and QT_LIBS manually to get to the point I did before. I will try to recreate that build with your fix a little later today and see how far it gets me this time.

I can at least try to get a better idea of the full scope of what is needed so you can decide if this is something you want to try to address before the release. I saw this as more of a down-the-road goal, I don't know of any distros that are using Qt5 by default yet.

Mike Miller <mtmiller>
Project Member
Fri 01 Nov 2013 08:00:40 PM UTC, comment #1:

I fixed the include statements in this changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/2de613986374

What are the other issues? Woud you like to add them here or open separate reports about them?

John W. Eaton <jwe>
Project Administrator
Sat 12 Oct 2013 07:40:35 PM UTC, original submission:

The GUI does not compile with Qt5 currently. There are several issues ranging from include file compatibility to detecting the helper utilities and CPPFLAGS and LIBS correctly in configure.ac.

I got as far as hacking the results of configure to look at the right paths, but the changes in header files between Qt4 and Qt5 is blocking me from getting any further. The recommendations I've seen for compatibility are to not include the Qt module in #include statements, so for example use

instead of

We have quite a few of the latter variety of includes, especially in the libqterminal directory.

Mike Miller <mtmiller>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by mtmiller (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 02 Nov 2013 01:32:46 AM UTCmtmillerStatusNone=>Postponed
    Sat 02 Nov 2013 01:32:45 AM UTCmtmillerSeverity3 - Normal=>2 - Minor

    Back to the top


    Powered by Savane 3.1-cleanup