Author Topic: QT5 - QtCreator not working  (Read 22329 times)

Offline SirRibeiro

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
QT5 - QtCreator not working
« on: May 12, 2015, 09:43:10 am »
Hello,

Me and my colleagues at the University of Minho (Portugal), we are working on a project that involves robots playing soccer.
For this we are using the CubiBoard4 to control all hardware and software required.
All that developed software level is done with the QT5 development environment, we have achieved to successfully compile the libraries, and at this time we managed to have any program to work properly in cubiboard4.
We can not however is to use qtcreator in the cubiboard4, after installing them, by the command: sudo apt-get install qtcreator, as we begin the QtCreator we get the following error:

linaro@cubieboard4:~$ qtcreator
libEGL warning: DRI2: failed to authenticate
libEGL warning: DRI2: failed to open swrast (search paths /usr/local/pvr/lib/dri)
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
file:///usr/share/qtcreator/welcomescreen/welcomescreen.qml:30:1: module "QtQuick" is not installed
     import QtQuick 2.1
     ^
SOFT ASSERT: "tc" in file /build/buildd/qtcreator-3.0.1/src/plugins/debugger/debuggerkitinformation.cpp, line 62
No tool chain set from kit "Desktop".
No tool chain set from kit "Desktop".
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize EGL
Aborted

Does anyone know of any way to solve this problem?

Here is a short video of the robots already operating with the cubiboard4 (for now commanded by a human)

http://youtu.be/1Yfjyqds4yk

Thanks

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #1 on: May 12, 2015, 09:49:27 am »
Hello,

Me and my colleagues at the University of Minho (Portugal), we are working on a project that involves robots playing soccer.
For this we are using the CubiBoard4 to control all hardware and software required.
All that developed software level is done with the QT5 development environment, we have achieved to successfully compile the libraries, and at this time we managed to have any program to work properly in cubiboard4.
We can not however is to use qtcreator in the cubiboard4, after installing them, by the command: sudo apt-get install qtcreator, as we begin the QtCreator we get the following error:

linaro@cubieboard4:~$ qtcreator
libEGL warning: DRI2: failed to authenticate
libEGL warning: DRI2: failed to open swrast (search paths /usr/local/pvr/lib/dri)
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
file:///usr/share/qtcreator/welcomescreen/welcomescreen.qml:30:1: module "QtQuick" is not installed
     import QtQuick 2.1
     ^
SOFT ASSERT: "tc" in file /build/buildd/qtcreator-3.0.1/src/plugins/debugger/debuggerkitinformation.cpp, line 62
No tool chain set from kit "Desktop".
No tool chain set from kit "Desktop".
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize EGL
Aborted

Does anyone know of any way to solve this problem?

Here is a short video of the robots already operating with the cubiboard4 (for now commanded by a human)

http://youtu.be/1Yfjyqds4yk

Thanks


Which image do you use?

Offline SirRibeiro

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #2 on: May 12, 2015, 09:52:09 am »
I Sam,

We use the last one now, ubuntu-linaro-v1.0, but even with the old 0.4 we have the same error.

Thanks

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #3 on: May 12, 2015, 10:20:55 pm »
I Sam,

We use the last one now, ubuntu-linaro-v1.0, but even with the old 0.4 we have the same error.

Thanks

run  this:
# cp /etc/X11/xorg-pvr.conf /etc/X11/xorg.conf
# reboot

 try again your QT5

Offline SirRibeiro

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #4 on: May 14, 2015, 02:09:54 pm »
Thank you for the quick response Sam,
I will try this as soon as I can.
We are now a week's vacation at the University  :)

Offline SirRibeiro

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #5 on: May 16, 2015, 04:57:28 pm »
It is working perfectly! Thank you Sam!!!  ;D

I would like to put one more question  :P , we are using a camera, Point Grey blackfly Gigabit with cubiboard4, is connected by gigabit ethernet port.
It turns out that we can not see the desired frames, we have talked with technical support from Point Grey (the camera vendors) and they have told us is to increase the MTU, but the maximum eth0 we could put is 3800, do you happened to know if is there any way to increase this?

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #6 on: May 18, 2015, 11:03:57 pm »
It is working perfectly! Thank you Sam!!!  ;D

