Bug 373960 - kile updates to 2.96 compile well in KF5-Qt5 but results in an unusable app.
Summary: kile updates to 2.96 compile well in KF5-Qt5 but results in an unusable app.
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: user interface (other bugs)
Version First Reported In: unspecified
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-20 14:35 UTC by Amaro
Modified: 2016-12-21 14:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amaro 2016-12-20 14:35:20 UTC
I have a version  of kile-livepreview that has worked up to the latest Fedora 25.
~/kile-livepreview/install/bin/kile --version
Qt: 4.8.7
KDE Development Platform: 4.14.26
Kile: 2.9.60

However, if I try to update it with the git://anongit.kde.org/kile -b master version or try a completely new installation, I get a totally unusable app that starts up trying to make a System Check test but immediately gives out an error window 'Invalid URL', and goes nowhere until I press the Cancel button. Then going to the Configure Kile menu button results in a hung window that has to be killed from a shell.

At compilation time the only packages that are not found are Qt5TextToSpeech and QMobipocketConfig. Compilation ends with no errors.

I had to erase kdelibs-devel with kde4 includes that conflited with KF5/KTextEditor names. 

The okular part of the package also compiles without errors, but also cannot be used. Trying to open a file with it results in 'File not found' error.

I can produce backtrace logs, I wasn't able to read meaning info from it though.
Comment 1 Amaro 2016-12-20 16:16:42 UTC
Linux (x86_64) release 4.8.13-300.fc25.x86_64
Comment 2 Michel Ludwig 2016-12-20 20:03:35 UTC
Please be careful not to use KDE 4 libs for Kile 2.9.60.

Can you try out the instructions from:

http://kile.sourceforge.net/wiki/index.php/Building_From_Master_Branch

and see whether they work for you?
Comment 3 Amaro 2016-12-21 01:49:54 UTC
Michael

Thanks for that wiki link, the instructions there worked fine. After updating everything and recompiling okular and kile, AND created the new run.sh environment settings, I was able to run kile with no errors after restoring the default tools. I now get
./run.sh -v
Version 2.9.60

Using:
KDE Frameworks 5.27.0
Qt 5.7.1 (built against 5.7.0)
The xcb windowing system

Much appreciated.
Comment 4 Amaro 2016-12-21 01:51:25 UTC
Sorry, Michel not Michael!
Comment 5 Amaro 2016-12-21 14:29:34 UTC
One minor edit. The Help->TeX Documentation->LaTeX menu (and the other help menus on LaTeX Commands, Subject and Env) gave out an error that the .html help file was not being found. Looking at the error message it is visible that the menu is pointing to 
$HOME/kile-master/install/share/kile/helplatex2e-texlive.html 
instead of 
$HOME/kile-master/install/share/kile/help/latex2e-texlive.html 
as it should. 
Fix: edit the source file kilehelp.cpp and change the line

m_helpDir = QStandardPaths::locate(QStandardPaths::DataLocation, "help", QStandardPaths::LocateDirectory);

to

m_helpDir = QStandardPaths::locate(QStandardPaths::DataLocation, "help/", QStandardPaths::LocateDirectory);

This solved the problem after recompiling kile.