[Interest] Qbs-built application deployed with macdeployqt doesn't start

Mitch Curtis mitch.curtis at qt.io
Tue Sep 18 10:24:06 CEST 2018


I’m getting the following error message when trying to launch my Qbs-built application that has been deployed with macdeployqt:

Dyld Error Message:
  Library not loaded: @rpath/QtCore.framework/Versions/5/QtCore
  Referenced from: /Volumes/*/slate.app/Contents/MacOS/slate
  Reason: image not found

I noticed this was reported already:

https://bugreports.qt.io/browse/QBS-1204

“(Mostly) intended behavior, for the time being.

You can either add an absolute rpath to the Qt libraries using cpp.rpaths (not recommended), or deploy the Qt libraries into your application bundle (this will be possible in a future version of Qbs without any external tools and will be done automatically).”

I assume this is what the first alternative looks like:

https://github.com/bjorn/tiled/blob/master/src/tiled/tiled.qbs#L43

But what about the recommended way? The comment says it should be possible, but judging from the fact the problem still exists, I’m guessing it never got fixed?



More information about the Interest mailing list