I'm looking to do a cross-compile, not a native compile. So the second link was the one I was looking for, but it doesn't seem to work correctly. The instructions from the link say the configure command should be:
@./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release -make libs -prefix /usr/local/qt5pi@
I'm compiling for the TI AM335x EVM instead, so the closest target is the begleboard, and the tool chain is provided by the TI SDK, so instead my configure command should be:
@./configure -opengl es2 -device linux-beagleboard-g++ -device-option CROSS_COMPILE=~/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf- -sysroot ~/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release -make libs -prefix /opt/qt5-am335x@
However that comes back with errors WRT the architecture and OpenGL functionality:
@Note: PKG_CONFIG_SYSROOT_DIR automatically set to /home/mike/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi
Could not determine the target architecture!
Turn on verbose messaging (-v) to see the final report.
The OpenGL ES 2.0 functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
/home/mike/qt-everywhere-opensource-src-5.2.0/qtbase/mkspecs/devices/linux-beagleboard-g++.@
Hard to tell why exactly it's having issues, I feel like if the tutorial described what/why it picked the configuration options it did, it would have helped.