Error configuring TSLIB to ON with Qt 6.4.1
-
Hello,
Upon configuring Qt 6.4.1 for Embedded linux and tried to run my application on the device, there is a problem that the screen is flipped and found that it is using evdev but in our case we use TSLIB since using evdev had some issues with the touchscreen on the device (flipped and already set the parameter to 180 but still some touch inputs are incorrect, with Qt 5.15.2 with TSLIB the touch area in our UI works fine). I already set the environment to use TSLIB (i.e export QT_QPA_FB_TSLIB=1, etc) but it still uses evdevtouch.
I checked the installed Qt 6.4.1 and found that the tslib feature is turned off with:
Features used by QPA backends:
evdev .................................. yes
libinput ............................... no
HiRes wheel support in libinput ........ no
INTEGRITY HID .......................... no
mtdev .................................. no
tslib .................................. no
xkbcommon .............................. yesI tried configuring again Qt 6.4.1 (manuallly) by turning on the tslib but I got an error with the
CMake Error at qtbase/cmake/QtBuildInformation.cmake:490 (message): Feature "tslib": Forcing to "ON" breaks its condition: Tslib_FOUND AND NOT INTEGRITY Condition values dump: Tslib_FOUND = "0" INTEGRITY = "0"
I am not really sure what this INTEGRITY is. My configure command looks like this:
configure -opensource -confirm-license -debug-and-release -make libs -no-opengl -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtquick3dphysics -skip qtcharts -skip qtpositioning -skip qtremoteobjects -skip qtspeech -skip qthttpserver -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphical-effects -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtpurchasing -skip qtscript -skip qttools -skip qtscxml -skip qtsensors -skip qtwayland -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -skip qtlottie -skip qtmqtt -skip qtopcua -skip qtquicktimeline -skip qtquick3d -skip qttranslations -skip qtvirtualkeyboard -plugin tslib -platform win32-msvc -xplatform arm-mtic-linux-gnueabi-g++ -device-option CROSS_COMPILE=c:/iris/2.2/sysroots/x86_64-irissdk-mingw32/usr/bin/arm-mtic-linux-gnueabi/arm-mtic-linux-gnueabi- -sysroot c:/iris/2.2/cortexa9thf-neon-fp16-mtic-linux-gnueabi -system-libpng -system-libjpeg -linuxfb -no-kms -nomake examples -nomake tests -no-xcb TEST_linuxfb="ON" -qt-host-path C:/Qt/6.4.1 -extprefix C:/Qt/6.4_Iris_DebugAndRelease2 -- -DCMAKE_TOOLCHAIN_FILE=D:\qt-6.4.1_tslib\qtbase\cmake\toolchain.cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DENABLE_PRECOMPILED_HEADERS=OFF -DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON -DINPUT_tslib=ON
But this will lead to the error: Feature "tslib": Forcing to "ON" breaks its condition:
Using -tslib or -DINPUT_tslib=ON generates the same error with the Tslib_FOUND AND NOT INTEGRITYRegards,
olredi -
Hello,
Upon configuring Qt 6.4.1 for Embedded linux and tried to run my application on the device, there is a problem that the screen is flipped and found that it is using evdev but in our case we use TSLIB since using evdev had some issues with the touchscreen on the device (flipped and already set the parameter to 180 but still some touch inputs are incorrect, with Qt 5.15.2 with TSLIB the touch area in our UI works fine). I already set the environment to use TSLIB (i.e export QT_QPA_FB_TSLIB=1, etc) but it still uses evdevtouch.
I checked the installed Qt 6.4.1 and found that the tslib feature is turned off with:
Features used by QPA backends:
evdev .................................. yes
libinput ............................... no
HiRes wheel support in libinput ........ no
INTEGRITY HID .......................... no
mtdev .................................. no
tslib .................................. no
xkbcommon .............................. yesI tried configuring again Qt 6.4.1 (manuallly) by turning on the tslib but I got an error with the
CMake Error at qtbase/cmake/QtBuildInformation.cmake:490 (message): Feature "tslib": Forcing to "ON" breaks its condition: Tslib_FOUND AND NOT INTEGRITY Condition values dump: Tslib_FOUND = "0" INTEGRITY = "0"
I am not really sure what this INTEGRITY is. My configure command looks like this:
configure -opensource -confirm-license -debug-and-release -make libs -no-opengl -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtquick3dphysics -skip qtcharts -skip qtpositioning -skip qtremoteobjects -skip qtspeech -skip qthttpserver -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphical-effects -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtpurchasing -skip qtscript -skip qttools -skip qtscxml -skip qtsensors -skip qtwayland -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -skip qtlottie -skip qtmqtt -skip qtopcua -skip qtquicktimeline -skip qtquick3d -skip qttranslations -skip qtvirtualkeyboard -plugin tslib -platform win32-msvc -xplatform arm-mtic-linux-gnueabi-g++ -device-option CROSS_COMPILE=c:/iris/2.2/sysroots/x86_64-irissdk-mingw32/usr/bin/arm-mtic-linux-gnueabi/arm-mtic-linux-gnueabi- -sysroot c:/iris/2.2/cortexa9thf-neon-fp16-mtic-linux-gnueabi -system-libpng -system-libjpeg -linuxfb -no-kms -nomake examples -nomake tests -no-xcb TEST_linuxfb="ON" -qt-host-path C:/Qt/6.4.1 -extprefix C:/Qt/6.4_Iris_DebugAndRelease2 -- -DCMAKE_TOOLCHAIN_FILE=D:\qt-6.4.1_tslib\qtbase\cmake\toolchain.cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DENABLE_PRECOMPILED_HEADERS=OFF -DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON -DINPUT_tslib=ON
But this will lead to the error: Feature "tslib": Forcing to "ON" breaks its condition:
Using -tslib or -DINPUT_tslib=ON generates the same error with the Tslib_FOUND AND NOT INTEGRITYRegards,
olrediI was able to fix the touchscreen issue with evdev by sending:
ts_uinput -d -v
This will generate new event (event2 for me)
and modifying the evdev touchscreen parameter as follow:
QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event2:rotate=0
Configuring again the Qt 6.4.1 to enable tslib is not anymore necessary.