Cross compiling Qt Everywhere Raspberry Pi

  • I want to cross compiling qt application for embeded raspberry pi, my system is

    Host: Manjaro 17.10 64 bit
    Pi: Raspberry pi 2, Raspbian Strecth
    Qt version: 5.9

    I have follow instruction from, during the process there not any single error, but when i try to run example program (qtbase/qopenglwidget) i got error segmentation fault.

    Then i try to debug qopenglwidget, i got message Thread 1 qopenglwidget received signal SIGSEGV, Segmentation fault, 0x75... in platform_get_handle () from /opt/vc/lib/

    Then i check folder /opt/vc/lib/ but in the folder nothing event tough i was retried twice follow the step with care.

    My question is, how to solve the the segmentation fault?


  • Did you try the this

    For the pi2 configuration the change should be something like this:

    +QMAKE_LIBS_EGL = -lbrcmEGL -lbrcmGLESv2
    +QMAKE_LIBS_OPENGL_ES2 = -lbrcmEGL -lbrcmGLESv2
    +QMAKE_LIBS_OPENVG = -lbrcmEGL -lbrcmOpenVG -lbrcmGLESv2