[Mesa-dev] Mesa (master): configs: Add -lstdc++ to default.

Gregory Prisament greg at lycheesoftware.com
Thu Sep 16 09:32:44 PDT 2010


Yes, that does the trick.  Thank you!
-Greg

On Wed, Sep 15, 2010 at 9:46 PM, Chia-I Wu <olvaffe at gmail.com> wrote:
> On Thu, Sep 16, 2010 at 11:11 AM, Gregory Prisament
> <greg at lycheesoftware.com> wrote:
>> Hi,
>> I just ran into a situation where GLES2 context creation was failing.
>> Upon digging into it, I found that dlopen of st_GLESv2.so was failing
>> with "undefined symbol: __cxa_pure_virtual".
>>
>> I found this thread, and realized that if I use g++ to compile my app,
>> it works.  However, if I use gcc it does not (for the reason above).
>>
>> It'd be nice if C programs could work with Mesa's GLES2 without being
>> compiled as C++.  I'm not sure how to fix it so that both gcc and g++
>> work.  Maybe someone with a better understanding of what's going on
>> could chime in?
>>
>> For now using g++ is a fine work-around.
> Does the attached patch help?  It changes targets/egl to use C++
> compiler to link the state trackers.
>> -Greg Prisament, Lychee Software
>>
>> ps: I tried reverting the patch above to see if it would help, but
>> dlopen still fails, this time with: "undefined symbol:
>> _ZTVN10__cxxabiv120__si_class_type_info"
>>
>> On Tue, Aug 24, 2010 at 11:45 AM, Brian Paul <brianp at vmware.com> wrote:
>>> On 08/24/2010 12:17 PM, Vinson Lee wrote:
>>>>>
>>>>> -----Original Message-----
>>>>>
>>>>> I missed this message/commit while I was away.
>>>>>
>>>>> The attached patch is how I would fix this problem.
>>>>>
>>>>> Vinson, can you try reverting your patch and trying this change?
>>>>>
>>>>> There may be other Makefiles where this change might be needed.
>>>>>
>>>>
>>>> I'm tried reverting and applying the attached patch locally. glxinfo and
>>>> glxgears work on both swrast and softpipe.
>>>> .
>>>
>>> OK, go ahead and commit those changes then.
>>>
>>> -Brian
>>>
>>> _______________________________________________
>>> mesa-dev mailing list
>>> mesa-dev at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>>
>
>
>
> --
> olv at LunarG.com
>


More information about the mesa-dev mailing list