PDA

View Full Version : Cross Compile Ubuntu 16.04 and BBB running Debian 8.8 w/ Touchscreen



dmccann
22nd June 2017, 19:50
Hello,
I am new to Qt and the BeagleBone and have been trying to get Qt 5.9 to work on the BBB for a while now and keep running into issues (libraries not being found or cannot find platform plugins). I have been able to get Qt 4.8 to work with tslib, but have been trying to get an updated version.

System Information:
Windows 10 running a VM of Ubuntu 16.04.2 LTS
BeagleBone Black running Debian 8.8 with a 4D cape 7” Touchscreen
arm-linux-gnueabihf-gcc (Debian 4.9.2-10) 4.9.2

I started following the tutorial here: https://wiki.qt.io/BeagleBone_Black_Beginners_Guide

The link for step 4 (the cross compile tools) is dead so I have tried:
https://github.com/plexydesk/cross-compile-tools.git
and
wget https://raw.githubusercontent.com/riscv/riscv-poky/master/scripts/sysroot-relativelinks.py
./sysroot-relativelinks.py /mnt/bbb-rootfs
(from https://wiki.qt.io/RaspberryPi2EGLFS )
I’m not sure if either of these are even the correct tools needed anymore.

I have tried the toolchains:
gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf
gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf

After reading this post here (https://forum.qt.io/topic/75565/i-need-a-qmake-for-the-beaglebone-black/13) I even tried:
gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf
sysroot-glibc-linaro-2.23-2016.11-arm-linux-gnueabihf

I downloaded all of Qt 5.9 including sources using the online installer: qt-unified-linux-x64-3.0.0-online.run

The configure I’m using is:
~/Qt/5.9/Src/qtbase/configure -release -shared -device linux-beagleboard-g++ -device-option CROSS_COMPILE=~/opt/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/bbb-rootfs -opensource -confirm-license -make libs -prefix /usr/local/Qt-5.9 -extprefix /mnt/bbb-rootfs/usr/local/Qt-5.9 -hostprefix /usr/local/Qt-5.9 -nomake examples -qt-zlib -qt-libpng -no-opengl -no-icu -v

I have also tried with the flag -no-eglfs or getting rid of the -no-icu and either way I still get different types of errors at either build or run depending on which arguments I used in configure. The most recent error using the configure above gave me:
stdin: is not a tty
This application failed to start because it could not find or load the Qt platform plugin "eglfs"
in "".
Available platform plugins are: linuxfb, minimal, offscreen, vnc.
Reinstalling the application may fix this problem.
Process killed by signal

What am I missing to be able to get Qt to work on the BBB w/ the touchscreen?
I appreciate any help!

tpillera
14th August 2018, 05:25
Hi, did you ever get this working and if so how? I am in the same boat, I used the ti-dev kit and got a executable that runs on the bbb but cannot seem to figure out how to get rid of the pc mouse and make the touch functionality work. I've been looking into tslib but I think that it is needed to be declared in the QT build, which is another whole set if issues. Any help would be appreciated, thanks!