INSTALLS and no_plugin_name_prefix error
I'm using QtCreator to create a custom plugin with Qt SDK 4.7.2.
I want to deploy my plugin to a generic linux device from within QtCreator (along with an executable not described here). I'm using QtCreator 3.1.2 on Ubuntu 14.04 LTS Amd64.
Next describes the relevant parts of the project file (.pro) how I tried to set this up:
CONFIG += plugin no_plugin_name_prefix
TEMPLATE = lib
TARGET = mytarget
Creating a plugin project file with above settings generates a binary mytarget.so, no problem so far.
target.path = /usr/bin/mytarget
INSTALLS += target
When adding above lines to the project file the deployment step in qt-creator looks for a file libmytarget.so, shouldn't this be mytarget.so? If not, how can I tell the deployment step to look for mytarget.so instead of libmytarget.so?
Next is the error I get in the Compile Output of QtCreator:
13:50:25: Failed to upload file '/test/libmytarget.so': Could not open for reading.
13:50:25: Deploy step failed.
Error while building/deploying project plugin-test (kit: dc800_4.7.2)
When executing step 'Upload files via SFTP'
When I remove no_plugin_name_prefix everything works fine, but the plugin name becomes libmytarget.so which I don't prefer.