Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. rpm install on Centos 7 complains that Qt library isn't found even though Qt is installed
Forum Updated to NodeBB v4.3 + New Features

rpm install on Centos 7 complains that Qt library isn't found even though Qt is installed

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anshah
    wrote on last edited by anshah
    #1

    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
    
    jsulmJ 1 Reply Last reply
    0
    • A anshah

      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
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved