[Mesa-dev] Problem building current git with osmesa and no gallium

Kenneth Graunke kenneth at whitecape.org
Thu Mar 10 16:34:28 PST 2011

On Thursday, March 10, 2011 01:17:04 PM Alexander Neundorf wrote:
> Hi,
> I'm trying to build current git mesa with under Linux, 32bit, gcc 4.2.3
> with the following configure-call:
> ./configure --with-driver=osmesa --enable-static --disable-gallium
> --disable-egl --disable-glu
> This runs, but then the build fails:
> hammer:~/src/packages/Mesa-git$ make
> make[1]: Entering directory `/home/alex/src/packages/Mesa-git/src'
> Making sources for autoconf
> gmake[2]: Entering directory
> `/home/alex/src/packages/Mesa-git/src/mapi/glapi' gmake[2]: Nothing to be
> done for `default'.
> gmake[2]: Leaving directory
> `/home/alex/src/packages/Mesa-git/src/mapi/glapi' gmake[2]: Entering
> directory `/home/alex/src/packages/Mesa-git/src/glsl' flex --nounistd
> -oglcpp/glcpp-lex.c  glcpp/glcpp-lex.l
> glcpp/glcpp-lex.l:59: unrecognized %option: extra-type
> gmake[2]: *** No rule to make target `depend', needed by `default'.  Stop.

Sounds like you need a newer version of flex.  A quick google search seems to 
indicate that %option extra-type was added in 2.5.34 (December 2007).  You 
probably want the latest though.

> gmake[2]: Leaving directory `/home/alex/src/packages/Mesa-git/src/glsl'
> make[1]: *** [subdirs] Error 1
> make[1]: Leaving directory `/home/alex/src/packages/Mesa-git/src'
> make: *** [default] Error 1
> hammer:~/src/packages/Mesa-git$
> While at it (sorry for newbie questions), do I need gallium (maybe swrast)
> when I want only osmesa rendering into a software buffer ?

I don't think OSMesa requires Gallium, but I've never used it.

> Alex

More information about the mesa-dev mailing list