Self-built qBittorrent cannot find proper QT version. #19642
Replies: 5 comments 23 replies
-
you have 2 options to solve this:
as alternative solution, you can just copy built qBittorrent executable instead of (or after) doing what happens and whyby default, Qt adds libQt6Widgets.so.6 => /home/nick/Qt/6.5.2/gcc_64/lib/libQt6Widgets.so.6 (0x00007faf07600000)
libQt6Gui.so.6 => /home/nick/Qt/6.5.2/gcc_64/lib/libQt6Gui.so.6 (0x00007faf06c00000)
libQt6Core.so.6 => /home/nick/Qt/6.5.2/gcc_64/lib/libQt6Core.so.6 (0x00007faf06400000) but CMake generates rule which removes this hardcoded path (so-called file(RPATH_CHANGE
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/font_preview"
OLD_RPATH "/home/nick/Qt/6.5.2/gcc_64/lib:"
NEW_RPATH "") as result, installed executable doesn't contain hardcoded paths to your custom Qt, and it must be found in libQt6Widgets.so.6 => not found
libQt6Gui.so.6 => not found
libQt6Core.so.6 => not found manually built Qt is installed in custom folder which is not considered as path for searching required libraries on runtime, so it couldn't be found. by the way, for the same reason (custom install folder) you have to specify you can try to run qBittorrent just by setting LD_LIBRARY_PATH=/usr/local/Qt-6.5.2/lib qbittorrent running LD_LIBRARY_PATH=/usr/local/Qt-6.5.2/lib ldd /usr/local/bin/qbittorrent specifying |
Beta Was this translation helpful? Give feedback.
-
After creating
I got past the previous error, but now get a new one:
|
Beta Was this translation helpful? Give feedback.
-
I did not have that file. After rebuilding QT from scratch with the directions supplied in that thread
I still do not see libqxcb anywhere in my installed QT files. The only xcb-related files I see in /usr/local/Qt-6.5.2 are After having rebuilt qt with the instructions in that thread, I built qBit again according to the
|
Beta Was this translation helpful? Give feedback.
-
very draft version of guide (barely the commands history + some comments) how to build qBittorrent and all its dependencies from sources, hope that will help. tested on Linux Mint 21.2 running in VirtualBox. |
Beta Was this translation helpful? Give feedback.
-
full manual based on previous draft (set of commands) is published. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/qbittorrent/qBittorrent/discussions/new?category=q-a
I am on Mint 21.2, which doesn't have qt6.5 available through any repository at the moment, so I built and installed qt6.5.2 from source.
Despite this, when building (using the steps outlined under
2a) Compile and install qBittorrent with Qt graphical interface
in the INSTALL file), cmake does not find the proper qt version.After setting the cmake environment variable with
export CMAKE_PREFIX_PATH=/usr/local/Qt-6.5.2/
, it built and installed properly. However, after installing, it still cannot find the proper qt version when I run the program.What do I need to do so that qBittorent can find the proper qt version?
Beta Was this translation helpful? Give feedback.
All reactions