[Mesa-dev] OSMesa glapi linlking

Brian Paul brianp at vmware.com
Mon Jan 30 09:15:21 PST 2012


On 01/30/2012 08:56 AM, Kevin H. Hobbs wrote:
> On 01/25/2012 05:20 PM, Jon TURNEY wrote:
>>
>> ... and reverting "always build shared glapi" didn't wrap this line above in
>> ifeq ($(SHARED_GLAPI),1)/endif, since it wasn't there before.
>>
>>
>> Sigh.
>>
>> I guess you could try the attached.
>
>
> $ git apply
> ~/Download/0001-Don-t-try-to-link-OSMesa-with-shared-glapi-unless-sh.patch
> /home/kevin/Download/0001-Don-t-try-to-link-OSMesa-with-shared-glapi-unless-sh.patch:24:
> trailing whitespace.
> ifeq ($(SHARED_GLAPI),1)
> /home/kevin/Download/0001-Don-t-try-to-link-OSMesa-with-shared-glapi-unless-sh.patch:26:
> trailing whitespace.
> endif
> error: patch failed: src/mesa/drivers/osmesa/Makefile:25
> error: src/mesa/drivers/osmesa/Makefile: patch does not apply
>
>
> I tried with just the lines added manually and almost every VTK test
> gives me:
>
> osmesa.c:892: OSMesaMakeCurrent: Assertion `osmesa->srb->Base.RefCount
> == 2' failed.

What happens if you remove that assertion?

I'll try to repro / fix this later.

-Brian



More information about the mesa-dev mailing list