bugGNU Octave - Bugs: bug #37101, GUI build fails on Fedora or RHEL...

 
 

bug #37101: GUI build fails on Fedora or RHEL with qt3-devel installed

Submitter:  Michael Godfrey <godfrey>
Submitted:  Wed 15 Aug 2012 01:54:57 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  godfrey Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 05 Sep 2012 05:00:12 AM UTC, comment #4: 

I checked in a fix for the situation where qmake from Qt3 and qmake-qt4 are installed (http://hg.savannah.gnu.org/hgweb/octave/rev/704ab1b4c369).

Rik <rik5>
Group administrator
Wed 15 Aug 2012 10:39:22 PM UTC, comment #3: 

After a bit of work, it was discovered that the GUI
cannot be built using qmake (Qt3).  So,

yum remove qt3-devel-3.3.8b-41.fc17.x86_64

got rid of it.  Then ./configure found the Qt4
qmake-qt and the build completed and ran
make check correctly and the GUI came up with
./run-octave

Michael Godfrey <godfrey>
Group Member
Wed 15 Aug 2012 03:57:35 PM UTC, comment #2: 

The problem was the presence of qmake from Qt version 3 in the PATH, which configure found and used before qmake-qt4.

Fedora and RHEL systems install Qt4 qmake as /usr/bin/qmake-qt4. Qt3 can be co-installed, and its qmake executable is just qmake.

For now,


yum erase qt3-devel


is a workaround for this problem.

Validating the output of qmake should be enough to tell it's a version we can work with, here are some examples on a Fedora 17 64-bit:


[mike@beefy ~]$ qmake-qt4 -query QT_INSTALL_HEADERS
/usr/include
[mike@beefy ~]$ qmake -query QT_INSTALL_HEADERS
**Unknown**
[mike@beefy ~]$ qmake-qt4 -query QT_INSTALL_LIBS
/usr/lib64
[mike@beefy ~]$ qmake -query QT_INSTALL_LIBS
**Unknown**


If no valid paths are found from qmake, configure should keep searching for qmake candidates in PATH.

Mike Miller <mtmiller>
Group Member
Wed 15 Aug 2012 03:07:48 AM UTC, comment #1: 

Try


yum install qt-devel qscintilla-devel


and run configure and make again and see if the build completes with the right packages installed.

I've opened a separate bug for the problem of configure not detecting the required Qt libraries.

Mike Miller <mtmiller>
Group Member
Wed 15 Aug 2012 01:54:57 AM UTC, original submission:  

build fails on FEdora 17 x86_64:
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -DHAVE_CONFIG_H -I -I/QtCore -I/QtGui -I./../qterminal/libqterminal   -g -O2 -pthread -MT libqterminal_la-BlockArray.lo -MD -MP -MF .deps/libqterminal_la-BlockArray.Tpo -c -o libqterminal_la-BlockArray.lo `test -f '../qterminal/libqterminal/unix/BlockArray.cpp' || echo './'`../qterminal/libqterminal/unix/BlockArray.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -DHAVE_CONFIG_H -I -I/QtCore -I/QtGui -I./../qterminal/libqterminal -g -O2 -pthread -MT libqterminal_la-BlockArray.lo -MD -MP -MF .deps/libqterminal_la-BlockArray.Tpo -c ../qterminal/libqterminal/unix/BlockArray.cpp  -fPIC -DPIC -o .libs/libqterminal_la-BlockArray.o
../qterminal/libqterminal/unix/BlockArray.cpp:27:18: fatal error: QtCore: No such file or directory
compilation terminated.
make[4]: * [libqterminal_la-BlockArray.lo] Error 1
make[4]: Leaving directory `/media/GoFlex08/qss/d/src/octave/hg/octave/gui/src'

Build without gui and with jit works.

Michael Godfrey <godfrey>
Group Member

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by godfrey (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-05 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2012-08-15 mtmiller SummaryGUI build fails on FC 17 x86_64 GUI build fails on Fedora or RHEL with qt3-devel installed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code