[Interest] Using macdeployqt after Qbs

Jake Petroules Jake.Petroules at qt.io
Thu Jun 1 21:30:06 CEST 2017

Hi Charlie,

You said that you don't have a problem initially compiling the project in Qt Creator with Qbs. Do you mean that your initial build succeeds, then you run macdeployqt, and then you run the Qbs build again and receive the failure below?

Please show your project files so we can better understand what's going wrong. My initial guess is that your app's installation Group might be wrong. Please check the second paragraph in the "Breaking Changes" section of https://blog.qt.io/blog/2017/05/29/qbs-1-8-released/

Also note two things:
- You are not supposed to modify the contents of the qbs build output directory (which in your case is /Users/charlie/build-untitled2-Desktop_Qt_5_9_0_clang_64bit-Debug/qtc_Desktop__23fa2072-debug). Instead, you should copy your .app bundle to a different location before running macdeployqt on it.
- In a future release of Qbs (hopefully 1.9) we will have functionality to bundle frameworks directly in the build system, so you will not need to (and should not) use macdeployqt anymore.

> On Jun 1, 2017, at 12:20 PM, Charles-Elie Gentil <mail at jiyuusoft.net> wrote:
> Hello friends,
> I don’t have problem to compile the start project of Qt Creator with Qbs. Now, I want use macdeployqt with this line in %{buildDir} :
> 	macdeployqt untitled2.app
> Unfortunately, in my cas, I have this error :
> 	:-1: erreur : Installation error: Could not copy file '/Users/charlie/build-untitled2-Desktop_Qt_5_9_0_clang_64bit-Debug/qtc_Desktop__23fa2072-debug/untitled2.qtc-Desktop--23fa2072.b0b37170/.tmp/untitled2' to '/Users/charlie/build-untitled2-Desktop_Qt_5_9_0_clang_64bit Debug/qtc_Desktop__23fa2072-debug/install-root/untitled2'. Impossible d'ouvrir /Users/charlie/build-untitled2-Desktop_Qt_5_9_0_clang_64bit-Debug/qtc_Desktop__23fa2072-debug/untitled2.qtc-Desktop--23fa2072.b0b37170/.tmp/untitled2 en lecture
> With the same compiled project with qmake, I don’t have this problem !!!
> Do you have an idea ? Have you tried to use macdeployqt after a compilation with Qbs with Qt 5.9 ?
> Thank you in advance,
> Best regards,
> Charlie
> mail at jiyuusoft.net
> http://blog.jiyuusoft.net
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

Jake Petroules - jake.petroules at qt.io
The Qt Company - Silicon Valley
Qbs build tool evangelist - qbs.io

More information about the Interest mailing list