[mythtv-users] Build error.

Michael T. Dean mtdean at thirdcontact.com
Thu Mar 10 23:00:59 UTC 2011


On 03/10/2011 05:49 PM, Jan Johansson wrote:
>
> I pulled a new git about an hour ago (how does one check revision with 
> git btw?)
>
> And now I get the below. (Ubuntu 9.10, fully updated) I get that it is 
> OpenGL/Qt related, but… uhm… :=)
>
> l -I../libmythbase -I../.. -I.. -I../../external/FFmpeg 
> -I/usr/X11R6/include -I. -o mythrender_opengl2.o mythrender_opengl2.cpp
>
> mythrender_opengl2.cpp: In member function ‘virtual void 
> MythRenderOpenGL2::Draw RoundRectPriv(const QRect&, int, const 
> QBrush&, const QPen&, int)’:
>
> mythrender_opengl2.cpp:593: error: invalid use of incomplete type 
> ‘const struct QPen’
>
> /usr/include/qt4/QtGui/qwindowdefs.h:73: error: forward declaration of 
> ‘const st ruct QPen’
>
>

You need to

#include <QPen>

in mythrender_opengl.h. Devs know about the issue (that only occurs for 
some versions of GCC) and it will be officially fixed soon.

Mike


More information about the mythtv-users mailing list