I would like to put one more question  :P , we are using a camera, Point Grey blackfly Gigabit with cubiboard4, is connected by gigabit ethernet port.
It turns out that we can not see the desired frames, we have talked with technical support from Point Grey (the camera vendors) and they have told us is to increase the MTU, but the maximum eth0 we could put is 3800, do you happened to know if is there any way to increase this?

 now only support max eth0 :  3838. i   have no idea about increasing this

Offline SirRibeiro

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #7 on: May 19, 2015, 07:47:18 pm »
Ok thank you very much anyway.

One more thing, despite the QtCreator works correctly after copying the xorg-pvr.conf only works when I am connected directly to the board, that is, if you access by rdp or vnc no longer works and gives the same error that gives before copy this file.
You know why that happens?

I get this output:

libEGL warning: DRI2: failed to open swrast (search paths /usr/local/pvr/lib/dri)
libEGL warning: GLX: glXQueryVersion failed
xkbcommon: ERROR: Couldn't find file "rules/(" in include paths
xkbcommon: ERROR: 1 include paths searched:
xkbcommon: ERROR:    /usr/share/X11/xkb
xkbcommon: ERROR: 1 include paths could not be added:
xkbcommon: ERROR:    /home/linaro/.xkb
xkbcommon: ERROR: Couldn't look up rules '(', model 'pc105', layout 'us', variant '(null)', options '��'
Qt: Failed to compile a keymap
Xlib:  extension "RANDR" missing on display ":1.0".
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
file:///usr/share/qtcreator/welcomescreen/welcomescreen.qml:30:1: module "QtQuick" is not installed
     import QtQuick 2.1
     ^
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize EGL
Aborted
« Last Edit: May 20, 2015, 08:17:45 am by SirRibeiro »

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #8 on: May 21, 2015, 09:53:02 pm »
Ok thank you very much anyway.

One more thing, despite the QtCreator works correctly after copying the xorg-pvr.conf only works when I am connected directly to the board, that is, if you access by rdp or vnc no longer works and gives the same error that gives before copy this file.
You know why that happens?

I get this output:

libEGL warning: DRI2: failed to open swrast (search paths /usr/local/pvr/lib/dri)
libEGL warning: GLX: glXQueryVersion failed
xkbcommon: ERROR: Couldn't find file "rules/(" in include paths
xkbcommon: ERROR: 1 include paths searched:
xkbcommon: ERROR:    /usr/share/X11/xkb
xkbcommon: ERROR: 1 include paths could not be added:
xkbcommon: ERROR:    /home/linaro/.xkb
xkbcommon: ERROR: Couldn't look up rules '(', model 'pc105', layout 'us', variant '(null)', options '��'
Qt: Failed to compile a keymap
Xlib:  extension "RANDR" missing on display ":1.0".
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
file:///usr/share/qtcreator/welcomescreen/welcomescreen.qml:30:1: module "QtQuick" is not installed
     import QtQuick 2.1
     ^
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize EGL
Aborted


After copy the file , Is everything  OK??



Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #9 on: May 21, 2015, 10:02:59 pm »
Ok thank you very much anyway.

One more thing, despite the QtCreator works correctly after copying the xorg-pvr.conf only works when I am connected directly to the board, that is, if you access by rdp or vnc no longer works and gives the same error that gives before copy this file.
You know why that happens?

I get this output:

libEGL warning: DRI2: failed to open swrast (search paths /usr/local/pvr/lib/dri)
libEGL warning: GLX: glXQueryVersion failed
xkbcommon: ERROR: Couldn't find file "rules/(" in include paths
xkbcommon: ERROR: 1 include paths searched:
xkbcommon: ERROR:    /usr/share/X11/xkb
xkbcommon: ERROR: 1 include paths could not be added:
xkbcommon: ERROR:    /home/linaro/.xkb
xkbcommon: ERROR: Couldn't look up rules '(', model 'pc105', layout 'us', variant '(null)', options '��'
Qt: Failed to compile a keymap
Xlib:  extension "RANDR" missing on display ":1.0".
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
file:///usr/share/qtcreator/welcomescreen/welcomescreen.qml:30:1: module "QtQuick" is not installed
     import QtQuick 2.1
     ^
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize EGL
Aborted

The default desktop accleration use 2D fbturbo instand of pvr gpu  opengles.   That is why you have get this wrong log.

Offline SirRibeiro

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #10 on: May 22, 2015, 09:17:02 am »
Ok thank you very much anyway.

One more thing, despite the QtCreator works correctly after copying the xorg-pvr.conf only works when I am connected directly to the board, that is, if you access by rdp or vnc no longer works and gives the same error that gives before copy this file.
You know why that happens?

I get this output:

libEGL warning: DRI2: failed to open swrast (search paths /usr/local/pvr/lib/dri)
libEGL warning: GLX: glXQueryVersion failed
xkbcommon: ERROR: Couldn't find file "rules/(" in include paths
xkbcommon: ERROR: 1 include paths searched:
xkbcommon: ERROR:    /usr/share/X11/xkb
xkbcommon: ERROR: 1 include paths could not be added:
xkbcommon: ERROR:    /home/linaro/.xkb
xkbcommon: ERROR: Couldn't look up rules '(', model 'pc105', layout 'us', variant '(null)', options '��'
Qt: Failed to compile a keymap
Xlib:  extension "RANDR" missing on display ":1.0".
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
file:///usr/share/qtcreator/welcomescreen/welcomescreen.qml:30:1: module "QtQuick" is not installed
     import QtQuick 2.1
     ^
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize EGL
Aborted


After copy the file , Is everything  OK??

No, it does not work in remote desktop, rdp or vnc, even with the xorg.conf like the xorg-pvr.conf.

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #11 on: June 01, 2015, 04:49:18 am »
Ok thank you very much anyway.

One more thing, despite the QtCreator works correctly after copying the xorg-pvr.conf only works when I am connected directly to the board, that is, if you access by rdp or vnc no longer works and gives the same error that gives before copy this file.
You know why that happens?

I get this output:

libEGL warning: DRI2: failed to open swrast (search paths /usr/local/pvr/lib/dri)
libEGL warning: GLX: glXQueryVersion failed
xkbcommon: ERROR: Couldn't find file "rules/(" in include paths
xkbcommon: ERROR: 1 include paths searched:
xkbcommon: ERROR:    /usr/share/X11/xkb
xkbcommon: ERROR: 1 include paths could not be added:
xkbcommon: ERROR:    /home/linaro/.xkb
xkbcommon: ERROR: Couldn't look up rules '(', model 'pc105', layout 'us', variant '(null)', options '��'
Qt: Failed to compile a keymap
Xlib:  extension "RANDR" missing on display ":1.0".
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
file:///usr/share/qtcreator/welcomescreen/welcomescreen.qml:30:1: module "QtQuick" is not installed
     import QtQuick 2.1
     ^
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize EGL
Aborted


After copy the file , Is everything  OK??

No, it does not work in remote desktop, rdp or vnc, even with the xorg.conf like the xorg-pvr.conf.


HI SirRibeiro , I try vnc , i can run qtcreator in vnc .  About your problem,   It seems the reason is :


1 Before install qtcreator ,
# cp /etc/Xorg-pvr.conf /etc/X11/xorg.conf
# apt-get install glmark2-es2
# glmark-es2  (can success run)

2 After  install qtcreator

linaro@cubieboard4:~$ glmark2-es2
Error: eglCreateContext() failed with error: 0x3009
Error: main: Could not initialize canvas

The failed reason is the libGLESv2.so have wrong link  After instatlling creator

root@cubieboard4:/usr/lib/arm-linux-gnueabihf# ls libGLESv2.so -al
lrwxrwxrwx 1 linaro linaro 21 Jun  1 08:26 libGLESv2.so -> mesa-egl/libGLESv2.so

the right link is : libGLESv2.so -> libGLESv2.so.1.4.3064661   You should change it . (You can checkout this using  before install creator)

and then  run glmark2-es2   to make sure it can run

3  install vnc ,   I login the cubieboard4  in windows using vnc viewer

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #12 on: June 01, 2015, 04:51:26 am »
Ok thank you very much anyway.

One more thing, despite the QtCreator works correctly after copying the xorg-pvr.conf only works when I am connected directly to the board, that is, if you access by rdp or vnc no longer works and gives the same error that gives before copy this file.
You know why that happens?

I get this output:

libEGL warning: DRI2: failed to open swrast (search paths /usr/local/pvr/lib/dri)
libEGL warning: GLX: glXQueryVersion failed
xkbcommon: ERROR: Couldn't find file "rules/(" in include paths
xkbcommon: ERROR: 1 include paths searched:
xkbcommon: ERROR:    /usr/share/X11/xkb
xkbcommon: ERROR: 1 include paths could not be added:
xkbcommon: ERROR:    /home/linaro/.xkb
xkbcommon: ERROR: Couldn't look up rules '(', model 'pc105', layout 'us', variant '(null)', options '��'
Qt: Failed to compile a keymap
Xlib:  extension "RANDR" missing on display ":1.0".
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
file:///usr/share/qtcreator/welcomescreen/welcomescreen.qml:30:1: module "QtQuick" is not installed
     import QtQuick 2.1
     ^
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize EGL
Aborted


After copy the file , Is everything  OK??

No, it does not work in remote desktop, rdp or vnc, even with the xorg.conf like the xorg-pvr.conf.


HI SirRibeiro , I try vnc , i can run qtcreator in vnc .  About your problem,   It seems the reason is :


1 Before install qtcreator ,
# cp /etc/Xorg-pvr.conf /etc/X11/xorg.conf
# apt-get install glmark2-es2
# glmark-es2  (can success run)

2 After  install qtcreator

linaro@cubieboard4:~$ glmark2-es2
Error: eglCreateContext() failed with error: 0x3009
Error: main: Could not initialize canvas

The failed reason is the libGLESv2.so have wrong link  After instatlling creator

root@cubieboard4:/usr/lib/arm-linux-gnueabihf# ls libGLESv2.so -al
lrwxrwxrwx 1 linaro linaro 21 Jun  1 08:26 libGLESv2.so -> mesa-egl/libGLESv2.so

the right link is : libGLESv2.so -> libGLESv2.so.1.4.3064661   You should change it . (You can checkout this using  before install creator)

and then  run glmark2-es2   to make sure it can run

3  install vnc ,   I login the cubieboard4  in windows using vnc viewer


Before install  qtcreator , you  can checkout  this :

root@cubieboard4:/usr/lib/arm-linux-gnueabihf# ls libGLESv2.so -al
lrwxrwxrwx 1 root root 24 Jun  1 08:51 libGLESv2.so -> libGLESv2.so.1.4.3064661

Offline Pedro Osorio

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #13 on: June 02, 2015, 12:58:21 pm »
Hey Sam,

Im also in SirRibeiro's team, and i have been testing your solution. After installing QT it indeed changes that, but we cant see any diference. I have a file with some tests and log files with the errors ! Hope you can give us some help !

// GLMARK2-ES2 USING WINDOWS VNC VIEWER

linaro@cubieboard4:/usr/lib/arm-linux-gnueabihf$ ll libGLES*
lrwxrwxrwx 1 root   root       27 Jun  2 11:26 libGLESv1_CM.so -> libGLESv1_CM.so.1.4.3064661
lrwxrwxrwx 1 root   root       27 Jun  2 11:26 libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.4.3064661
-rw-rw-r-- 1 linaro linaro 417348 Jun  2 11:26 libGLESv1_CM.so.1.4.3064661
lrwxrwxrwx 1 root   root       24 Jun  2 14:33 libGLESv2.so -> libGLESv2.so.1.4.3064661
lrwxrwxrwx 1 root   root       24 Jun  2 11:26 libGLESv2.so.1 -> libGLESv2.so.1.4.3064661
-rw-rw-r-- 1 linaro linaro 742184 Jun  2 11:26 libGLESv2.so.1.4.3064661
lrwxrwxrwx 1 root   root       24 Jun  2 11:26 libGLESv2.so.2 -> libGLESv2.so.1.4.3064661
linaro@cubieboard4:/usr/lib/arm-linux-gnueabihf$ glmark2-es2
libEGL warning: DRI2: failed to open swrast (search paths /usr/local/pvr/lib/dri)
libEGL warning: GLX: glXQueryVersion failed
Error: eglInitialize() failed with error: 12289
Error: Error: Could not get a valid XVisualInfo!
Error: Error: Couldn't create X Window!
Error: main: Could not initialize canvas
linaro@cubieboard4:/usr/lib/arm-linux-gnueabihf$

// GLMARK2-ES2  USING DIRECTLY ON CUBIEBOARD

linaro@cubieboard4:/usr/lib/arm-linux-gnueabihf$ ll libGLES*
lrwxrwxrwx 1 root   root       27 Jun  2 11:26 libGLESv1_CM.so -> libGLESv1_CM.so.1.4.3064661
lrwxrwxrwx 1 root   root       27 Jun  2 11:26 libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.4.3064661
-rw-rw-r-- 1 linaro linaro 417348 Jun  2 11:26 libGLESv1_CM.so.1.4.3064661
lrwxrwxrwx 1 root   root       24 Jun  2 14:33 libGLESv2.so -> libGLESv2.so.1.4.3064661
lrwxrwxrwx 1 root   root       24 Jun  2 11:26 libGLESv2.so.1 -> libGLESv2.so.1.4.3064661
-rw-rw-r-- 1 linaro linaro 742184 Jun  2 11:26 libGLESv2.so.1.4.3064661
lrwxrwxrwx 1 root   root       24 Jun  2 11:26 libGLESv2.so.2 -> libGLESv2.so.1.4.3064661
linaro@cubieboard4:/usr/lib/arm-linux-gnueabihf$ glmark2-es2
=======================================================
    glmark2 2012.08
=======================================================
    OpenGL Information
    GL_VENDOR:     Imagination Technologies
    GL_RENDERER:   PowerVR Rogue G6230
    GL_VERSION:    OpenGL ES 3.1 build 1.4@3064661
=======================================================
[build] use-vbo=false:^C
// SUCCESS
linaro@cubieboard4:/usr/lib/arm-linux-gnueabihf$

// QTCreator VIA VNC VIEWER

linaro@cubieboard4:/usr/lib/arm-linux-gnueabihf$ qtcreator
libEGL warning: DRI2: failed to open swrast (search paths /usr/local/pvr/lib/dri)
libEGL warning: GLX: glXQueryVersion failed
xkbcommon: ERROR: Couldn't find file "rules/(" in include paths
xkbcommon: ERROR: 1 include paths searched:
xkbcommon: ERROR:    /usr/share/X11/xkb
xkbcommon: ERROR: 1 include paths could not be added:
xkbcommon: ERROR:    /home/linaro/.xkb
xkbcommon: ERROR: Couldn't look up rules '(', model 'pc105', layout 'us', variant '(null)', options '��'
Qt: Failed to compile a keymap
Xlib:  extension "RANDR" missing on display ":1.0".
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
file:///usr/share/qtcreator/welcomescreen/welcomescreen.qml:30:1: module "QtQuick" is not installed
     import QtQuick 2.1
     ^
No tool chain set from kit "Desktop".
No tool chain set from kit "Desktop".
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize EGL
Aborted

// QTCreator DIRECTLY ON CUBIEBOARD

linaro@cubieboard4:/usr/lib/arm-linux-gnueabihf$ qtcreator
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
file:///usr/share/qtcreator/welcomescreen/welcomescreen.qml:30:1: module "QtQuick" is not installed
     import QtQuick 2.1
     ^
No tool chain set from kit "Desktop".
No tool chain set from kit "Desktop".

Offline EverydayDiesel

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: QT5 - QtCreator not working
« Reply #14 on: August 05, 2015, 03:56:36 pm »
I did all the steps in this thread however I am now getting ":-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options." when trying to compile.

How can I fix this?