bugGNU Octave - Bugs: bug #57420, dev fails to compile with Qt4

 
 

bug #57420: dev fails to compile with Qt4

Submitter:  Rik <rik5>
Submitted:  Sun 15 Dec 2019 09:56:36 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 16 Dec 2019 11:58:07 PM UTC, comment #7: 

I agree that that's the problem (qtchooser installed, but only partial Qt 4 tools installed), and I agree that it's probably not worth the effort. This has come up before with both Qt 4 and 5 and qtchooser, and it's solvable by just helping users install the right packages on their distro.

Mike Miller <mtmiller>
Group Member
Mon 16 Dec 2019 10:48:05 PM UTC, comment #6: 

The configure script does check for the Qt tools.  If you specify a Qt version, it tries to use qcollectiongenerator-qt4 (for example) but if that is not found, it will also search for qcollectiongenerator.  If the qtchooser program exists, it will also try to use that to select the proper version of the tool.  I tried with Qt4 and Qt5 installed but without the Qt4 tools and I see that qtchooser and qcollectiongenerator are both found.  But the build fails because (I think) qtchooser tries to run the Qt4 version and it doesn't exist.  Maybe we could fix this problem, but I'm not sure it is worth the effort given that we are about to remove support for Qt4.  It is possible to build with Qt4 properly installed.

John W. Eaton <jwe>
Group administrator
Mon 16 Dec 2019 10:23:18 PM UTC, comment #5: 

No, I don't have qt4-dev-tools installed.  Feel free to close unless you think configure should generate a warning on missing tools.

Rik <rik5>
Group administrator
Mon 16 Dec 2019 09:29:44 PM UTC, comment #4: 

Do you have qt4-dev-tools installed? If you only installed libqt4-dev, then you're probably missing that package, which installs assistant, linguist, qcollectiongenerator, qhelpgenerator, etc.

Mike Miller <mtmiller>
Group Member
Mon 16 Dec 2019 06:00:52 PM UTC, comment #3: 

As the original reporter, I verified that I can compile the main-body of Octave with Qt4 now.

I still have a failure when it comes to building the documentation.  I get


qcollectiongenerator: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qcollectiongenerator': No such file or directory


Do we want to bother to fix this?  In general, it is only developers who will need access to the extra tools to create the documentation.  Since documentation will be built on a machine with Qt5 and then shipped in the tar.gz distribution file, maybe we don't need to bother.

On the other side of the argument, perhaps the various distros will compile a Qt4 and a Qt5 version of Octave.  They might encounter this error if they made any changes which forced a documentation re-build.


Rik <rik5>
Group administrator
Mon 16 Dec 2019 06:52:34 AM UTC, comment #2: 

I noticed two other problems and pushed the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/e79999c5d782

John W. Eaton <jwe>
Group administrator
Mon 16 Dec 2019 06:31:25 AM UTC, comment #1: 
Torsten Lilge <ttl>
Group Member
Sun 15 Dec 2019 09:56:36 PM UTC, original submission:  

When I try to configure using '--with-qt=4' and then make I get the following error


libgui/src/resource-manager.cc: In constructor ‘octave::resource_manager::resource_manager()’:
libgui/src/resource-manager.cc:99:15: error: ‘QDesktopServices’ has not been declared
             = QDesktopServices::storageLocation (QDesktopServices::HomeLocation);
               ^~~~~~~~~~~~~~~~
libgui/src/resource-manager.cc:99:50: error: ‘QDesktopServices’ has not been declared
             = QDesktopServices::storageLocation (QDesktopServices::HomeLocation);




Rik <rik5>
Group administrator

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by rik5 (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-16 mtmiller StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2019-12-16 rik5 StatusNone In Progress
    2019-12-16 jwe StatusReady For Test None
    2019-12-16 ttl StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code