Source: freemat
Version: 4.0-3
User: [email protected]
Usertags: qt48-transition

Your package fails to build against Qt 4.8 which is currently in experimental.
The transition to unstable/testing is tracked in bug #653903.

I'm attaching a patch by Andreas Moog that contains the necessary changes.
It can be applied even before Qt 4.8 enters unstable.

Build log:
> /tmp/buildd/freemat-4.0/libs/libGraphics/GLRenderEngine.cpp: In member 
> function 'virtual void
> GLRenderEngine::toPixels(double, double, double, double&, double&)':
> /tmp/buildd/freemat-4.0/libs/libGraphics/GLRenderEngine.cpp:62:48: error: 
> 'gluProject' was not
> declared in this scope
> /tmp/buildd/freemat-4.0/libs/libGraphics/GLRenderEngine.cpp: In member 
> function 'virtual void
> GLRenderEngine::lookAt(double, double, double, double, double, double, 
> double, double, double)':
> /tmp/buildd/freemat-4.0/libs/libGraphics/GLRenderEngine.cpp:86:39: error: 
> 'gluLookAt' was not
> declared in this scope

Regards,
Felix

Description: Include glu.h to fix build with qt4.8
Author: Andreas Moog <[email protected]>
Bug-Ubuntu: https://launchpad.net/bugs/935092

--- freemat-4.0.orig/libs/libGraphics/GLRenderEngine.cpp
+++ freemat-4.0/libs/libGraphics/GLRenderEngine.cpp
@@ -22,6 +22,7 @@
 #include <QtOpenGL>
 #include <math.h>
 #include "IEEEFP.hpp"
+#include <GL/glu.h>
 
 GLRenderEngine::GLRenderEngine(QGLWidget *widget, double x1, double y1,
 			       double width, double height) {

Reply via email to