Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Cannot change target folder of Examples
Mark81 last edited by Mark81
Usually when deploying to a remote device, I set the
target.pathto the desired remote directory, example:
target.path = /home/user/opcua/opcuaviewer INSTALLS += target
But if I do so with the, say, opcuaviewer examples, qmake fails with:
:-1: error: Project ERROR: /home/mark/Qt/qtopcua/examples/opcua/opcuaviewer/opcuaviewer.pro installs target to unexpected location.
The only way is to left the variable unchanged:
target.path = $$[QT_INSTALL_EXAMPLES]/opcua/opcuaviewer
But this makes no sense, because the expected folder structure on the remote device is different than the local one!
What am I missing here?