[Mesa-dev] demos / glew configure bug

Dave Airlie airlied at gmail.com
Thu Jul 15 13:15:14 PDT 2010


On Thu, Jul 15, 2010 at 11:55 PM, Brian Paul <brianp at vmware.com> wrote:
> On 07/15/2010 03:22 AM, Dave Airlie wrote:
>>
>> On Thu, Jul 15, 2010 at 6:48 PM, Dan Nicholson<dbn.lists at gmail.com>
>>  wrote:
>>>
>>> On Tue, Jul 13, 2010 at 7:42 AM, Brian Paul<brianp at vmware.com>  wrote:
>>>>
>>>> On 07/13/2010 08:07 AM, Brian Paul wrote:
>>>>>
>>>>> I'm setting up the Mesa demos repo on a new system. autogen.sh fails
>>>>> because it can't find GLEW. I think autogen is looking for GLEW in
>>>>> /usr/include/GL/ and /usr/lib/libGLEW.a instead of using the copy of
>>>>> GLEW in the demos tree itself.
>>>>>
>>>>> Dan, can you fix that?
>>>>>
>>>>>
>>>>> $ ./autogen.sh
>>>>> [...]
>>>>> checking pkg-config is at least version 0.9.0... yes
>>>>> checking for GL... yes
>>>>> checking GL/glut.h usability... no
>>>>> checking GL/glut.h presence... no
>>>>> checking for GL/glut.h... no
>>>>> checking for glutInit in -lglut... no
>>>>> checking for GLEW... no
>>>>> checking GL/glew.h usability... no
>>>>> checking GL/glew.h presence... no
>>>>> checking for GL/glew.h... no
>>>>> configure: error: GLEW required
>>>>
>>>> Digging deeper...  The issue is actually in the configure script (I
>>>> think).
>>>>  Even after copying libGLEW.a from Mesa 7.8.2 into /usr/lib/libGLEW.a
>>>> (which
>>>> is the same as /usr/lib64/) configure is failing:
>>>>
>>>> [...]
>>>> checking pkg-config is at least version 0.9.0... yes
>>>> checking for GL... yes
>>>> checking GL/glut.h usability... no
>>>> checking GL/glut.h presence... no
>>>> checking for GL/glut.h... no
>>>> checking for glutInit in -lglut... no
>>>> checking for GLEW... no
>>>> checking GL/glew.h usability... yes
>>>> checking GL/glew.h presence... yes
>>>> checking for GL/glew.h... yes
>>>> checking for glewInit in -lGLEW... no
>>>> configure: error: GLEW required
>>>>
>>>> I wrote a test program that just calls glewInit() and compiled it with
>>>> 'gcc
>>>> foo.c -lGLEW -lGL -o foo' and it worked fine.
>>>
>>> I'm traveling right now, but I believe the problem is that mesa does
>>> not install a glew.pc pkgconfig file. You can create one from the
>>> glu.pc example (or one of the others) and install it in
>>> /usr/lib/pkgconfig (for x86) or /usr/lib64/pkgconfig (for x86-64).
>>>
>>> The check for glew in the demos configure script would be something like:
>>>
>>> PKG_CHECK_MODULES([GLEW], [glew])
>>>
>>> This would search for glew.pc and then the flags would be stored in
>>> GLEW_CFLAGS and GLEW_LIBS.
>>>
>>> I don't have a chance to fix this for another week or so, but it needs
>>> a little fixing on the mesa side for glew to be a fully installed
>>> library like gl or glu.
>>
>> Well we don't generally install glew from Mesa, we use glew from
>> upstream in Fedora for example, it now install a pc file, since 1.5.4
>> I think.
>
> Just FYI: I just installed the latest Fedora 13 this week and glew is at
> version 1.5.2.  There was no .pc file in the RPM.
>

Try doing an updates, 1.5.4 just got pushed to stable, for this very reason.

or yum --enablerepo=updates-testing upgrade glew glew-devel should
also work right now.

Dave.

> -Brian
>


More information about the mesa-dev mailing list