Программа по событию от пользователя запускает свою копию через скрипт с параметрами для выполнения определённого задания. Скрипт имеет SETUID флаг и запускает копию программы от рута.
До вызова macdeployqt это работает. После macdeployqt при попытке вызвать копию программы получаю ошибку.
=====================================================
[13:48:12] [D] "objc[53451]: Class NotificationReceiver is implemented in both /Users/administrator/Projects/win3-build-Release/my_app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets and /Users/administrator/Devel/Qt/5.4/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets. One of the two will be used. Which one is undefined. QObject::moveToThread: Current thread (0x7fef58c00080) is not the object's thread (0x7fef58d091a0). Cannot move to target thread (0x7fef58c00080)
On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded. This application failed to start because it could not find or load the Qt platform plugin "cocoa".
Available platform plugins are: cocoa, minimal, offscreen.
Reinstalling the application may fix this problem.
=====================================================
Дочерний процесс вызываю так (в данном случае вызывается скрипт)
QProcess p;
p.start(command, params);
if (waitWithEventProcessing(p, timeout))
....
Скрипт вызывает приложение так:
if [ "$1" == 'makeСonnection' ] ; then
'../../MacOs/MyApp.AC' -makeСonnection "$2" "$3" "$4" "$5"
fi
В чём может быть причина ошибки?