Bug 1698243

Summary: ktouch does not start: qrc:/qml/main.qml: File was compiled ahead of time with an incompatible version of Qt
Product: [Fedora] Fedora Reporter: sedrubal <fedora>
Component: ktouchAssignee: Rex Dieter <rdieter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 30CC: erik, frank.autenrieth, jreznik, kde-sig, martin, olibre, rajeeshknambiar, rdieter, than
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ktouch-19.08.3-1.fc30 ktouch-19.08.3-1.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-12 01:14:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sedrubal 2019-04-09 21:57:16 UTC
Description of problem:

When I try to start ktouch (using the terminal or the desktop application) an error dialogue opens with the message:
qrc:/qml/main.qml: File was compiled ahead of time with an incompatible version of Qt and the original file cannot be found. Please recompile

Version-Release number of selected component (if applicable):
ktouch-18.12.2-1.fc30.x86_64

How reproducible:
always

Steps to Reproduce:
1. open konsole
2. type ktouch

Actual results:
The error message will be shown.

Expected results:
The application should start.

Additional info:
Reinstalling did not fix the issue.

Comment 1 Rajeesh 2019-08-26 11:41:07 UTC
Noticed the same issue in uptodate F30 system with ktoch-18.12.3-1.fc30.x86_64. Tried to `strace` but couldn't identify the root cause. Any pointers?

Comment 2 Rajeesh 2019-08-26 11:43:51 UTC
Additionally, found a launchpad bug report with some analysis already done --- https://bugs.launchpad.net/ubuntu/+source/ktouch/+bug/1827767. Seems like 19.04 version is required to fix this?

Comment 3 Rex Dieter 2019-08-27 15:47:00 UTC
No upgrade required (but that will come sooner or later), just need a build with QtQuickCompiler feature disabled.  I'll get to work on doing that.

Comment 4 Rajeesh 2019-08-28 08:56:41 UTC
That'd be cool. Thanks Rex!

Comment 5 Erik del Toro Streb 2019-09-10 15:40:53 UTC
Just wanted to confirm that bug. Freshly clean installed Fedora 30, ktouch version as mentioned by Rajeesh is 18.12.3-1.

Other KDE apps like Kile and Okular do work.

Comment 6 MartinG 2019-10-20 16:20:07 UTC
*** Bug 1763403 has been marked as a duplicate of this bug. ***

Comment 7 MartinG 2019-10-30 08:42:30 UTC
This is still a problem in Fedora 31.

ktouch-19.04.3-2.fc31.x86_64

$ ktouch 
qrc:/qml/main.qml: File was compiled ahead of time with an incompatible version of Qt and the original file cannot be found. Please recompile

Comment 8 MartinG 2019-11-23 15:53:17 UTC
I managed to rebuild from source rpm today, not sure why but rpmbuild didn't create a executable for me, but manually doing 
cd BUILD/ktouch-18.12.3/
mkdir build
cd build
cmake ..
make
src/ktouch

worked for me. Obviously, I'm no build expert here, but I'd guess the fix is a simple matter of just recompiling the thing?

Comment 9 Rex Dieter 2019-12-22 23:26:41 UTC
*** Bug 1785917 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2019-12-23 20:20:44 UTC
FEDORA-2019-94527af5e8 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-94527af5e8

Comment 11 Fedora Update System 2019-12-23 20:21:23 UTC
FEDORA-2019-66aae56ada has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-66aae56ada

Comment 12 Erik del Toro Streb 2020-01-02 15:14:15 UTC
I tried to install on Fedora 30 with

    dnf update --enablerepo=updates-testing ktouch

but it didn’t install anything, just said 

    Fedora 30 - x86_64 - Test Updates                                    2.3 MB/s | 7.2 MB     00:03    
    Letzte Prüfung auf abgelaufene Metadaten: vor 0:00:04 am Do 02 Jan 2020 14:52:29 WET.
    Abhängigkeiten sind aufgelöst.
    Nichts zu tun.
    Fertig.

Then tried with 

    dnf update --releasever=31 ktouch

which resulted in two new packages 

    kqtquickcharts             x86_64             19.04.3-2.fc31               fedora              80 k
    ktouch                     x86_64             19.04.3-2.fc31               fedora             4.6 M

When starting the same bug ''compiled ahead of time'' ocurred.

Comment 13 Erik del Toro Streb 2020-01-02 16:19:42 UTC
I now tried to compile it manuelly from source. First did

    git clone https://anongit.kde.org/ktouch

then went into the ktouch directory I just cloned and started

    ./build-install-run

which showed me that I needed these extra packages, which I then installed

    dnf install extra-cmake-modules qt5-devel kf5-kdoctools-devel qt5-qtquickcontrols2-devel qt5-qtquickcontrols2-devel kf5-kcompletion-devel kf5-kconfig-devel kf5-ki18n-devel kf5-kdeclarative-devel kf5-kwindowsystem-devel kf5-kwidgetsaddons-devel kf5-ktextwidgets-devel kf5-kcmutils-devel kf5-kitemviews-devel kf5-kxmlgui-devel kf5-kiconthemes-devel

And for correct keyboard layout detection (not necessary):

    dnf install qt5-qtx11extras-devel libX11-devel libxkbcommon-devel libxkbcommon-x11-devel libxkbfile-devel libxcb-devel
Again the building, installing and running with 

    ./build-install-run

which resulted in the following new bug: 

    Running KTouch ... 
    QML debugging is enabled. Only use this in a safe environment.
    qrc:/ktouch/qml/main.qml:129:9: Type HomeScreen unavailable
    qrc:/ktouch/qml/homescreen/HomeScreen.qml:102:25: Type ProfileComboBox unavailable
    qrc:/ktouch/qml/homescreen/ProfileComboBox.qml:98:23: Type ProfileSelector unavailable
    qrc:/ktouch/qml/homescreen/ProfileSelector.qml:101:13: Type ProfileDetailsItem unavailable
    qrc:/ktouch/qml/homescreen/ProfileDetailsItem.qml:22:1: module "org.kde.charts" is not installed

Comment 14 Fedora Update System 2020-01-03 14:34:36 UTC
FEDORA-2019-94527af5e8 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-94527af5e8

Comment 15 Rex Dieter 2020-01-03 14:48:25 UTC
The fixed builds are not available in updates-testing yet, they are currently in a "pending" state unforuntately.  Appears there have been some infrastructure issues preventing updates pushes since before the holidays.  Hopefully this will get resolved soon.

Comment 16 Fedora Update System 2020-01-03 21:32:19 UTC
ktouch-19.08.3-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-66aae56ada

Comment 17 Fedora Update System 2020-01-03 23:08:43 UTC
FEDORA-2019-66aae56ada has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-66aae56ada

Comment 18 Fedora Update System 2020-01-04 21:17:42 UTC
kqtquickcharts-19.08.3-1.fc30, ktouch-19.08.3-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-66aae56ada

Comment 19 Fedora Update System 2020-01-04 22:23:09 UTC
kqtquickcharts-19.08.3-1.fc31, ktouch-19.08.3-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-94527af5e8

Comment 20 Fedora Update System 2020-01-12 01:14:50 UTC
kqtquickcharts-19.08.3-1.fc30, ktouch-19.08.3-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2020-01-12 01:41:27 UTC
kqtquickcharts-19.08.3-1.fc31, ktouch-19.08.3-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.