[Buildroot] [PATCH 03/10 v7] package/mesa3d-headers: new package

Nicolas Serafini nicolas.serafini at sensefly.com
Thu Feb 12 17:25:12 UTC 2015


Yann, All,

On Wed, 11 Feb 2015 19:02:01 +0100
"Yann E. MORIN" <yann.morin.1998 at free.fr> wrote:

> Nicolas, All,
> 
> On 2015-02-11 15:06 +0100, Nicolas Serafini spake thusly:
> > I have done some build tests with the nvidia-tegra packages and
> > opengl support.
> > 
> > I was able to build QT5 with opengl without problem but I get errors
> > with QT4.
> > 
> > This is a known problem of QT4 with the inclusion of eglplatform.h
> > inside which there is an inclusion of X11 headers.
> 
> I'm not sure I understand. Is that an known issue because of
> Buildroot, or is that a known issue that also happens outside
> Buildroot?

I do not know if it's an issue only due to buildroot.
I have never built QT4 outside of Buildroot so I do not know if it's a
QT4, khronos header or X11 issue.

> 
> I mean: is that problem caused by Buildroot?
> 
> > The result is that we have some conflicting #define. For me this
> > can be resolved by adding several #undef at the end of
> > eglplatform.h.
> > 
> > Here is the end of my eglplatform.h header
> > 
> >  typedef khronos_int32_t EGLint;
> > 
> >  #undef None
> >  #undef KeyPress
> >  #undef KeyRelease
> >  #undef FocusIn
> >  #undef FocusOut
> >  #undef FontChange
> >  #undef CursorShape
> >  #undef Bool
> >  #undef Status
> >  #undef Unsorted
> >  #undef GrayScale
> >  #undef Expose
> >  
> >  #endif /* __eglplatform_h */
> 
> Well, I'm not too fond of patching those headers.
> 
> I do not completely grok all the inter-relations between X, egl and
> all the other stuff, so I'd prefer we do not have such hack,
> especially if the answer to my question aboce is that the issue is
> not caused by Buildroot.


I'm ok to change nothing on the headers.
I have found this workaround on the web few years ago but I never take
time to investigate where is really the bug. It could be useful if
someone has the problem to find a workaround into the mailing list.

> 
> Regards,
> Yann E. MORIN.
> 

Regards,

Nicolas



-- 
Nicolas Serafini
R&D Embedded Software Engineer

www.sensefly.com
Route de Genève 38
1033 Cheseaux-Lausanne
Switzerland


More information about the buildroot mailing list