Re: [Mesa-dev] mesa/gles3: dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 24, 2013 at 7:31 PM, Chad Versace
<chad.versace@xxxxxxxxxxxxxxx> wrote:
> FYI,
>
> The enum is defined in mesa iteself at
> #MESA_SOURCE/include/GL/internal/dri_interface.h. Your
> problem was independent of dri2proto, kernel, drm, etc. I expect
> your build environment was accidentally #including the header located
> in /usr/include/GL/internal rather than the one in the mesa source tree.
>

Hmm, there is no such header file provided by any Ubuntu package.

$ ll /usr/include/GL/internal
insgesamt 16
drwxr-xr-x 2 root root 4096 Jan 23 03:48 ./
drwxr-xr-x 3 root root 4096 Jan 23 03:48 ../
-rw-r--r-- 1 root root 6318 Dez  3 18:33 glcore.h

$ dpkg -S /usr/include/GL/internal/glcore.h
x11proto-gl-dev: /usr/include/GL/internal/glcore.h

$ find /opt/xorg/ -name dri_interface.h
/opt/xorg/include/GL/internal/dri_interface.h

$ find /usr/include/ -name dri_interface.h
[ NO OUTPUT ]

$ find mesa-git/ -name dri_interface.h
mesa-git/include/GL/internal/dri_interface.h

- Sedat -

> On 01/24/2013 04:33 AM, Sedat Dilek wrote:
>> Hmm, switching to Ubuntu's distro-kernel, removing /opt/xorg and
>> building the XORG stuff from scratch...
>>
>> 1. libdrm-git
>> 2. mesa-git
>> 3. xf86-video-intel-git
>>
>> ...makes the errors go away.
>>
>> OK, I had in my 3.8-rc4 kernel drm-intel-nightly integrated, but no
>> linux-headers package of this kernel installed.
>>
>> Looks good.
>>
>> $ sudo grep -A4 'LoadModule: "intel"' /var/log/Xorg.0.log
>> [    15.913] (II) LoadModule: "intel"
>> [    15.913] (II) Loading
>> /usr/lib/x86_64-linux-gnu/xorg/extra-modules/intel_drv.so
>> [    15.957] (II) Module intel: vendor="X.Org Foundation"
>> [    15.957]    compiled for 1.11.3, module version = 2.20.19
>> [    15.957]    Module class: X.Org Video Driver
>>
>> $ LIBGL_DEBUG=verbose glxinfo 2>/dev/null | grep -i opengl
>> OpenGL vendor string: Intel Open Source Technology Center
>> OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
>> OpenGL version string: 3.0 Mesa 9.1-devel (git-6f3caaf) <--- VERSION 3.0!
>> OpenGL shading language version string: 1.30
>> OpenGL extensions:
>>
>> - Sedat -
>>
>> On Thu, Jan 24, 2013 at 11:14 AM, Sedat Dilek <sedat.dilek@xxxxxxxxx> wrote:
>>> Hi Ian,
>>>
>>> due to the changes in...
>>>
>>> e90c08e dri: Define enum __DRI_API_GLES3
>>>
>>> ...I get this breakage with mesa-gles3-git6f3caaf:
>>>
>>> make[7]: Entering directory
>>> `/home/wearefam/src/mesa/mesa-git/src/mesa/drivers/dri/common'
>>>   CC     utils.lo
>>>   CC     dri_util.lo
>>>   CC     libdri_test_stubs_la-dri_test.lo
>>>   CC     xmlconfig.lo
>>>   CCLD   libdri_test_stubs.la
>>> dri_util.c:192:10: error: use of undeclared identifier '__DRI_API_GLES3'
>>>     case __DRI_API_GLES3:
>>>          ^
>>> 1 error generated.
>>> make[7]: *** [dri_util.lo] Error 1
>>>
>>> Do I need a different DRI/DRI2 proto?
>>> From which fdo GIT tree?
>>> If YES, can you bump the required version in configure.ac?
>>>
>>> Thanks!
>>>
>>> Regards,
>>> - Sedat -
>>>
>>> P.S.: Check installed DRI/DRI2 proto version
>>>
>>> $ dpkg -l | grep dri | grep proto | grep -e \-dev
>>> ii  x11proto-dri2-dev                       2.8-1~precise1
>>>                          X11 DRI2 extension wire protocol
>>>
>>> - EOT -
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev@xxxxxxxxxxxxxxxxxxxxx
>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>>
>
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux