Macdeployqt dmg disabled build versions in Qt
Not any QML error ?
@SGaist Nope. Do you want to give it a try with the Qt Map Viewer Example?
That's what I was suspecting: missing plugins.
The quick and easy way would be to build your own version of macdeployqt with this patch applied.
If everything goes well, clone the qttools repository and and build macdeployqt from the latest 5.10 branch.
Otherwise, you will have to apply two patches since there was a cleanup done in between.
ld: can't open output file for writing '/bin/macdeployqt.ld_z0wFts', errno=1 for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/bin/macdeployqt] Error 1 make: *** [sub-macdeployqt-make_first] Error 2 15:19:17: The process "/usr/bin/make" exited with code 2. Error while building/deploying project macdeployqt (kit: Desktop Qt 5.9.2 clang 64bit) When executing step "Make"
Or can I do it somehow using the terminal?
/bin? That strange.
I do it from the command line in an out of source folder:
mkdir build_macdeployqt pushd build_macdeployqt /path/to/qmake /path/to/Qt/qttools/src/macdeployqt/ make make install
@SGaist when I do
I get :
Qt5.10.0/5.10.0/clang_64/mkspecs/features/mac/sdk.prf:26: Cannot write cache file /Users/.qmake.stash: Permission denied,
Tried it together with sudo, it worked:
Info: creating stash file /Users/.qmake.stash
But when doing
ld: can't open output file for writing '/bin/macdeployqt.ld_jnQbB4', errno=1 for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/bin/macdeployqt] Error 1 make: *** [sub-macdeployqt-make_first] Error 2
Are you using a self-compiled Qt ?
@SGaist No I downloaded the whole package from Qt, with Creator and everything and just used the provided installer.
Ok, I was using my own build of Qt.
Configure the complete qttools module then you can just build macdeployqt.
mkdir build_qttools pushd build_qttools /path/to/qmake /path/to/Qt/qttools/ -r make -C src/macdeployqt cp bin/macdeploqt /path/to/macdeployqt
[edit: added missing option. SGaist]
build_qttools user$ make -C src/macdeployqtgives me:
make: *** src/macdeployqt: No such file or directory. Stop.
build_qttools user$ make -C pathTo/qttools/src/macdeployqt make: *** No targets specified and no makefile found. Stop.
There was an option missing. You have to do a recursive configuration. Sorry. I've updated the sample.
@SGaist thanks for the quick update, now I got this.
cp: cannot overwrite directory pathTo/qttools/src/macdeployqt/macdeployqt with non-directory bin/macdeployqt
When calling make install ?
@SGaist when calling cp bin/macdeployqt /path/to/macdeployqt
Should there be an / after qttools in
/path/to/qmake /path/to/Qt/qttools/ -r?
Or when doing:
make -C src/macdeployqt:
cd macdeployqt/ && ( test -e Makefile || /Users/user/Qt5.10.0/5.10.0/clang_64/bin/qmake -o Makefile /Users/user/qttools/src/macdeployqt/macdeployqt/macdeployqt.pro ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile make: Nothing to be done forfirst'.`
My files are laid out like this in my home/root folder of the user:
/Qt/5.9.2 which I got from the complete Qt installation.
/Qt5.10.0 New version of Qt downloaded later on
/qttools git cloned version with the patch
I've been referring to the path of macdeployqt from the cloned git version, not the ones inside Qt5.9.2 or 5.10.0,
to qmake inside Qt5.10.0 and to
qttools in my root/home folder not inside Qt5.9.2 or 5.10.0
It should go in the bin folder of your Qt installation.
What you seem to be doing is trying to copy the executable in a folder that contains a folder named
@SGaist okey, so it's like:
/path/to/qmake in Qt5.9 or 5.10 /path/to/Qt/qttools from gitClone? / -r
make -C src/macdeployqt
cp bin/macdeploqt /path/to/macdeployqt in Qt 5.9 or 5.10
Looks correct yes