[Qbs] "bundle.content" and libraries within app bundle
Christian Kandeler
christian.kandeler at qt.io
Mon Jun 26 16:10:37 CEST 2017
On Mon, 26 Jun 2017 12:40:40 +0300
Иван Комиссаров <abbapoh at gmail.com> wrote:
> I want to install library products into the application bundle, like Qt Creator does.
>
> I modified install-bundle example so the framework is installed into
>
> Here’s the example https://pastebin.com/dU3gxjQ4 <https://pastebin.com/dU3gxjQ4>
>
> However, i get the following error when i try to launch app from Qt Creator:
>
> Starting /Users/arch/Programming/qt5/build-install-bundle-Desktop_Qt_5_7_1_clang_64bit-Debug/qtc_Desktop__1f2d618d-debug/.tmp/Window...
> dyld: Library not loaded: CoreUtils.framework/Versions/A/CoreUtils
> Referenced from: /Users/arch/Programming/qt5/build-install-bundle-Desktop_Qt_5_7_1_clang_64bit-Debug/qtc_Desktop__1f2d618d-debug/.tmp/Window
> Reason: image not found
>
> Ok, i didn’t set the cpp.rpath property, however, why does QtC launches app from .tmp but not from install-root? Is this a bug?
Possibly. It appears your executable does not have qbs.install set for
some reason. The logic for choosing the executable to run is in
qbs::ProductData::targetExecutable(). Debugging into this function might give you more insight into what is going on.
You might also want to check whether the same thing happens with the original install-bundle example.
Christian
More information about the Qbs
mailing list