I’ve been following this guide. However, I am attempting to use Qt 5.3 instead of 4.8.6 as in the guide. I’m using this Qt source for 5.3.1.
The differences start at the mkdir mkspecs/qws/linux-am335x-g++ line of the guide. In the Qt 5.3 source, there is already a directory: qt-everywhere-opensource-src-5.3.1/qtbase/mkspecs/devices/linux-beagleboard-g++ which already has a premade qmake.conf file (the guide explains that this directory and file don’t exist in Qt 4.8).
I would like to use the touchscreen and therefore I followed the guide’s instructions for building tslib. It says to add these two lines to the qmake file to enable the touchscreen support:
QMAKE_INCDIR += /home//qt-bbb/downloads/tslib/src
QMAKE_LIBDIR += /home//qt-bbb/tslib/lib
( in my case is just “seth”)
The premade file does not include these lines. It’s easy enough to add, but one of my questions is: Do I need to still do this for Qt 5.3 or is that somehow included already? I’d rather ask for help here first than to do it wrong and have to re-do it (I remember this process causing me headaches when I had to do it before on the BBW). I did try running the configure command with the -qt-mouse-tslib switch, but it complained that it wasn’t a valid switch so I would guess I no longer need to do this?
My last question (for now) is regarding the configure command. I’ve tried the following:
./configure -v -opensource -confirm-license -no-pch -no-opengl -make libs -device linux-beagleboard-g++ -xplatform linux-arm-gnueabihf-g++ -no-accessibility -qt-zlib -qt-libpng -qt-libjpeg -device-option CROSS_COMPILE=/home/seth/qt-bbb/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/bin/arm-linux-gnueabihf- -prefix /opt/qt5
As this is similar to this post. However, upon running I get:
The specified system/compiler is not supported:
/home/seth/qt-bbb/qt-everywhere-opensource-src-5.3.1/qtbase/mkspecs/linux-arm-gnueabihf-g++
Sometimes the error gives enough info for me to figure out myself but I don’t know about this one. I never gave it /home/seth/qt-bbb/qt-everywhere… in the configure line so I don’t know where that is coming from. In fact, I thought the CROSS_COMPILE option I gave it would be the one used, but apparently not?
Note: I am using Ubuntu 14.04 for doing this. I got the toolchain from here where **gcc-linaro-arm-linux-gnueabihf-**4.8 is the latest.
If you think I could get more help by posting these questions on the qt-project.org forums I will do so. Thanks for any guidance!
-Seth