Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, April 2007
Re: compile error with Qt-4.3beta on Suse-9.1


Message 1 in thread

Hi,

> I try to compile Qt-4.3beta on a Suse-9.1 with gcc-3.3.3

Have you tried compiling Qt 4.2 on the same system?

> It compiles well for a time but stops at:
> [...]
> qglframebufferobject.cpp:148: error: `GL_RENDERBUFFER_DEPTH_SIZE_EXT'
>    undeclared (first use this function)

Indeed GL_RENDERBUFFER_DEPTH_SIZE_EXT is used by both Qt 4.2 and Qt 4.3 
and both define it if GL_EXT_framebuffer_object has not been already 
defined:
	#ifndef GL_EXT_framebuffer_object
	[...]
	#define GL_RENDERBUFFER_DEPTH_SIZE_EXT   0x8D54
	[...]
	#endif

Additionally my Nvidia header <GL/glext.h> (from Nvidia driver version 
9746) does define GL_RENDERBUFFER_DEPTH_SIZE_EXT:
	#ifndef GL_EXT_framebuffer_object
	[...]
	#define GL_RENDERBUFFER_DEPTH_SIZE_EXT    0x8D54
	[...]
	#endif
	[...]
	#ifndef GL_EXT_framebuffer_object
	#define GL_EXT_framebuffer_object 1

Does header <GL/glext.h> in your Nvidia driver define 
GL_RENDERBUFFER_DEPTH_SIZE_EXT?

--
 [ signature omitted ] 

Message 2 in thread

Dimitri wrote:

> Have you tried compiling Qt 4.2 on the same system?

Yes, and this worked.

> Does header <GL/glext.h> in your Nvidia driver define
> GL_RENDERBUFFER_DEPTH_SIZE_EXT?

 grep GL_RENDERBUFFER_DEPTH_SIZE_EXT /usr/include/GL/*
/usr/include/GL/glATI.h:#define GL_RENDERBUFFER_DEPTH_SIZE_EXT                      
0x8D54

-- 
 [ signature omitted ]