6. At the top of the qmake.conf, there is a configure line. Copy and paste the configure line into a text file located in your build build directory. Edit the configure line to find your toolchain and filesystem. Also make sure to include the options -no-pch, -no-opengl, -opengl es2, Here is an example of a configure line.
7. Make the textfile that has the configure line and executable and run it. When the configure summary is shown make sure the Qt5 has openGL ES 2.0 support. Do build $make $make install
When Qt5 has finished building, Qt5 will be installed in two places: 1. <location of rootfs>/<installdir> 2. <HOST Machine>/<install dir>
This is good because now all the libraries and binaries for Qt5 are installed on the host and the target filesystem. Therefore, the target already has all the libraries and binaries needed to run Qt5.
8. Also need to build qtjsbackend and qtdeclarative.
$ cd <location to Qt5 git> $ cd qtjsbackend $ ../qtbase/bin/qmake -r $ make && make install
$ $ cd <location to Qt5 git> $ cd qtdeclarative $ ../qtbase/bin/qmake -r $ make && make install
9. Run Qt apps on target - Boot the target either with NFS or SD Image - Ensure that folder <installdir> is copied on target file system at “/usr/local”. - Launch application using $ cd /usr/local/qt5/examples/opengl/hellogl_es2 $ ./hellogl_es2 -platform eglfs