[Qt-creator] Dealing with Qt5 symlinks when deploying from Windows

Rafael Roquetto rafael.roquetto at kdab.com
Wed Dec 3 19:35:05 CET 2014


Hello,

This question regards mainly the QNX plugin for QtC.

Under the QNX Devices page, there is a button called "Deploy Qt libraries",
which well, is used to deploy the Qt libraries to a location on the target
device. It will look at QT_INSTALL_LIBS (among others) and deploy to the
device everything that is in there. Now, since we are talking about QNX here,
the actual libs are the files named like libQt5<Module>so.5.4.0, while
everything else (*.so, *.so.5, etc...) are just symlinks, just like the Linux
version.

Nonetheless, many of our costumers are using Windows as their development
host, which means that, since Windows does not support symlinks, these are
actually resolved to duplicates on the host. Once the user presses "Deploy Qt
libraries", all the duplicates will be deployed to the target, effectively
causing the deployed size of Qt to grow substantially.

Since QNX binaries only link against *.so.5 libs, we don't really need the
rest of them. In your opinion, would simply filtering those duplicate files
out and deploying just resolved versions of *.so.5 libs be an acceptable
solution? (I say acceptable becaue it does not really smell that good to me,
but I can't think of something else).

Please advise.

Best regards,
Rafael

-- 
Rafael Roquetto | rafael.roquetto at kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4861 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20141203/b9d88c69/attachment.bin>


More information about the Qt-creator mailing list