Skip to content

Building Qt 5.x on pandaboard ES with OpenGL ES

Praveen Palanisamy edited this page Jun 24, 2015 · 8 revisions

Qt 4.x used a platform plugin for the OpenGL ES 2


(SGX based) platforms: with the elimination of the display plugin, Qt5 no longer uses or supports blits via pvr2d or wsegl and instead directly uses the egl (window) capabilities exposed by the GL driver. This eliminates immediately a large portion of pvr2d/wsegl version related issures that cropped up in earlier Qt versions.```   
   
   
Qt 5 configuration options n flags : http://qt.developpez.com/doc/5.0-snapshot/configure-options/   
   
   
**Dont forget to shadow build. `make confclean` isnt supported in Qt5. re-configuration will be a problem**
      
   
** Configure options**
`../configure -v -arch arm -prefix /media/rootfs/home/praveen/Documents/Qt5 -release -opensource`      `-opengl es2 -no-xcb -no-pch -make examples -verbose -xplatform linux-pandaboard-g++ -qt-zlib `   `-qt-libpng -qt-libjpeg -qt-sql-sqlite -sysroot /media/rootfs |& tee log_of_configure.txt`       
   
   
**Log of configure**   
`Debug .................. no`     
`C++11 support .......... yes`    
`pkg-config ............. yes`    
`Qt D-Bus module ........ no`    
`Qt Concurrent code ..... yes`    
`Qt GUI module .......... yes`   
`Qt Widgets module ...... yes`   
`JavaScriptCore JIT ..... To be decided by JavaScriptCore`    
`QML debugging .......... yes`   
`PCH support ............ no`    
`iWMMXt support ......... no`    
`NEON support ........... yes`   
`IPv6 ifname support .... yes`   
`getaddrinfo support .... yes`   
`getifaddrs support ..... yes`   
`Accessibility .......... yes`   
`NIS support ............ yes`   
`CUPS support ........... no`    
`Iconv support .......... yes`   
`Glib support ........... yes`   
`GStreamer support ...... no`   
`PulseAudio support ..... no`   
`Large File support ..... yes`   
`GIF support ............ plugin`   
`JPEG support ........... plugin (qt)`   
`PNG support ............ yes (qt)`   
`zlib support ........... yes`   
`Session management ..... auto`    
`libudev support ........ yes`   
`Use system proxies ..... no`   
`OpenGL support ......... yes (OpenGL ES 2.x)`   
`OpenVG support ......... no`   
`XShape support ......... auto`   
`XVideo support ......... auto`   
`XSync support .......... auto`  
`Xinerama support ....... runtime`      
`Xcursor support ........ runtime`      
`Xfixes support ......... runtime`      
`Xrandr support ......... runtime`     
`Xi support ............. runtime`   
`Xi2 support ............ auto`   
`MIT-SHM support ........ auto`   
`FontConfig support ..... yes`  
`XKB Support ............ auto`   
`GTK theme support ...... yes`   
`SQLite support ......... qt (qt)`    
`OpenSSL support ........ no `   
`Alsa support ........... no`   
`libICU support ......... no`   
`PCRE support ........... qt`   
`Xcb support ............ no`  
`Xrender support ........ yes`   
`EGLFS support .......... yes`   
`DirectFB support ....... no`    
`LinuxFB support ........ yes`   
`KMS support ............ no`      
    
** In case GCC reports error related to `qtimerinfo_unix.cpp` when you run make **   
Apply the patch from here :`https://codereview.qt-project.org/#change,48831`   
** In case the `ar` , part of the binutils of you cross compiling toolchain says `sorry - this program has been built without plugin support` **   
Bad sign :/. Time to get a new toolchain which was built with plugin support or If you are building the GNU binutils yourself,use --enable-plugins when you run configure.   



========================================================================
Visit <http://praveenpalanisamy.com> for related projects and wikis on Robotics and Computer Vision.