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.9I have follow instruction from https://wiki.qt.io/RaspberryPi2EGLFS, 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/libEGL.so.
Then i check folder /opt/vc/lib/ but in the folder nothing libEGL.so. event tough i was retried twice follow the step with care.
My question is, how to solve the the segmentation fault?
Thank's.
-
Did you try the this https://bugreports.qt.io/browse/QTBUG-62216
For the pi2 configuration the change should be something like this:
-QMAKE_LIBS_EGL = -lEGL -lGLESv2
-QMAKE_LIBS_OPENVG = -lEGL -lOpenVG -lGLESv2
+QMAKE_LIBS_EGL = -lbrcmEGL -lbrcmGLESv2
+QMAKE_LIBS_OPENGL_ES2 = -lbrcmEGL -lbrcmGLESv2
+QMAKE_LIBS_OPENVG = -lbrcmEGL -lbrcmOpenVG -lbrcmGLESv2