Hello,

I successfully managed to cross-compile Qt and run my Qt apps on Beaglebone.
Here is my configure:
./configure -prefix ~/armhf-build -opensource -confirm-license -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-omap3-g++ -little-endian -host-little-endian -no-webkit

Here is mkspec:
Qt Code:
  1. #
  2. # qmake configuration for linux-g++
  3. #
  4.  
  5. #Pretty good source of SGX information although it is about the pandaboard
  6. #[url]http://tigraphics.blogspot.com/2011/07/running-qtgles-on-omap4.html[/url]
  7.  
  8. MAKEFILE_GENERATOR = UNIX
  9. TARGET_PLATFORM = unix
  10. TEMPLATE = app
  11. CONFIG += qt warn_on release incremental link_prl gdb_dwarf_index
  12. QT += core gui
  13. QMAKE_INCREMENTAL_STYLE = sublib
  14.  
  15. include(../common/linux.conf)
  16. include(../common/gcc-base-unix.conf)
  17. include(../common/g++-unix.conf)
  18.  
  19. SYSROOT=/media/rootfs
  20. GCC_PREFIX=/usr/bin/arm-linux-gnueabihf
  21.  
  22. # modifications to g++.conf
  23. QMAKE_CC = $${GCC_PREFIX}-gcc --sysroot=$${SYSROOT}
  24. QMAKE_CXX = $${GCC_PREFIX}-g++ --sysroot=$${SYSROOT}
  25. QMAKE_LINK = $${QMAKE_CXX}
  26. QMAKE_LINK_SHLIB = $${QMAKE_CXX}
  27.  
  28. # modifications to linux.conf
  29. QMAKE_AR = $${GCC_PREFIX}-ar cqs
  30. QMAKE_OBJCOPY = $${GCC_PREFIX}-objcopy
  31. QMAKE_STRIP = $${GCC_PREFIX}-strip
  32.  
  33. QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard
  34. QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
  35.  
  36. #QMAKE_LIBDIR_X11 = /usr/lib/arm-linux-gnueabihf
  37. #QMAKE_INCDIR_X11 = /usr/include
  38.  
  39. QMAKE_LIBDIR = $${SYSROOT}/usr/lib/arm-linux-gnueabihf $${SYSROOT}/lib/arm-linux-gnueabihf
  40.  
  41. # Work round PowerVR SGX 1.3 driver bug with glScissor & FBOs:
  42. #DEFINES += QT_GL_NO_SCISSOR_TEST
  43.  
  44. # Work round SGX 1.4 driver bug (text corrupted), modify glyph cache width:
  45. #DEFINES += QT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024
  46.  
  47. #QMAKE_LIBS_OPENGL_ES2 = -lEGL -lGLESv2 -lGLES_CM -lIMGegl -lsrv_um
  48.  
  49. load(qt_config)
To copy to clipboard, switch view to plain text mode 

Hope this helps.

Cheers.
Michal