Results 1 to 8 of 8

Thread: Qml is not working

  1. #1
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Qml is not working

    Hi,

    I am trying to run qml default example in my device(arm-based device), it's throwing a error as below...

    "QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
    QtQuick: failed to create OpenGL context"

    By above I came to know that GLX and EGL should be enabled.
    Can you Please help me to enable GLX and GGL and explain what are the dependencies required to enable those????

    Thanks in advance............

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qml is not working

    It's hard to give any general instructions for enabling EGL on your device. Do you know for sure that your device supports EGL and OpenGLES?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qml is not working

    Hi,

    Thanks for your reply....

    For Opengl any particular hardware is required?? If there Can you please mention details????

    Thanks in advance

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qml is not working

    It could also be that Qt was not built with support either OpenGL or EGL for the device.

    What device are you using? Have you built Qt yourself or use someone's package?

    Cheers,
    _

  5. #5
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qml is not working

    My device is IMx6-Sololite.

    Yes,I have build Qt myself and Qt version version os Qt-5.5.0.
    Can you explain how to enabble support of OpenGL or EGL for the device.

    We did configuration as follows

    ".//configure -commercial -confirm-license -opengl es2 -device linux-imx6-g++ -device-option CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi- -sysroot /u01/rootfs -no-gcc-sysroot -I/u01/rootfs/usr/include -lz -qt-freetype -qt-xcb -icu --hostprefix=/usr/local/Qt-5.5.0 -I/root/icu/icu-25sep/icu/source/arm_install/include -L/root/icu/icu-25sep/icu/source/arm_install/lib -gstreamer 0.1"

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qml is not working

    That looks ok, did the output of configure confirm that the OpenGL ES2 support will be built?

    Can you run a non-Qt OpenGL program?

    Cheers,
    _

  7. #7
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qml is not working

    No, OpenGL ES2 support is disabled i.e., I am asking how to enable it.

    We didn't tried for non-Qt OpenGL program till now.

  8. #8
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qml is not working

    Quote Originally Posted by sanjeet View Post
    No, OpenGL ES2 support is disabled i.e., I am asking how to enable it.
    Well, if configure tells you it disabled it, then it must have missed some dependencies since the options you passed explicitly wanted it.
    Maybe the necessary headers are missing in your cross-compile sysroot, etc.

    Quote Originally Posted by sanjeet View Post
    We didn't tried for non-Qt OpenGL program till now.
    That would give you at least an indication if the system on the device itself has all the necessary libraries and drivers.

    Cheers,
    _

Similar Threads

  1. Replies: 7
    Last Post: 24th September 2012, 08:17
  2. Working with map
    By naptizaN in forum Newbie
    Replies: 4
    Last Post: 28th August 2012, 13:57
  3. MVC example not working
    By yyiu002 in forum Newbie
    Replies: 1
    Last Post: 30th June 2010, 01:07
  4. My first app not working
    By Noks in forum Newbie
    Replies: 6
    Last Post: 2nd February 2010, 17:34
  5. Mac OS X UI not working
    By hvengel in forum Qt Programming
    Replies: 3
    Last Post: 1st April 2006, 02:02

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.