From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2BF39E00571; Tue, 1 Jul 2014 22:24:09 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [195.67.226.200 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 158 seconds by postgrey-1.32 at yocto-www; Tue, 01 Jul 2014 22:24:05 PDT Received: from smtp-out11.han.skanova.net (smtp-out11.han.skanova.net [195.67.226.200]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 71086E003C1 for ; Tue, 1 Jul 2014 22:24:05 -0700 (PDT) Received: from [10.175.196.23] (213.66.90.56) by smtp-out11.han.skanova.net (8.5.133) (authenticated as u82406562) id 5383405400E3B0E2 for meta-ti@yoctoproject.org; Wed, 2 Jul 2014 07:21:25 +0200 Message-ID: <53B396D4.4060608@emagii.com> Date: Wed, 02 Jul 2014 07:21:24 +0200 From: Ulf Samuelsson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: meta-ti@yoctoproject.org References: <3FE772D53E77C441B4E5285AE1261596694E44E8@AFSESTHEX6.af.se> <53B394EC.1060606@emagii.com> In-Reply-To: <53B394EC.1060606@emagii.com> Subject: Build of qtbase fails due to no OpenGL libraries, but completes after cleaning qtbase. X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2014 05:24:09 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit When I build an image with QT5 using meta-arago, qtbase fails with a lot of error messages. Some errors: $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.h:52:1: error: expected class-name before '{' token linking part1 $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp: In destructor 'virtual OpenGLWindow::~OpenGLWindow()': $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:63:12: warning: possible problem detected in invocation of delete operator: [enabled by default] $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:63:12: warning: invalid use of incomplete type 'class QOpenGLPaintDevice' [enabled by default] In file included from $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:41:0: $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.h:47:7: warning: forward declaration of 'class QOpenGLPaintDevice' [enabled by default] $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:63:12: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp: In member function 'virtual void OpenGLWindow::render()': $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:78:24: error: invalid use of incomplete type 'class QOpenGLPaintDevice' In file included from $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:41:0: $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.h:47:7: error: forward declaration of 'class QOpenGLPaintDevice' $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:80:13: error: 'GL_COLOR_BUFFER_BIT' was not declared in this scope $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:80:35: error: 'GL_DEPTH_BUFFER_BIT' was not declared in this scope $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:80:57: error: 'GL_STENCIL_BUFFER_BIT' was not declared in this scope $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:80:78: error: 'glClear' was not declared in this scope $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:82:13: error: invalid use of incomplete type 'class QOpenGLPaintDevice' In file included from $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:41:0: $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.h:47:7: error: forward declaration of 'class QOpenGLPaintDevice' $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:84:30: error: no matching function for call to 'QPainter::QPainter(QOpenGLPaintDevice*&)' $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:84:30: note: candidates are: In file included from $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/include/QtGui/qpainter.h:1:0, from $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/include/QtGui/QPainter:1, from $TMP/$WORKDIR/5.1.1-r0-arago1/qtbase-opensource-src-5.1.1/examples/gui/openglwindow/openglwindow.cpp:47: Googling indicates that this is because: "If -no-opengl is specified and OpenGL development files are installed, the error does occur." If I clean out qtbase, and then continue build, it will complete. $ bitbase -c cleansstate qtbase $ bitbake My guess is that during configuration, OpenGL cannot be found, but it is there during compile. There seems to be a dependency error (libgles-omap3?). BR Ulf Samuelsson