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. Cross Compiling Qt5.15.2 for raspberry pi 4
Forum Updated to NodeBB v4.3 + New Features

Cross Compiling Qt5.15.2 for raspberry pi 4

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 1.8k Views
  • 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.
  • DehghannnD Offline
    DehghannnD Offline
    Dehghannn
    wrote on last edited by
    #1

    Hi. I am trying to cross compile qt 5.15.2 for raspberry pi 4 with hardware accelerated openGL support.
    I have done this for beagle bone black and raspberry pi 3 before (qt 5.12 on rpi3).
    I am using gcc linaro 7.5 on kubuntu 18.04 and Raspbian GNU/Linux 11 (bullseye).
    I would appreciate if anyone could help. Thanks.
    configure output seems fine but when compiling I get this error:

    qeglfsbrcmintegration.cpp:74:5: error: ‘EGL_DISPMANX_WINDOW_T’ was not declared in this scope
         EGL_DISPMANX_WINDOW_T *eglWindow = new EGL_DISPMANX_WINDOW_T;
         ^~~~~~~~~~~~~~~~~~~~~
    qeglfsbrcmintegration.cpp:74:5: note: suggested alternative: ‘VC_DISPMANX_ALPHA_T’
         EGL_DISPMANX_WINDOW_T *eglWindow = new EGL_DISPMANX_WINDOW_T;
         ^~~~~~~~~~~~~~~~~~~~~
         VC_DISPMANX_ALPHA_T
    qeglfsbrcmintegration.cpp:74:28: error: ‘eglWindow’ was not declared in this scope
         EGL_DISPMANX_WINDOW_T *eglWindow = new EGL_DISPMANX_WINDOW_T;
                                ^~~~~~~~~
    qeglfsbrcmintegration.cpp:74:28: note: suggested alternative: ‘QWindow’
         EGL_DISPMANX_WINDOW_T *eglWindow = new EGL_DISPMANX_WINDOW_T;
                                ^~~~~~~~~
                                QWindow
    qeglfsbrcmintegration.cpp:74:44: error: ‘EGL_DISPMANX_WINDOW_T’ does not name a type; did you mean ‘VC_DISPMANX_ALPHA_T’?
         EGL_DISPMANX_WINDOW_T *eglWindow = new EGL_DISPMANX_WINDOW_T;
                                                ^~~~~~~~~~~~~~~~~~~~~
                                                VC_DISPMANX_ALPHA_T
    qeglfsbrcmintegration.cpp: In function ‘void destroyDispmanxLayer(EGLNativeWindowType)’:
    qeglfsbrcmintegration.cpp:84:5: error: ‘EGL_DISPMANX_WINDOW_T’ was not declared in this scope
         EGL_DISPMANX_WINDOW_T *eglWindow = static_cast<EGL_DISPMANX_WINDOW_T *>(window);
         ^~~~~~~~~~~~~~~~~~~~~
    qeglfsbrcmintegration.cpp:84:5: note: suggested alternative: ‘VC_DISPMANX_ALPHA_T’
         EGL_DISPMANX_WINDOW_T *eglWindow = static_cast<EGL_DISPMANX_WINDOW_T *>(window);
         ^~~~~~~~~~~~~~~~~~~~~
         VC_DISPMANX_ALPHA_T
    qeglfsbrcmintegration.cpp:84:28: error: ‘eglWindow’ was not declared in this scope
         EGL_DISPMANX_WINDOW_T *eglWindow = static_cast<EGL_DISPMANX_WINDOW_T *>(window);
                                ^~~~~~~~~
    qeglfsbrcmintegration.cpp:84:28: note: suggested alternative: ‘QWindow’
         EGL_DISPMANX_WINDOW_T *eglWindow = static_cast<EGL_DISPMANX_WINDOW_T *>(window);
                                ^~~~~~~~~
                                QWindow
    qeglfsbrcmintegration.cpp:84:52: error: ‘EGL_DISPMANX_WINDOW_T’ does not name a type; did you mean ‘VC_DISPMANX_ALPHA_T’?
         EGL_DISPMANX_WINDOW_T *eglWindow = static_cast<EGL_DISPMANX_WINDOW_T *>(window);
                                                        ^~~~~~~~~~~~~~~~~~~~~
                                                        VC_DISPMANX_ALPHA_T
    qeglfsbrcmintegration.cpp:84:74: error: expected ‘>’ before ‘*’ token
         EGL_DISPMANX_WINDOW_T *eglWindow = static_cast<EGL_DISPMANX_WINDOW_T *>(window);
                                                                              ^
    qeglfsbrcmintegration.cpp:84:74: error: expected ‘(’ before ‘*’ token
    qeglfsbrcmintegration.cpp:84:75: error: expected primary-expression before ‘>’ token
         EGL_DISPMANX_WINDOW_T *eglWindow = static_cast<EGL_DISPMANX_WINDOW_T *>(window);
                                                                               ^
    qeglfsbrcmintegration.cpp:84:84: error: expected ‘)’ before ‘;’ token
         EGL_DISPMANX_WINDOW_T *eglWindow = static_cast<EGL_DISPMANX_WINDOW_T *>(window);
                                                                                        ^
    qeglfsbrcmintegration.cpp:88:12: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
         delete eglWindow;
    
    1 Reply Last reply
    0
    • DehghannnD Offline
      DehghannnD Offline
      Dehghannn
      wrote on last edited by
      #2

      I used xuancong84 's solution on this post: https://forum.qt.io/topic/88588/qtbase-compilation-error-with-device-linux-rasp-pi3-g-qeglfskmsgbmwindow-cpp/9
      and now it's fixed.

      1 Reply Last reply
      1

      • Login

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