bugGNU Octave - Bugs: bug #53571, QT 4.6.2 configure fails for most...

 
 

bug #53571: QT 4.6.2 configure fails for most recent 4.3.0+

Submitter:  A.R. Burgers <arb>
Submitted:  Fri 06 Apr 2018 08:12:05 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
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
   

Jump to the original submission

Fri 06 Apr 2018 04:49:25 PM UTC, comment #8: 

Closing as fixed.

John W. Eaton <jwe>
Group administrator
Fri 06 Apr 2018 04:05:57 PM UTC, comment #7: 

Thanks jwe! It works for me again (qt 5.10.1 without qtchooser).

Sebastian

Sebastian <sschoeps>
Fri 06 Apr 2018 03:09:21 PM UTC, comment #6: 

Ah, I think I see the problem in the logic now.  I pushed this change:

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

Please update and try again.  Sorry for the trouble.

John W. Eaton <jwe>
Group administrator
Fri 06 Apr 2018 01:02:10 PM UTC, comment #5: 

The latest hg_id 5fccb7373bc4 does not solve the issue, though the "-n" error has gone.

I now get in the summary as before:


Build Octave Qt GUI: no (missing:rcc qcollectiongenerator qhelpgenerator)


while earlier detection of those 3 programs seems to work:


checking Qt version 5... checking for QT... no
checking Qt version 4... checking for QT... yes
checking for qtchooser... no
checking for moc-qt4... moc-qt4
checking for uic-qt4... uic-qt4
checking for rcc-qt4... no
checking for rcc... rcc
checking for lrelease-qt4... lrelease-qt4
checking for qcollectiongenerator-qt4... no
checking for qcollectiongenerator... qcollectiongenerator
checking for qhelpgenerator-qt4... no
checking for qhelpgenerator... qhelpgenerator
configure: WARNING: Your installation of Qt version 4 appears incomplete or broken in some way.  Fix that or use --with-qt=VER to use another version.
configure: WARNING: one or more of the Qt utilities moc, uic, rcc, lrelease, qcollectiongenerator, and qhelpgenerator not found; disabling Qt GUI


A.R. Burgers <arb>
Fri 06 Apr 2018 12:51:24 PM UTC, comment #4: 

In my case in the summary it says:


Build Octave Qt GUI:  no (missing:rcc qcollectiongenerator qhelpgenerator)


while earlier in the configuration the 3 programs reported here as missing were reported as found, as can be seen in the original submission.

A.R. Burgers <arb>
Fri 06 Apr 2018 12:24:01 PM UTC, comment #3: 

Dan, there is a configure check for suitesparseconfig, and the library should only be used if it is found.  Did that test pass on your system?  If so, how?  If not, then where does "-lsuitesparseconfig" appear in your Makefile?

John W. Eaton <jwe>
Group administrator
Fri 06 Apr 2018 12:21:43 PM UTC, comment #2: 

I pushed the following changeset for the Qt problem

http://hg.savannah.gnu.org/hgweb/octave/rev/5fccb7373bc4

A.R. Burgers, Does this fix the build for you?

John W. Eaton <jwe>
Group administrator
Fri 06 Apr 2018 09:11:14 AM UTC, comment #1: 

I was just about to post a similar bug report, but I'll copy it here instead...

Summary: Recent Qt configure dependencies not quite right, also suitesparse dependency

I'm trying to build on Mageia at the moment (almost got it), but ran into a couple issues.

1) With the recent changes I kept getting no Qt GUI during configure because of missing utilities:


  Build Octave Qt GUI:                  no (missing:moc uic rcc lrelease qcollectiongenerator qhelpgenerator)


The situation is that some of these aren't present on my system:


checking for gl2ps.h... yes
checking for gl2psLineJoin... yes
checking Qt version 5... checking for QT... yes
checking for qtchooser... no
checking for moc-qt5... no
checking for moc... moc
checking for uic-qt5... no
checking for uic... uic
checking for rcc-qt5... no
checking for rcc... rcc
checking for lrelease-qt5... no
checking for lrelease... lrelease
checking for qcollectiongenerator-qt5... no
checking for qcollectiongenerator... qcollectiongenerator
checking for qhelpgenerator-qt5... no
checking for qhelpgenerator... qhelpgenerator
configure: WARNING: Your installation of Qt version 5 appears incomplete or broken in some way.  Fix that or use --with-qt=VER to use another version.
configure: WARNING: one or more of the Qt utilities moc, uic, rcc, lrelease, qcollectiongenerator, and qhelpgenerator not found; disabling Qt GUI


