From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E5012E014E4 for ; Thu, 1 Aug 2013 10:41:00 -0700 (PDT) Received: by mail-pa0-f50.google.com with SMTP id fb10so2416661pad.9 for ; Thu, 01 Aug 2013 10:41:00 -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=tcvoXTOpYZONGvZgf3+qE1P9N8bDvbmohxLUFDshJAw=; b=gRjP/Ns1yTSed2Z6F2kjJvHha1V2uKLgZCm4mYhBoo8AjBfwPlrRGv0YiFB1wQ/BCL Grsi900QwfvQhWvk+3SnXdoBIoRIenetK/XLbVV84S1SXctTlH0jFmQ1JL2nHKjXA/hc qaJVT3j198utrrj7453Zbouf5ZH66D1DRwtdF1at/0wf4Z02npWZILvhGzRVJp13KVRm ASKDaYRz1C4bTRi1QUOlFuADrIFEIEpX4AYp3PDRCK+VO/bySqvyiwRpVcemY46g6WDV 5fQc1dl10wbRNC/7DV+omnXaR6gZ5/rbXFZKqNehXERsuosAY3oArUMoEt0CuSWFzyb6 as9g== X-Received: by 10.68.197.104 with SMTP id it8mr3548025pbc.17.1375378860258; Thu, 01 Aug 2013 10:41:00 -0700 (PDT) Received: from [29.6.1.42] ([70.96.116.236]) by mx.google.com with ESMTPSA id yg1sm2933100pbb.1.2013.08.01.10.40.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Aug 2013 10:40:59 -0700 (PDT) Message-ID: <51FA9DA4.7030805@boundarydevices.com> Date: Thu, 01 Aug 2013 10:40:52 -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: Sandoval Gonzalez Leonardo-B42214 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> In-Reply-To: <44DF7CDEDF8FFF4BB93AB22C1AA1823B8DDCAF@039-SN2MPN1-021.039d.mgd.msft.net> X-Gm-Message-State: ALoCoQnAfU085zcRoHmGNF8yG9mhLvC4BTn1AgyIHjedlTQ99/UGqf9CFRm0IuaDC4mMW4jZcDaz Cc: 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 17:41:02 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 > >