On Sun, December 30, 2012 12:13:58 S. Muthaiah wrote:
> Hi All,
>
> I successfully compiled Qt 5.0.0 for IMx53 Board.
>
> I configured with -eglfs and -opengl es2 options.
> My cross compilation was successful.
>
> When I run application , i got below error message.
>
> ./hellogl_es2 -platform -eglfs
(you have a - before 'eglfs', I guess that's a copy&past error?)
I hereby forbid the usage of "hellogl_es2" and in combination with "eglfs"!!;)
It's not working, it's not supported, it's not useful!
It's just plain wrong!!
>
> Unable to handle kernel paging request at virtual address 0505d004
> pgd = 99cc0000
> [0505d004] *pgd=00000000
> Internal error: Oops: 805
> 3<https://bugreports.qt-project.org/browse/QTQAINFRA-590#3> PREEMPT last
> sysfs file: /sys/devices/platform/fsl-ehci.1/usb2/2-0:1.0/uevent Modules
> linked in:
> CPU: 0 Tainted: G D (2.6.35.3-1129-g691c08a #668)
> PC is at kgsl_drawctxt_create+0x17c/0xb4c
> LR is at 0x505d018
> pc : [<802e864c>] lr : [<0505d018>] psr: 40000013
> sp : 9807ddf0 ip : 0505d01c fp : 0505d004
> r10: 0505d00c r9 : 0505d008 r8 : 0505d010
> r7 : 0505d014 r6 : 00000000 r5 : 807e34d8 r4 : 807e14a0
> r3 : 0505d000 r2 : 0505c000 r1 : 0505d034 r0 : 0505d020
> Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
> Control: 10c5387d Table: 89cc0019 DAC: 00000015
> Process hellogl_es2 (pid: 3762, stack limit = 0x9807c2e8)
> Stack: (0x9807ddf0 to 0x9807e000)
> dde0: 9c18dd80 800c5984 9d4fc400 0505d024
> de00: 9d516380 800c5d38 807e31f0 00001d50 0000000e 9d4fc400 00008000
> 0505d02c
>
> For animatedtiles example,
>
> I got =====
>
> olor formats don't match. Falling back to copy forward swap.
> Color formats don't match. Falling back to copy forward swap.
> Color formats don't match. Falling back to copy forward swap.
> Color formats don't match. Falling back to copy forward swap.
> Color formats don't match. Falling back to copy forward swap.
> Color formats don't match. Falling back to copy forward swap.
> Color formats don't match. Falling back to copy forward swap.
> QOpenGLShader::link: "Link was successful.
> "
> Color formats don't match. Falling back to copy forward swap.
> Color formats don't match. Falling back to copy forward swap.
> Color formats don't match. Falling back to copy forward swap.
>
> Please suggest me how to solve the above problem.
>
> Regards,
> S.Muthaiah
First thing you should make sure is that you're not using the opengl
graphicssystem, but rather just a opengl viewport on the QGraphicsView... or
go directly to scengraph!
I personal recommend qmlscene+Quick2.0 (or qmlview -opengl) to start with.
Alternatively you can alter the AnimatedTiles source-code to set a proper
QGLWidget as viewport.
IF(!) you still got the same errors, let us know.
>
>
> ________________________________
> From: S. Muthaiah
> Sent: Thursday, December 27, 2012 8:17 PM
> To: 'interest@qt-project.org'
> Cc: 'Thiago Macieira'
> Subject: RE: Qt 5 Cross compile issue
>
>
> Hi,
>
>
>
> I installed XCB in sysroot directory.
>
> And also I included sysroot in configure command like this,
>
>
>
> ./configure -v -prefix /usr/local/Qt-5.0.0 -xplatform linux-g++-mx5x
> -opensource -nomake examples -nomake demos -nomake tests -no-opengl -qt-xcb
> -qpa xcb -no-directfb -release -shared -fast -no-largefile
> -no-accessibility -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci
> -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds
> -no-c++11 -no-javascript-jit -qml-debug -no-sse2 -no-sse3 -no-ssse3
> -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-neon -no-mips_dsp -no-mips_dspr2
> -qt-zlib -qt-libpng -qt-libjpeg -no-openssl -no-eglfs -qt-pcre
> -optimized-qmake -no-nis -no-cups -no-iconv -no-icu -no-strip -no-dbus
> -no-separate-debug-info -no-kms -no-glib -I/usr/include/freetype2 -sysroot
> /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-
> gnueabi/arm-fsl-linux-gnueabi/sysroot/
>
>
>
>
>
> When I execute above command ,I got some other erros like,
>
>
>
> /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-g
> nueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-
> gnueabi/bin/ld: crt1.o: No such file: No such file or directory
>
>
>
> /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-g
> nueabi/bin/arm-linux-g++ -ffast-math -Wl,-O1 -o floatmath floatmath.o
> -L/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linu
> x-gnueabi/arm-fsl-linux-gnueabi/sysroot/lib
> --sysroot=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-
> fsl-linux-gnueabi/arm-fsl-linux-gnueabi/sysroot/
>
> /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-g
> nueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-
> gnueabi/bin/ld: crt1.o: No such file: No such file or directory
>
> collect2: ld returned 1 exit status
>
>
>
> Please suggest me how to solve the above error.
>
>
>
>
>
> Regards,
>
> S.Muthaiah
>
>
>
> -----Original Message-----
> From: Thiago Macieira [mailto:thiago.macie...@intel.com]
> Sent: Thursday, December 27, 2012 6:39 PM
> To: S. Muthaiah
> Subject: Re: Qt 5 Cross compile issue
>
> On quinta-feira, 27 de dezembro de 2012, às 11.42.59, you wrote:
> > /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux
> > -
> >
> > gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-lin
> > ux
> >
> > -gnueabi/bin/ld: cannot find -lxcb collect2: ld returned 1 exit status
> >
> > make: *** [xcb] Error 1
> >
> > xcb disabled.
> >
> > The test for linking against libxcb failed!
> >
> > You might need to install dependency packages for libxcb.
> >
> > See src/plugins/platforms/xcb/README.
>
> You need to install the XCB libraries in your sysroot.
>
>
>
> Please use the interest@qt-project.org mailing list for such issues instead
> of
>
> emailing me directly.
>
> --
>
> Thiago Macieira - thiago.macieira (AT) intel.com
>
> Software Architect - Intel Open Source Technology Center
>
>
>
> -----Original Message-----
> Hi thiago.macieira
>
> I have a problem to build xcb library.
> i got following error when i configure Qt 5 with -qt-xcb and -qpa xcb
> options.
>
> I installed all the xcb libraries which are specified in Read me file and
> also i included xcb header file and library file location in configure
> path.
>
> /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-g
> nueabi/bin/arm-linux-g++ -ffast-math -Wl,-O1 -o xcb xcb.o -L/usr/local/lib
> -lxcb
> /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-
> gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux
> -gnueabi/bin/ld: skipping incompatible /usr/local/lib/libxcb.so when
> searching for -lxcb
> /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-
> gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux
> -gnueabi/bin/ld: skipping incompatible /usr/local/lib/libxcb.a when
> searching for -lxcb
> /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-
> gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux
> -gnueabi/bin/ld: cannot find -lxcb collect2: ld returned 1 exit status
> make: *** [xcb] Error 1
> xcb disabled.
> The test for linking against libxcb failed!
> You might need to install dependency packages for libxcb.
> See src/plugins/platforms/xcb/README.
/*
* eglinfo - like glxinfo but for EGL
*
* Brian Paul
* 11 March 2005
*
* Copyright (C) 2005 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <GLES2/gl2.h>
#define MAX_CONFIGS 1000
#define MAX_MODES 1000
#define MAX_SCREENS 10
/**
* Print table of all available configurations.
*/
static void
PrintConfigs(EGLDisplay d)
{
EGLConfig configs[MAX_CONFIGS];
EGLint numConfigs, i;
eglGetConfigs(d, configs, MAX_CONFIGS, &numConfigs);
printf("Configurations:\n");
printf(" bf lv d st colorbuffer dp st ms vis supported\n");
printf(" id sz l b ro r g b a th cl ns b id surfaces \n");
printf("---------------------------------------------------------------\n");
for (i = 0; i < numConfigs; i++) {
EGLint id, size, level;
EGLint red, green, blue, alpha;
EGLint depth, stencil;
EGLint surfaces;
EGLint doubleBuf = 1, stereo = 0;
EGLint vid;
EGLint samples, sampleBuffers;
char surfString[100] = "";
eglGetConfigAttrib(d, configs[i], EGL_CONFIG_ID, &id);
eglGetConfigAttrib(d, configs[i], EGL_BUFFER_SIZE, &size);
eglGetConfigAttrib(d, configs[i], EGL_LEVEL, &level);
eglGetConfigAttrib(d, configs[i], EGL_RED_SIZE, &red);
eglGetConfigAttrib(d, configs[i], EGL_GREEN_SIZE, &green);
eglGetConfigAttrib(d, configs[i], EGL_BLUE_SIZE, &blue);
eglGetConfigAttrib(d, configs[i], EGL_ALPHA_SIZE, &alpha);
eglGetConfigAttrib(d, configs[i], EGL_DEPTH_SIZE, &depth);
eglGetConfigAttrib(d, configs[i], EGL_STENCIL_SIZE, &stencil);
eglGetConfigAttrib(d, configs[i], EGL_NATIVE_VISUAL_ID, &vid);
eglGetConfigAttrib(d, configs[i], EGL_SURFACE_TYPE, &surfaces);
eglGetConfigAttrib(d, configs[i], EGL_SAMPLES, &samples);
eglGetConfigAttrib(d, configs[i], EGL_SAMPLE_BUFFERS, &sampleBuffers);
if (surfaces & EGL_WINDOW_BIT)
strcat(surfString, "win,");
if (surfaces & EGL_PBUFFER_BIT)
strcat(surfString, "pb,");
if (surfaces & EGL_PIXMAP_BIT)
strcat(surfString, "pix,");
/*#ifdef EGL_MESA_screen_surface
if (surfaces & EGL_SCREEN_BIT_MESA)
strcat(surfString, "scrn,");
#endif*/
if (strlen(surfString) > 0)
surfString[strlen(surfString) - 1] = 0;
printf("0x%02x %2d %2d %c %c %2d %2d %2d %2d %2d %2d %2d%2d 0x%02x %-12s\n",
id, size, level,
doubleBuf ? 'y' : '.',
stereo ? 'y' : '.',
red, green, blue, alpha,
depth, stencil,
samples, sampleBuffers, vid, surfString);
}
}
/**
* Print table of all available configurations.
*/
static void
PrintModes(EGLDisplay d)
{
/*#ifdef EGL_MESA_screen_surface
const char *extensions = eglQueryString(d, EGL_EXTENSIONS);
if (strstr(extensions, "EGL_MESA_screen_surface")) {
EGLScreenMESA screens[MAX_SCREENS];
EGLint numScreens = 1, scrn;
EGLModeMESA modes[MAX_MODES];
eglGetScreensMESA(d, screens, MAX_SCREENS, &numScreens);
printf("Number of Screens: %d\n\n", numScreens);
for (scrn = 0; scrn < numScreens; scrn++) {
EGLint numModes, i;
eglGetModesMESA(d, screens[scrn], modes, MAX_MODES, &numModes);
printf("Screen %d Modes:\n", scrn);
printf(" id width height refresh name\n");
printf("-----------------------------------------\n");
for (i = 0; i < numModes; i++) {
EGLint id, w, h, r;
const char *str;
eglGetModeAttribMESA(d, modes[i], EGL_MODE_ID_MESA, &id);
eglGetModeAttribMESA(d, modes[i], EGL_WIDTH, &w);
eglGetModeAttribMESA(d, modes[i], EGL_HEIGHT, &h);
eglGetModeAttribMESA(d, modes[i], EGL_REFRESH_RATE_MESA, &r);
str = eglQueryModeStringMESA(d, modes[i]);
printf("0x%02x %5d %5d %.3f %s\n", id, w, h, r / 1000.0, str);
}
}
}
#endif*/
}
int main(int argc, char *argv[])
{
if (!eglBindAPI(EGL_OPENGL_ES_API)) {
printf("Could not bind GL_ES API\n");
exit(1);
}
int maj, min;
EGLDisplay d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
if (d == EGL_NO_DISPLAY) {
printf("Could not open egl display\n");
}
printf("Opened display %p\n", d);
if (!eglInitialize(d, &maj, &min)) {
printf("eglinfo: eglInitialize failed\n");
exit(1);
}
printf("GL extensions strings:\n");
printf(" %s\n", glGetString(GL_EXTENSIONS));
printf("EGL API version: %d.%d\n", maj, min);
printf("EGL vendor string: %s\n", eglQueryString(d, EGL_VENDOR));
printf("EGL version string: %s\n", eglQueryString(d, EGL_VERSION));
#ifdef EGL_VERSION_1_2
printf("EGL client APIs: %s\n", eglQueryString(d, EGL_CLIENT_APIS));
#endif
printf("EGL extensions string:\n");
printf(" %s\n", eglQueryString(d, EGL_EXTENSIONS));
PrintConfigs(d);
PrintModes(d);
eglTerminate(d);
return 0;
}
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest