Skip to content

Commit f2286a6

Browse files
committed
Merge pull request #4190
502972f Fix Error: No file at @loader_path/libboost_system-mt.dylib (Federico Bond)
2 parents f3330b4 + 502972f commit f2286a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/macdeploy/macdeployqtplus

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ def getFrameworks(binaryPath, verbose):
211211

212212
libraries = []
213213
for line in otoolLines:
214+
line = line.replace("@loader_path", os.path.dirname(binaryPath))
214215
info = FrameworkInfo.fromOtoolLibraryLine(line.strip())
215216
if info is not None:
216217
if verbose >= 3:
@@ -307,7 +308,7 @@ def deployFrameworks(frameworks, bundlePath, binaryPath, strip, verbose, deploym
307308
if deploymentInfo.qtPath is None and framework.isQtFramework():
308309
deploymentInfo.detectQtPath(framework.frameworkDirectory)
309310

310-
if framework.installName.startswith("@executable_path"):
311+
if framework.installName.startswith("@executable_path") or framework.installName.startswith(bundlePath):
311312
if verbose >= 2:
312313
print framework.frameworkName, "already deployed, skipping."
313314
continue

0 commit comments

Comments
 (0)