[OE-core] [PATCH v2] mesa-demos: Fix building demos which require GLU.

Moseley, Drew drew_moseley at mentor.com
Sun Jul 19 13:44:45 UTC 2015


On Jul 16, 2015, at 6:01 PM, Burton, Ross <ross.burton at intel.com<mailto:ross.burton at intel.com>> wrote:


On 16 July 2015 at 17:51, Martin Jansa <martin.jansa at gmail.com<mailto:martin.jansa at gmail.com>> wrote:
Yes, but if-found (by pkg-config) then the macro itself sets GLU_LIBS
and GLU_CFLAGS, so it doesn't make sense to call AC_CHECK_LIB to change
GLU_LIBS value.

action-if-not-found on the other hand is for cases where your GLU
implementation doesn't provide pkg-config and you want to try to find it
with AC_CHECK_LIB.

I believe you that there could be an issue with building glu demos, but
I guess it's issue in your GLU implementation (whatever that is) and
this change is not correct fix for it - it just happen to help in your
case and breaks other cases.

I agree with Martin here.  Can you replicate the problem using a qemu machine and just oe-core?

Ross


I took a deeper look at this today and what I think needs to happen is that in the “if-found” block we need to set glu_enabled=yes.  That way the HAVE_GLU AM_CONDITIONAL is set to yes later in the configure process.  Does that seem right?  I’ll test a patch against my platform.

I have not figured out how to enable GLUT on the QEMU platform so I cannot yet test it there.

Drew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150719/c557f308/attachment-0002.html>


More information about the Openembedded-core mailing list