From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 939BEE014E4 for ; Thu, 1 Aug 2013 11:14:18 -0700 (PDT) Received: by mail-pa0-f54.google.com with SMTP id kx1so2447281pab.27 for ; Thu, 01 Aug 2013 11:14:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=RdX/0VzetTtyAoQQ9omrREoyYl+MDrn5l3cRScQR8hM=; b=hUrbr1uHeNEWR9FHUneSlQjqJ1ZOX8fu9fT8bCFKcayhpslDbwRuAEdWYwPyiCAOCK hn+N28JSYc0lTCgQC5/IK8u8sZSa6THgNSSUXa/MTQe4a3FH6eY6Q1rLIkzX+ivCQuSq YX9Emhmgvvs9EsDzfmLIlp3tPncQXZg55028z1q5VuYno/gNydKymXC5Dc+Vp1eu+HGc gVOulaQGSRVQXC/8rndZEE8pCBQ67bvo3MPGLAxI6dOlR6HkdNS0I6qKLCz/6vfneQb8 6dT62qTO2fTSiV1dq14ypE4L1GhLTzFntexbu5ZzXVAZRs2G7WA6MB3CnZ8RM+HhRidx P1Iw== X-Received: by 10.68.213.5 with SMTP id no5mr3534026pbc.185.1375380858405; Thu, 01 Aug 2013 11:14:18 -0700 (PDT) Received: from [29.6.1.42] ([70.96.116.236]) by mx.google.com with ESMTPSA id ot4sm5542993pac.17.2013.08.01.11.14.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Aug 2013 11:14:17 -0700 (PDT) Message-ID: <51FAA575.4000604@boundarydevices.com> Date: Thu, 01 Aug 2013 11:14:13 -0700 From: Eric Nelson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Carrillodominguez Francisco Alberto-B35153 References: <1374085031-2116-1-git-send-email-otavio@ossystems.com.br> <1374085031-2116-8-git-send-email-otavio@ossystems.com.br> <51F803DA.8090008@boundarydevices.com>, <44DF7CDEDF8FFF4BB93AB22C1AA1823B8DDCAF@039-SN2MPN1-021.039d.mgd.msft.net> <51FA9DA4.7030805@boundarydevices.com> <999FEFBC61661A4099B55CE06B5D10755526A5@039-SN1MPN1-001.039d.mgd.msft.net> In-Reply-To: <999FEFBC61661A4099B55CE06B5D10755526A5@039-SN1MPN1-001.039d.mgd.msft.net> X-Gm-Message-State: ALoCoQkShdLLhTE1oRuNVeIJ61MmgYKphzOM1AR0WrcxjeJLznkgoj+HrUYHJbGUrh4IPTI/RvXx Cc: Sandoval Gonzalez Leonardo-B42214 , meta-freescale Mailing List , Otavio Salvador Subject: Re: [meta-fsl-arm PATCH 8/8] qt4: Enable OpenGL ES2 support for i.MX6 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Aug 2013 18:14:21 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Thanks Francisco, I've been able to do the same using a Yocto-based image and meta-qt5, but it was quite the ordeal to wrangle packaging. My question was related to Qt4. We're including patches to enable OpenGL, and I've been unable to see it function. Regards, Eric On 08/01/2013 11:10 AM, Carrillodominguez Francisco Alberto-B35153 wrote: > I have tested Opengl ES2 in Qt5, but not over a Yocto made image. > > The image I used is still created with Ltib. > > I executed these demos successfully: > > Hellowindow > Scenegraph/* > Shadereffects > And other qml demos. > > > The key during Qt installation is that OpenGL is detected when calling the configure script. Normally during a manual installation you will see the summary of detected features. I ignore if this list is presented during a Yocto baking process. > > > Francisco C. > > > -----Original Message----- > From: Eric Nelson [mailto:eric.nelson@boundarydevices.com] > Sent: Thursday, August 01, 2013 12:41 PM > To: Sandoval Gonzalez Leonardo-B42214 > Cc: Otavio Salvador; meta-freescale Mailing List; Carrillodominguez Francisco Alberto-B35153 > Subject: Re: [meta-freescale] [meta-fsl-arm PATCH 8/8] qt4: Enable OpenGL ES2 support for i.MX6 > > Thanks Leonardo, > > BTW, I'm about to bail on the combination of Qt4/glimagesink 0.10. > > The "client-draw-callback" property callbacks work pretty well, and I was thinking that we could use that to write into Qt's EGL context (if we could get one), but it seems that there's more to the picture. > > In particular: > -- This call to get the display is essentially hardcoded for > /dev/FB0: > > https://bitbucket.org/Freescale/gstreamer-gst-plugins-gl/src/3554c07ead40c48620ac8e4864d81988d0b9476b/gst-libs/gst/gl/gstglwindow_fbES2.c?at=0.10#cl-314 > > -- This call to eglSetCurrent() sets the display to black: > https://bitbucket.org/Freescale/gstreamer-gst-plugins-gl/src/3554c07ead40c48620ac8e4864d81988d0b9476b/gst-libs/gst/gl/gstglwindow_fbES2.c?at=0.10#cl-372 > > And all of this appears to have been re-structured in upstream > master: > http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/tree/gst-libs/gst/gl > > That said, if the OpenGL context in Qt4 isn't accessible, there's no reason to compile it in. > > On 08/01/2013 09:19 AM, Sandoval Gonzalez Leonardo-B42214 wrote: >> I think Francisco did not get last email. >> >> Francisco, >> please mention the testing you did. >> >> Leo >> ________________________________________ >> From: otavio.salvador@gmail.com [otavio.salvador@gmail.com] on behalf >> of Otavio Salvador [otavio@ossystems.com.br] >> Sent: Wednesday, July 31, 2013 10:03 PM >> To: Eric Nelson >> Cc: meta-freescale Mailing List; Sandoval Gonzalez Leonardo-B42214; >> Carrillodominguez Francisco Alberto-B35153 >> Subject: Re: [meta-freescale] [meta-fsl-arm PATCH 8/8] qt4: Enable >> OpenGL ES2 support for i.MX6 >> >> On Tue, Jul 30, 2013 at 3:20 PM, Eric Nelson >> wrote: >>> Hi all, >>> >>> >>> On 07/17/2013 11:17 AM, Otavio Salvador wrote: >>>> >>>> The Vivante libraries need some special linking as it has a more >>>> modular design which thus require a specific set of mkspec changes >>>> to make it to work. This change makes the linking to work when >>>> building against Vivante libraries for i.MX6 SoCs. >>>> >>>> >>>> >>> >>>> >>>> >>>> diff --git a/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend >>>> b/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend >>>> index 74bfb31..4c4d0c9 100644 >>>> --- a/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend >>>> +++ b/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend >>>> @@ -9,6 +9,7 @@ PACKAGE_ARCH_mx5 = "${MACHINE_ARCH}" >>>> QT_GLFLAGS_mx5 = "-opengl es2 -openvg" >>>> QT_CONFIG_FLAGS_append_mx5 = " -I${STAGING_KERNEL_DIR}/include/" >>>> >>>> -DEPENDS_append_mx6 = " virtual/kernel" >>>> +DEPENDS_append_mx6 = " virtual/kernel virtual/libgles2" >>>> PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}" >>>> -QT_CONFIG_FLAGS_append_mx6 = " -I${STAGING_KERNEL_DIR}/include/" >>>> +QT_GLFLAGS_mx6 = "-opengl es2 -openvg" >>>> +QT_CONFIG_FLAGS_append_mx6 = " -I${STAGING_KERNEL_DIR}/include/ >>>> +-DLINUX=1 >>>> -DEGL_API_FB=1" >>>> diff --git a/recipes-qt/qt4/qt4/mx6/g++.conf >>>> b/recipes-qt/qt4/qt4/mx6/g++.conf >>> >>> >>> This patch seems to work perfectly for me, but I'm a bit confused >>> about what it actually enables in Qt. >>> >>> Neither the QGLWidget examples like hellogl_es2 or the QML-based >>> shadereffects demos seem to run. >>> >>> Is there a sample program that shows how to access OpenGL/ES from Qt? >>> >>> I'm trying to grok what the glue between glimagesink and a Qt >>> application should look like. >> >> I am adding Leonardo and Francisco, who did the tests on this, so they comment. >> >> -- >> Otavio Salvador O.S. Systems >> http://www.ossystems.com.br http://projetos.ossystems.com.br >> Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750 >> >> > >