Qt6 application mysteriously links to Qt5 library
-
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