macdeployqt ERROR: Cannot resolve rpath \\ quick fix

Jan 06, 2024 02:27

Problem: While deploying QT6 on MacOS using Homebrew you may get errors like:

ERROR: Cannot resolve rpath "@rpath/QtGui.framework/Versions/A/QtGui"

It happens because macdeployqt can't find relative path to libs and frameworks from .app destination.

Decision is trivial: put you .app in homebrew dir (/opt/homebrew for ARM or /usr/local/homebrew for x86) and deploy it there.

It's interesting: QT5 has no problem on deploying anywhere.
Previous post
Up