I've been following this guide 
<http://embedded.von-kannen.net/2014/05/21/qt-4-8-6-on-beaglebone-black/>. 
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 
<http://download.qt-project.org/official_releases/qt/5.3/5.3.1/single/qt-everywhere-opensource-src-5.3.1.tar.gz>.
 


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/<user>/qt-bbb/downloads/tslib/src*


*QMAKE_LIBDIR += /home/<user>/qt-bbb/tslib/lib*(<user> 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 
<https://qt-project.org/forums/viewthread/45054>. 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 
<http://releases.linaro.org/14.04/components/toolchain/binaries> 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

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to