Can't build qt 5.9.1 for Tinkerboard?



  • Hi,
    I tried building qt for asus tinker board according to this qt blog post:
    https://blog.qt.io/blog/2017/05/03/qt-git-tinkerboard-wayland/

    I checked out version v5.9.1 (i don't which version is used in the blog post) from git repository and tried to build, the configuration seems ok as:

      EGL .................................... yes
      OpenVG ................................. no
      OpenGL:
        Desktop OpenGL ....................... no
        OpenGL ES 2.0 ........................ yes
        OpenGL ES 3.0 ........................ yes
        OpenGL ES 3.1 ........................ no
      Session Management ..................... yes
    Features used by QPA backends:
      evdev .................................. yes
      libinput ............................... no
      INTEGRITY HID .......................... no
      mtdev .................................. no
      tslib .................................. no
      xkbcommon-evdev ........................ no
    QPA backends:
      DirectFB ............................... no
      EGLFS .................................. yes
      EGLFS details:
        EGLFS i.Mx6 .......................... no
        EGLFS i.Mx6 Wayland .................. no
        EGLFS EGLDevice ...................... yes
        EGLFS GBM ............................ yes
        EGLFS Mali ........................... no
        EGLFS Raspberry Pi ................... no
        EGL on X11 ........................... no
      LinuxFB ................................ yes
      VNC .................................... yes
      Mir client ............................. no
    

    But after i run make it stops and gives the following error:

    /home/milad/Desktop/embedded-dev/Qt/Qt5/qt5_git_source/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_egldevice/qeglfskmsegldevice.cpp:80:22: error: prototype for ‘gbm_device* QEglFSKmsEglDevice::nativeDisplay() const’ does not match any in class ‘QEglFSKmsEglDevice’
     EGLNativeDisplayType QEglFSKmsEglDevice::nativeDisplay() const
                          ^~~~~~~~~~~~~~~~~~
    In file included from /home/milad/Desktop/embedded-dev/Qt/Qt5/qt5_git_source/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_egldevice/qeglfskmsegldevice.cpp:40:0:
    /home/milad/Desktop/embedded-dev/Qt/Qt5/qt5_git_source/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_egldevice/qeglfskmsegldevice.h:58:11: error: candidate is: virtual void* QEglFSKmsEglDevice::nativeDisplay() const
         void *nativeDisplay() const override;
               ^~~~~~~~~~~~~
    make[6]: *** [.obj/qeglfskmsegldevice.o] Error 1
    make[6]: Leaving directory `/home/milad/Desktop/embedded-dev/Qt/Qt5/build/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_egldevice'
    make[5]: *** [sub-eglfs_kms_egldevice-make_first] Error 2
    make[5]: Leaving directory `/home/milad/Desktop/embedded-dev/Qt/Qt5/build/src/plugins/platforms/eglfs/deviceintegration'
    make[4]: *** [sub-deviceintegration-make_first-ordered] Error 2
    make[4]: Leaving directory `/home/milad/Desktop/embedded-dev/Qt/Qt5/build/src/plugins/platforms/eglfs'
    make[3]: *** [sub-eglfs-make_first] Error 2
    make[3]: Leaving directory `/home/milad/Desktop/embedded-dev/Qt/Qt5/build/src/plugins/platforms'
    make[2]: *** [sub-platforms-make_first] Error 2
    make[2]: Leaving directory `/home/milad/Desktop/embedded-dev/Qt/Qt5/build/src/plugins'
    make[1]: *** [sub-plugins-make_first] Error 2
    make[1]: Leaving directory `/home/milad/Desktop/embedded-dev/Qt/Qt5/build/src'
    make: *** [sub-src-make_first] Error 2
    

    I can confirm that i could build with same configuration and the same sysroot for Qt 5.8.0

    Whats the problem with the 5.9.1 source?


  • Lifetime Qt Champion

    Hi,

    From the blog post, it seems they are using the dev branch.

    Since you are using the git sources, you should update it, currently it's the 5.9.2 release that you should have from the 5.9 branch.



  • Thanks for your reply Sgaist.
    I tried to build the 5.9 branch which is currently on 5.9.2 (although there isn’t any v5.9.2 tag) again the same problem happens.
    but building from dev branch seems to solve the problem.
    I tried to find the patch to apply but there are lots of commits behind so i think most logical way is to wait for 5.10.0 stable release because i don’t want to take a risk and use a non stable build


  • Lifetime Qt Champion

    The 5.10 branch has just been created, you can build and test it.



  • Did you ever get Qt working on your Tinkerboard.

    As I am having issues following the blog guide!




Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.