It could be some of these are in some other package on this Mageia package system, but I've searched and searched and could not find qtchooser anywhere.  Figuring it might not be needed, I took that dependency out of the m4/acinclude.m4 file and tried again.  No longer was configure searching for that file, but configure still failed, I think because moc-qt5, and the like weren't found (see above).  Is that supposed to be a "moc || moc-qt5" rather than "moc && moc-qt5" perhaps?

So I checked out a version prior to the recent Qt changes, again taking the qtchooser dependency out of acinclude.m4.  Compilation then continued to the end (almost, read next issue).  That's why I'm wondering if qtchooser, moc-qt5, etc. are necessary.  Maybe all that is needed now is moc, uic, ..., lrealease.

2) As I just alluded to, the older version of the configuration passed and compile, until it hit this:


  CXXLD    libinterp/corefcn/libcorefcn.la
  CXXLD    src/mkoctfile
  CXXLD    src/octave
  TEXI2PDF doc/liboctave/liboctave.pdf
  CXXLD    liboctave/liboctave.la
/bin/ld: cannot find -lsuitesparseconfig
collect2: error: ld returned 1 exit status


Here's what is missing but doesn't cause a fatal error:


configure:81740: WARNING: AMD library not found.  This will result in some lack of functionality for sparse matrices.
configure:81745: WARNING: CAMD library not found.  This will result in some lack of functionality for sparse matrices.
configure:81750: WARNING: COLAMD library not found.  This will result in some lack of functionality for sparse matrices.
configure:81755: WARNING: CCOLAMD library not found.  This will result in some lack of functionality for sparse matrices.
configure:81760: WARNING: CHOLMOD library not found.  This will result in some lack of functionality for sparse matrices.
configure:81765: WARNING: CXSparse library not found.  This will result in some lack of functionality for sparse matrices.
configure:81770: WARNING: UMFPACK not found.  This will result in some lack of functionality for sparse matrices.
configure:81775: WARNING: KLU library not found.  This will result in some lack of functionality for sparse matrices.


I set about installing the above packages, then found the package suitesparse-devel and installed that because it includes most of the above, i.e.:


To satisfy dependencies, the following package(s) also need to be installed:

- lib64amd2-4.4.4-3.mga6.x86_64
- lib64btf1-4.4.4-3.mga6.x86_64
- lib64camd2-4.4.4-3.mga6.x86_64
- lib64ccolamd2-4.4.4-3.mga6.x86_64
- lib64cholmod3-4.4.4-3.mga6.x86_64
- lib64colamd2-4.4.4-3.mga6.x86_64
- lib64cxsparse3-4.4.4-3.mga6.x86_64
- lib64klu1-4.4.4-3.mga6.x86_64
- lib64ldl2-4.4.4-3.mga6.x86_64
- lib64rbio2-4.4.4-3.mga6.x86_64
- lib64spqr2-4.4.4-3.mga6.x86_64
- lib64suitesparseconfig4-4.4.4-3.mga6.x86_64
- lib64tbb-devel-4.3-1.20140724.5.mga6.x86_64
- lib64tbb2-4.3-1.20140724.5.mga6.x86_64
- lib64umfpack5-4.4.4-3.mga6.x86_64
- suitesparse-4.4.4-3.mga6.x86_64

5MB of additional disk space will be used.


With that suitesparse install, compilation completed successfully.  So the second issue is that suitesparse may be a dependency rather than just an option.  Maybe it should cause a configure fail.

Dan Sebald <sebald>
Fri 06 Apr 2018 08:12:05 AM UTC, original submission:  

In the most recent 4.3.0+ versions the qt 4.6.2 configure fails.

For hg_id 4ccb4f6e59ca I get the message that the qt graphics toolkit is not available. Below is the configure transcript.

There is an error involving a "-n" command not found

It does find all of moc, uic, rcc, lrelease, qcollectiongenerator, and qhelpgenerator, but still reports incomplete qt4


checking Qt version 5... checking for QT... no
../octave_stable/configure: line 72488: -n: command not found
checking Qt version 4... checking for QT... yes
checking for qtchooser... no
checking for moc-qt4... moc-qt4
checking for uic-qt4... uic-qt4
checking for rcc-qt4... no
checking for rcc... rcc
checking for lrelease-qt4... lrelease-qt4
checking for qcollectiongenerator-qt4... no
checking for qcollectiongenerator... qcollectiongenerator
checking for qhelpgenerator-qt4... no
checking for qhelpgenerator... qhelpgenerator
configure: WARNING: Your installation of Qt version 4 appears incomplete or broken in some way.  Fix that or use --with-qt=VER to use another version.
configure: WARNING: one or more of the Qt utilities moc, uic, rcc, lrelease, qcollectiongenerator, and qhelpgenerator not found; disabling Qt GUI


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 sschoeps (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by sebald (Posted a comment)
  • -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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-06 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code