Getting error finding Qt versions and kits after changing the Qt location.
-
I'm working with Qt version 5.15.2. I recently changed the Qt installation directory, but Qt Creator still tries to use the old location when linking Qt.
I have already updated all the paths and environment variables to point to the new directory. However, when I go to Qt Versions in Qt Creator, it still fetches the old paths and shows errors related to finding kits and versions.I have also deleted all old configuration files and caches, but that didn’t help.
Can someone please help me fix this issue? -
I'm working with Qt version 5.15.2. I recently changed the Qt installation directory, but Qt Creator still tries to use the old location when linking Qt.
I have already updated all the paths and environment variables to point to the new directory. However, when I go to Qt Versions in Qt Creator, it still fetches the old paths and shows errors related to finding kits and versions.I have also deleted all old configuration files and caches, but that didn’t help.
Can someone please help me fix this issue?@surajgoswami I guess you moved the folder containing Qt to other location?
This is problematic because Qt uses rpath to store the locations of libraries. See https://en.wikipedia.org/wiki/Rpath
You should rather reinstall Qt in the new location. -
Yeah, I have moved the folder containing Qt. Is there no other solution than reinstalling Qt?
-
Yeah, I have moved the folder containing Qt. Is there no other solution than reinstalling Qt?
@surajgoswami You would need to patch the binaries (Qt libs) to change the rpath, but reinstalling Qt is easier.