Project

General

Profile

Bug #2063

Fails to build with Qt5

Added by yurivict 9 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
10/23/2018
Due date:
% Done:

0%

Estimated time:
Reported in:
master

Description

This line QT5_USE_MODULES (leechcraft-util-qml Declarative Network) contains Declarative. Declarative has been discontinues in Qt5.

History

#1

Updated by yurivict 9 months ago

Additionally, with USE_QT5=ON, it still looks for qmake-qt4:

-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/local/bin/qmake-qt4 (found version "4.8.7")
CMake Error at plugins/summary/CMakeLists.txt:15 (find_package):
By not providing "FindLeechCraft.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"LeechCraft", but CMake did not find one.

Could not find a package configuration file provided by "LeechCraft" with
any of the following names:
LeechCraftConfig.cmake
leechcraft-config.cmake
Add the installation prefix of "LeechCraft" to CMAKE_PREFIX_PATH or set
"LeechCraft_DIR" to a directory containing one of the above files. If
"LeechCraft" provides a separate development package or SDK, be sure it has
been installed.
#2

Updated by 0xd34df00d 9 months ago

Which version is that?

HEAD only supports Qt5 for quite some time now. I believe the dependency on QtDeclarative has also been dropped, but I'll double-check.

#3

Updated by yurivict 9 months ago

0.6.70

I am trying to update the FreeBSD port. I can't use the head, it has to be in a tarball.

#4

Updated by 0xd34df00d 9 months ago

That's >4 years old now, IIRC it doesn't support Qt5 at all.

Would a weekly snapshot work? Say, https://dist.leechcraft.org/LeechCraft/0.6.75/leechcraft-0.6.70-12062-gcc93e7b776.tar.xz

#5

Updated by 0xd34df00d 9 months ago

BTW the FreeBSD port might be really outdated. In any event, the Gentoo ebuilds might help to figure out the correct dependencies and their versions: https://github.com/gentoo/gentoo/tree/master/app-leechcraft

#6

Updated by yurivict 9 months ago

I'm trying to update the port.

#7

Updated by yurivict 9 months ago

It's not really outdated, it is at the latest release. The release hasn't been made in a while.

Anyway, I'm trying to update it.

#8

Updated by yurivict 9 months ago

It requires a specific version of Qt:

CMake Warning at /usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:48 (find_package):
  Could not find a configuration file for package "Qt5Network" that exactly
  matches requested version "5.11.1".

  The following configuration files were considered but not accepted:

    /usr/local/lib/cmake/Qt5Network/Qt5NetworkConfig.cmake, version: 5.11.2

Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt5WebKitWidgets/Qt5WebKitWidgetsConfig.cmake:73 (find_dependency)
  /usr/local/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
  CMakeLists.txt:141 (find_package)
  util/models/CMakeLists.txt:22 (FindQtLibs)

How do I make it to accept any version?

#9

Updated by 0xd34df00d 9 months ago

Try rebuilding qtwebkit. Looks like it was built with Qt 5.11.1, while Qt has later been upgraded to 5.11.2.

#10

Updated by yurivict 9 months ago

There is a quirk in FreeBSD ports: QtWebkit has some other version because of some issues. It normally works fine when used with Qt-5.11.2.

How to make leechcraft tolerant to the QtWebkit version? It is normally the REQUIRED keyword, but in this case I don't see it.

#11

Updated by yurivict 9 months ago

Correction: *EXACT keyword.

#12

Updated by 0xd34df00d 9 months ago

There is a quirk in FreeBSD ports: QtWebkit has some other version because of some issues.

That's just the same situation as in Gentoo (and some other distros) - looks like it's the new normal as QtWebkit has been long dropped by upstream Qt.

How to make leechcraft tolerant to the QtWebkit version?

Not sure how it works with other cmake projects, but in this particular case it's the qtwebkit itself that's complaining. Indeed, the cmake call stack ends up in /usr/local/lib/cmake/Qt5WebKitWidgets/Qt5WebKitWidgetsConfig.cmake:73. I just double-checked mine, and indeed looks like it only depends on the major-minor pair, not on the major-minor-patch triple (in my particular case, that's just 5.11). Can you paste your /usr/local/lib/cmake/Qt5WebKitWidgets/Qt5WebKitWidgetsConfig.cmake and, perhaps, something like /usr/local/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake?

#13

Updated by 0xd34df00d 6 months ago

Do you think anything else could be done here, or shall I close this ticket?

Also available in: Atom PDF