From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2340AE002E3 for ; Tue, 30 Jul 2013 11:20:15 -0700 (PDT) Received: by mail-pd0-f170.google.com with SMTP id x10so2507089pdj.15 for ; Tue, 30 Jul 2013 11:20:15 -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=FowdwEHBXSihdGW2lYx8lR6YUnHkcmjsVeVoI0I7OXk=; b=CWxZTIwI1u12+x9qXzBeEEKLuMV41AfLRNa4zRPTsC7qwaKZryvGEr0O7VEsNDoLta Yl/VcfFo/ETLj1zojR1qh8CUC/xpyDp25iGV+ZkQd8RkjhwbjMtJaf/FLk6NDs+hRfQF Il/+t8MHj1pAqCa4kzl9sPkemliWxOuE15mp7ncH+irF8waAhaBH2MjZS1Kd8dGkERR+ mEd0jvEvroilO9hpblNMevCoQp9S0FL3HXCbDc2oRx3xq2+v3b6HtK/SGGambcM3fIP7 dz6r8Lx7zx1XsOuiosoxubs12MZAFmgwaIRtDW+u5fYJFotl8X/0mKvfrp9UeltH7MCO SyNQ== X-Received: by 10.66.192.234 with SMTP id hj10mr76231364pac.183.1375208414968; Tue, 30 Jul 2013 11:20:14 -0700 (PDT) Received: from [29.6.1.42] ([70.96.116.236]) by mx.google.com with ESMTPSA id nm10sm84368577pbc.28.2013.07.30.11.20.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Jul 2013 11:20:13 -0700 (PDT) Message-ID: <51F803DA.8090008@boundarydevices.com> Date: Tue, 30 Jul 2013 11:20:10 -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: meta-freescale Mailing List References: <1374085031-2116-1-git-send-email-otavio@ossystems.com.br> <1374085031-2116-8-git-send-email-otavio@ossystems.com.br> In-Reply-To: <1374085031-2116-8-git-send-email-otavio@ossystems.com.br> X-Gm-Message-State: ALoCoQn071KzdJcaS/r/suNC5wyMnYTgiUnsb7tsU9sDgotrRll43InAYTdx+b1/VxGo3s+aKiRr Cc: 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: Tue, 30 Jul 2013 18:20:16 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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. Regards, Eric