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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

2,967 Views
keleo0
Contributor I

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!

Labels (1)
0 Kudos
1 Reply

787 Views
keleo0
Contributor I

I resolved the two issues through:

1.vi /etc/profile(on board)

export QT_QPA_EGLFS_PHYSICAL_WIDTH=210

export QT_QPA_EGLFS_PHYSICAL_HEIGHT=158

(I measured the screen by a plastic ruler-_-!!!Later I found it`s no need....Orz....)

also no use to set,it will use default.

2.

cd qt-everywhere-opensource-src-5.4.2/qtbase/src/dbus

make

make install

cp -rf <generated directory> <on board directory>

3.boot board

./qopenglwidget

2130857799.jpg

0 Kudos