ArcGIS Qt Deployment for Mac

622
3
07-10-2019 04:10 PM
SelimOzel
New Contributor III

Mac deployment tool requires three dylib files to be saved under /usr folder The link below explains it under section named "Using QT's Mac Deployment Tool".
https://developers.arcgis.com/qt/latest/cpp/guide/deploy-your-app.htm

I tried manually copying libEsriRuntimeQt.dylib under that folder because it was not copied and came across the following issue, that folder does not allow me to modify it.
https://apple.stackexchange.com/questions/237778/cant-write-to-usr-even-with-sudo

Does anyone have a solution for this? Long story short, I think my final .app file would work fine if I had a way to just put that dylib file into it.

Best,
S

0 Kudos
3 Replies
SelimOzel
New Contributor III

Here's some more content on my issue. I ran the following command from my release folder:
$HOME/Qt/5.12.2/clang_64/bin/macdeployqt QGroundControl.app -verbose=2

I can see the following error on in the output. 
ERROR: no file at "usr/lib/libEsriCommonQt.dylib"

I think this error is a result of linking operation failing due to write access limitation of the System Integrity whatever ...

Best,
S

0 Kudos
by Anonymous User
Not applicable

Hi Selim,

If you try

$HOME/Qt/5.12.2/clang_64/bin/macdeployqt QGroundControl.app -verbose=2 -libpath=$HOME/ArcGIS/<version>/sdk/macOS/x64/lib

Does that work?

SelimOzel
New Contributor III

That didn't work but after searching some more online I managed to get some builds working using following two commands:

otool -L QGroundControl.app/Contents/MacOS/QGroundControl

install_name_tool -change libEsriCommonQt.dylib @rpath/libEsriCommonQt.dylib ./QGroundControl.app/Contents/MacOS/QGroundControl

The issue is with mapping the dylib into the executable one way or the other.

By the way, thanks for rapid responses. I really appreciate the developer community here at Esri!

S

0 Kudos