Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt6 application mysteriously links to Qt5 library
Forum Updated to NodeBB v4.3 + New Features

Qt6 application mysteriously links to Qt5 library

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 152 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.
  • P Offline
    P Offline
    pixtopo
    wrote on last edited by
    #1

    Hello.

    I am developing a desktop application based on Qt6 on Rocky Linux 8.

    The application itself now works fine in my environment.
    But strangely, it links to multiple Qt5 dynamic libraries located in /lib64.

    Granted, previously I was using Qt5, but this application is being built with QtCreator specifying only Qt 6.4.2 as the kit.

    When I check the dependencies with ldd, I see that my own small DLL is linked to libQt5Core etc.

    libQt5OpenGL.so.5 => /lib64/libQt5OpenGL.so.5 (0x00007f7f699a7000)
    libQt5Widgets.so.5 => /lib64/libQt5Widgets.so.5 (0x00007f7f690d1000)
    libQt5Multimedia.so.5 => /lib64/libQt5Multimedia.so.5 (0x00007f7f68dbf000)
    libQt5Gui.so.5 => /lib64/libQt5Gui.so.5 (0x00007f7f685c6000)
    libQt5Network.so.5 => /lib64/libQt5Network.so.5 (0x00007f7f681fa000)
    libQt5Sql.so.5 => /lib64/libQt5Sql.so.5 (0x00007f7f67fab000)
    libQt5Concurrent.so.5 => /lib64/libQt5Concurrent.so.5 (0x00007f7f67da4000)
    libQt5Core.so.5 => /lib64/libQt5Core.so.5 (0x00007f7f67611000)

    However, no matter how many times I review the settings, I am not using Qt5. I've been struggling with this for days now.

    If anyone has any idea why this is happening, could you give me a hint?

    Ryocchin

    JonBJ 1 Reply Last reply
    0
    • P pixtopo

      Hello.

      I am developing a desktop application based on Qt6 on Rocky Linux 8.

      The application itself now works fine in my environment.
      But strangely, it links to multiple Qt5 dynamic libraries located in /lib64.

      Granted, previously I was using Qt5, but this application is being built with QtCreator specifying only Qt 6.4.2 as the kit.

      When I check the dependencies with ldd, I see that my own small DLL is linked to libQt5Core etc.

      libQt5OpenGL.so.5 => /lib64/libQt5OpenGL.so.5 (0x00007f7f699a7000)
      libQt5Widgets.so.5 => /lib64/libQt5Widgets.so.5 (0x00007f7f690d1000)
      libQt5Multimedia.so.5 => /lib64/libQt5Multimedia.so.5 (0x00007f7f68dbf000)
      libQt5Gui.so.5 => /lib64/libQt5Gui.so.5 (0x00007f7f685c6000)
      libQt5Network.so.5 => /lib64/libQt5Network.so.5 (0x00007f7f681fa000)
      libQt5Sql.so.5 => /lib64/libQt5Sql.so.5 (0x00007f7f67fab000)
      libQt5Concurrent.so.5 => /lib64/libQt5Concurrent.so.5 (0x00007f7f67da4000)
      libQt5Core.so.5 => /lib64/libQt5Core.so.5 (0x00007f7f67611000)

      However, no matter how many times I review the settings, I am not using Qt5. I've been struggling with this for days now.

      If anyone has any idea why this is happening, could you give me a hint?

      Ryocchin

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @pixtopo
      Make sure you are not running ldd on an existing, old executable for Qt5 lying around. Check the timestamp on the file you are examining. From Creator show the complete linker command being run,

      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