I'm very new to cross compilation and ARM boards. Currently I have basic idea on cross compilation and binary execution on ARM boards. I want to build a QT application to run on an ARM based board, which supports a touch screen. The board is already configured with QT 5 and tslib. But to cross compile applications with qmake, I need a cross compiled QT with tslib in my ubuntu PC. I was able to build such one without tslib and successfully displayed an application in my board. But when I try to configure qt with -tslib, configuration process results in termination with these messages:
Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
WARNING: Cross compiling without sysroot. Disabling pkg-config
ERROR: Feature 'tslib' was enabled, but the pre-condition 'libs.tslib' failed.
Check config.log for details.
Here's my qtbase/mkspecs/linux-arm-gnueabi-g++ content:
MAKEFILE_GENERATOR = UNIX
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib
include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)
QMAKE_INCDIR += /home/tslib/include/
QMAKE_LIBDIR += /home/tslib/lib/
# modifications to g++.conf
QMAKE_CC = arm-none-linux-gnueabi-gcc
QMAKE_CXX = arm-none-linux-gnueabi-g++
QMAKE_LINK = arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++
# modifications to linux.conf
QMAKE_AR = arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy
QMAKE_NM = arm-none-linux-gnueabi-nm -P
QMAKE_STRIP = arm-none-linux-gnueabi-strip
load(qt_config)
Here's config. command:
./configure -opensource -confirm-license -xplatform linux-arm-gnueabi-g++ -prefix /usr/local/qt5.8embd -nomake examples -no-opengl -no-iconv -silent -qpa linuxfb -no-gtk -tslib
Truth is I'm drawning in wrong methods available via google. I would like someone to suggest neat working steps to cross compile QT 5.8.0 with -tslib enabled.
Foot note: Can I build QT application in an indirect way? I have all required .so files in my target board. I could copy them into my PC and could I cross compile a Qt project only using my toolchain?