Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.4 Cross Compile for Raspberry Pi 2
Forum Updated to NodeBB v4.3 + New Features

Qt 5.4 Cross Compile for Raspberry Pi 2

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 1.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    miki81
    wrote on last edited by miki81
    #1

    Hi,
    I try to cross compile qt 5.4 for raspberry pi 2 with success, but when I try run qmlscene test.qml i get message:

    EGL Error : Could not create the egl surface: error = 0x300b

    Aborted

    ===
    I also export variables:
    export LD_LIBRARY_PATH=/usr/lib:LD_LIBRARY_PATH
    export TSLIB_TSEVENTTYPE=INPUT
    export QTDIR=/usr/local/Qt-5.4
    export QWS_MOUSE_PROTO=tslib:/dev/input/event2
    export TSLIB_CONSOLEDEVICE=none
    export TSLIB_FBDEVICE=/dev/fb0
    export TSLIB_CALIBFILE=/etc/pointercal
    export TSLIB_CONFFILE=/etc/ts.conf
    export TSLIB_PLUGINDIR=/usr/local/lib/ts
    export TSLIB_TSDEVICE=/dev/input/event2
    export QWS_DISPLAY=LinuxFB:mmWidth=1366:mmHeight=768
    export QT_QPA_EGLFS_PHYSICAL_WIDTH=345
    export QT_QPA_EGLFS_PHYSICAL_HEIGHT=195
    export QT_QPA_EGLFS_DEPTH=16

    Any suggestion what is wrong?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Leonardo
      wrote on last edited by Leonardo
      #2

      I had the same problem on Cubieboard2. The only solution that worked for me was this one:

      http://www.decom.ufop.br/imobilis/?p=4367

      Straight to the point:

      • Open qtbase/src/plugins/platforms/qeglfshooks_stub.cpp

      • Find EGLNativeWindowType QEglFSHooks::createNativeWindow

      • Change it to:

        EGLNativeWindowType QEglFSHooks::createNativeWindow(QPlatformWindow *platformWindow,
        const QSize &size,
        const QSurfaceFormat &format)
        {
           Q_UNUSED(platformWindow);
           Q_UNUSED(size);
           Q_UNUSED(format);
           //return 0;
        
          static struct mali_native_window native_window = {
          .width = (short unsigned int)size.width(),
          .height = (short unsigned int)size.height(),
          };
           return &native_window;
        }
        
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved