Unsolved rpm install on Centos 7 complains that Qt library isn't found even though Qt is installed
-
I have Qt5.8 installed on Centos 7 and I'm trying to install an RPM file for an application that uses Qt 5.8. When I execute the following I get an error message that a few Qt libraries and libXslt-devel library file is not found:
$ rpm -i Application.rpm error: Failed dependencies: libQt5WebEngineCore.so.5()(64bit) is needed by Application.x86_64 libQt5WebEngineCore.so.5(Qt_5)(64bit) is needed by Application.x86_64 libQt5WebEngineWidgets.so.5()(64bit) is needed by Application.x86_64 libQt5WebEngineWidgets.so.5(Qt_5)(64bit) is needed by Application.x86_64 libXslt-devel is needed by Application.x86_64
However, when I extract the application executable and do an ldd it looks like all the needed libraries are there and it runs fine. It just complains when I try to install the RPM.
Removed non-relevant libraries for brevity
$ ldd ./Application libQt5WebEngineCore.so.5 => /opt/Qt5.8.0/5.8/gcc_64/lib/libQt5WebEngineCore.so.5 (0x00007f9e27573000) libQt5WebEngineWidgets.so.5 => /opt/Qt5.8.0/5.8/gcc_64/lib/libQt5WebEngineWidgets.so.5 (0x00007f9e27337000) libxslt.so.1 => /lib64/libxslt.so.1 (0x00007f9e1fd63000)
Since this system contains a manual install of Qt 5.8 I can't put Qt in the BuildRequire or Require sections of my SPEC file. Also in my SPEC file the xslt library has a capital X:
BuildRequire: libXslt-devel
-
@anshah I think this is related to https://forum.qt.io/topic/104992/qtwebengine-not-available-through-centos-7-yum-and-ubuntu-14-04-apt-get
I guess this RPM is not from official CentOS 7 repositories, right?