From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4C55FE00BF4; Thu, 17 Mar 2016 02:23:17 -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 * [212.227.17.13 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 303 seconds by postgrey-1.32 at yocto-www; Thu, 17 Mar 2016 02:23:13 PDT Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A20B4E00BEA for ; Thu, 17 Mar 2016 02:23:13 -0700 (PDT) Received: from fourconnected.homeip.net ([91.63.241.179]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MhlTv-1aSvFy0lRD-00MvFE for ; Thu, 17 Mar 2016 10:18:09 +0100 Received: from port-212-202-162-14.static.qsc.de ([212.202.162.14] helo=valkyrie.localnet) by fourconnected.homeip.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1agU4F-0002p5-34 for yocto@yoctoproject.org; Thu, 17 Mar 2016 10:18:07 +0100 From: David Weisgerber To: "yocto@yoctoproject.org" Date: Thu, 17 Mar 2016 10:17:56 +0100 Message-ID: <16216620.hxMGgcOmQf@valkyrie> Organization: M&S GmbH User-Agent: KMail/5.0.2 (Linux/4.2.0-27-generic; KDE/5.15.0; x86_64; ; ) In-Reply-To: References: <7024625.68jMvv6Lbg@valkyrie> MIME-Version: 1.0 X-Provags-ID: V03:K0:3e/gw6pZ4IIEXKMG65CT+v/oefvunY50PBVVy4iJ7sb0fzHIQVx rFw3ur6eBSw0ZjZT/jPbL9+u9vfCbGK+QY76VTCReBs+Vjwm8GW8Q3z5Gld9QC5AN6YvMSv cbCCPRQElarnOK823OfxGN9lr/hEvWeIY6Iwp9EWCvKgUOcZdyxrgd0gxjoQrk4mKo+kbsW AC6R20s0npGEX1rQuaufw== X-UI-Out-Filterresults: notjunk:1;V01:K0:taoIAtdgxX8=:Fv4sGCTYPRHBvYSGSk8OVI motr552EYIcwYLZT09HIky9t4KuIH8TZ/CxcvZY9Tqv+Up8DXGzXdwIBhdVBTV70SLQiznpuO lsJs9MQW7qualsy+m7m5QU3/bsiW+Zzk9KR2cpvFfKP7bvVBDLcw6/6Pk7q8rBRQGwdgYNonb iTYmNpQu9ig75L1holhJMOgnWVueMeEArPV+eBGLbuEaHjp62l1rV6ojN4sOUZBH265M0uMOK aHRZzBDQ2PkfluWP7fBoPk7yGchN1mMy0qzAcS1ZflHsczdm2CG15FN+SVtyCBUe9KpdMY4Vf z9zX/Rp8+3yUzHibWCKyIbph+cNWAXHrjs/Srs+8F4Q0rtCoJKfN3qWDHtUtweZYBNrh95qN4 LjsQ8164O0MdhLjXFS2xgO1dDK5hhvJALxKn0iAm32ra8b9bhqxY5tuKzx/90Bw4ccrbFDLKG P0qxRPyyv0df95wfy2/Me1Hf90zh9UUeqn1svI2D+F6QuLYTLXYvajgdwSX+szKyp2yY3I9xF yG8iG5g8MaagdTwgAiB19+BR6saB2E2zG4q8J/vSPFDdrUkmjl4l8lql3qY2pa2sBInKl2dmF exKyAR44kxlcgbXDT+s+hAz5uybTP14ODcqWqPF61v3CHgw4jXbGdqHsRPBhoFzmU3MH30k7T ThvVekiV/YWHMBH+due9RQkaDypmAPQ0yMOVEHkXj9aVhFJ+2yrrd8RNk7i8wOtw+3Rd1+35m 3b46DA3iJ1KUfniB Subject: Re: Compiling raspberry2 with eglinfo-x11 X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2016 09:23:17 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi, I got Qt to compile by solving the following "problem" in the userland EGL / GLESv2 code: # Khronos # # Note: in Android the linker is unable or unwilling to resolve # dynamically using already loaded symbols. The libraries here # have quite a few circular dependencies, and so the only way # to make it work seems to be to have everything static. There is a circular dependency between libEGL and libGLESv2. You can fix the Qt compile by adding the following qtbase_%.bbappend: do_configure_prepend_rpi() { cat > ${S}/mkspecs/oe-device-extra.pri << 'EOF' EGLFS_DEVICE_INTEGRATION = eglfs_brcm QMAKE_INCDIR_EGL = $$[QT_SYSROOT]${includedir}/interface/vmcs_host/linux QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL} QMAKE_LIBS_EGL = -lEGL -lGLESv2 EOF } which just changes the order of linking to the libraries. However, I am still not able to get the Qt eglfs programs running due to the following problem: * failed to add service - already in use? which must be coming from the userland code My problem could be caused by the fact, that changing GPU_MEM does not seem to have any effect atm and the vc4 driver isn't loaded at startup... Thanks for help, David On Thursday, March 17, 2016 12:41:17 PM SIVA SUBRAMANIAN. P wrote: > What is your preferred GLES provider set to, userland or mesa? > > On Wed, Mar 16, 2016 at 8:51 PM, David Weisgerber > > wrote: > > Hi, > > > > I have problems compiling eglinfo-x11 (as well as Qt 5 from meta-qt5) with > > egl. > > > > I have setup poky, meta-raspberrypi (and meta-qt5) from git and I am on > > branch master. > > > > My target is to get a distribution with working (hw acceleratetd) Qt5 with > > QML GUI. I have already spent some days on getting qteverywheredemo > > running > > but I did not succeed yet. > > > > As a first test I wanted to get eglinfo-x11 running but it gives the > > following error when compiling: > > > > [11/11] cxxprogram: build/release/src/json_writer.cpp.1.o > > build/release/src/log.cpp.1.o build/release/src/main.cpp.1.o > > build/release/src/process_egl.cpp.1.o build/release/src/scopes.cpp.1.o > > build/release/src/text_writer.cpp.1.o > > build/release/src/json-sax/json.c.1.o > > b > > uild/release/src/platform_x11_generic.cpp.1.o > > build/release/src/openvg_stats.cpp.1.o > > build/release/src/process_openvg.cpp.1.o -> build/release/eglinfo > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glDiscardFramebufferEXT' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glPointSizePointerOES' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_set_error_api' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_BindFramebuffer' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glintAttribPointer' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_state_free' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_FramebufferRenderbuffer' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_buffer_info_set' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_set_error' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_DeleteFramebuffers' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `gl11_client_state_init' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_GetFramebufferAttachmentParameteriv' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_IsRenderbuffer' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_GetRenderbufferParameteriv' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_DeleteRenderbuffers' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glBufferSubData' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_FramebufferTexture2D' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_BindRenderbuffer' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_GenerateMipmap' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_RenderbufferStorage' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_GenFramebuffers' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_GenRenderbuffers' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_CheckFramebufferStatus' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `gl20_client_state_init' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_buffer_info_get' > > /home/david/yocto/poky/build/tmp/sysroots/raspberrypi2/usr/lib/libEGL.so: > > undefined reference to `glxx_client_IsFramebuffer' > > > > > > > > It links to libEGL and libGLESv2. nm says that this symbols should be in > > libGLESv2 but it just does not catch them up somehow? > > > > > > > > My image is configured as follows: > > > > include recipes-core/images/rpi-hwup-image.bb > > > > > > > > GPU_MEM = "64" > > > > > > > > LICENSE_FLAGS_WHITELIST = "commercial" > > > > > > > > > > > > > > > > PACKAGECONFIG_append_pn-qtbase = "gles2" > > > > > > > > SPLASH = "psplash-custopi" > > > > > > > > ENABLE_SPI_BUS = "1" > > > > > > > > IMAGE_FEATURES += "ssh-server-openssh splash x11-sato" > > > > IMAGE_INSTALL_append = "qtbase qtbase-fonts custorouter custopi-gui > > packagegroup-core-full-cmdline bluez5 wireless-tools wpa-supplicant > > qt5everywheredemo fontconfig freetype packagegroup-core-x11-base > > packagegroup-core-x11-sato eglinfo-x11" > > > > > > > > IMAGE_LINGUAS ?= "de-de es-es fr-fr en-gb" > > > > > > > > Thanks for help! > > > > > > -- > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto