bugGNU Octave - Bugs: bug #45672, Octave fails to build when Qt is...

 
 

bug #45672: Octave fails to build when Qt is built with GLES support instead of full OpenGL

Submitter:  Mike Miller <mtmiller>
Submitted:  Sat 01 Aug 2015 09:47:24 PM UTC
   
 
Category:  Configuration and Build System Severity:  4 - Important
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  mtmiller
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 02 Aug 2015 08:35:25 PM UTC, comment #2: 

The armhf build did not complete, but at least got the result I wanted to verify, the GUI is disabled when Qt conflicts with GL. Pushed to default: http://hg.savannah.gnu.org/hgweb/octave/rev/6cfbf412a2c3.

Mike Miller <mtmiller>
Group Member
Sat 01 Aug 2015 10:48:34 PM UTC, comment #1: 

Here is a proposed patch for this, works for me on x86 (IOW, no change in behavior), waiting for access to test on an Ubuntu autobuilder to see if it correctly detects the conflict and disables building the GUI.

(file #34565)

Mike Miller <mtmiller>
Group Member
Sat 01 Aug 2015 09:47:24 PM UTC, original submission:  

Building Octave on an OS where Qt has been configured with GLES support instead of full OpenGL fails because of conflicting type definitions between GL and GLES. For example:


In file included from ../libinterp/corefcn/gl-render.h:32:0,
                 from ../libinterp/corefcn/gl2ps-renderer.h:30,
                 from graphics/Canvas.cc:44:
/usr/include/GL/gl.h:134:17: error: conflicting declaration 'typedef double GLdouble'
 typedef double  GLdouble; /* double precision float */
                 ^
In file included from /usr/include/qt4/QtOpenGL/QGLWidget:1:0,
                 from graphics/GLCanvas.h:26,
                 from graphics/Canvas.cc:39:
/usr/include/qt4/QtOpenGL/qgl.h:85:17: note: previous declaration as 'typedef GLfloat GLdouble'
 typedef GLfloat GLdouble;
                 ^




(copied from https://launchpadlibrarian.net/213249421/buildlog_ubuntu-wily-armhf.octave_4.0.0-3_BUILDING.txt.gz)

I think a short test snippet can be done in configure.ac to simply try and compile GL with Qt to check for this conflict and disable building the GUI automatically.

I will probably try to submit a patch to the Ubuntu package build process first, and then bring it back into default if it works, since I don't have the setup to test this myself.

(If anyone has the ability to test this and would be willing to test my patches, let me know)

Mike Miller <mtmiller>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #34565:  qt-opengl.patch added by mtmiller (2KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-08-02 mtmiller Open/ClosedOpen Closed
    2015-08-02 mtmiller StatusPatch Submitted Fixed
    2015-08-01 mtmiller Attached File- Added qt-opengl.patch, #34565
        StatusNone Patch Submitted

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code