AnsweredAssumed Answered

issue:The example hellogl2 display on imx6 use eglfs Qt5.4.2

Question asked by zhang ke on Nov 1, 2015
Latest reply on Nov 3, 2015 by zhang ke

Hi everyone:

     When I want to develop application with Qt5.4.2,I download the sourcecode named qt-everywhere-opensource-src-5.4.2.tar.gz from Qt-Download,and buid it according toAdeneo Embedded: Building Qt 5.1 for Freescale i.MX6 – A white paper by Cuong Chou ,copy the generated directory to rootfs/usr/local/Trolltech,using nfs & tftp to boot through localnet,when I use the example hellogl2,there are soma issues Which not appeared when I use Qt5.3.2.

 

Now the issues are:

root@freescale /$ ./hellogl2

Unable to query physical screen size, defaulting to 100 dpi.

To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).

Cannot find libdbus-1 in your system to resolve symbol 'dbus_get_local_machine_id'.

Aborted

 

 

     Well,I try to  set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT in /etc/profile such as

export QT_QPA_EGLFS_PHYSICAL_WIDTH=100

export QT_QPA_EGLFS_PHYSICAL_HEIGHT=80

as a result,issue 1 not appears,but issue 2 remains,such as:

 

root@freescale /opt$ ./hellogl2

Cannot find libdbus-1 in your system to resolve symbol 'dbus_get_local_machine_id'.

Aborted

 

I have no idea how to solve it,Thanks for your help!

 

Best regars!

GL & HF!

Outcomes