Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. INSTALLS and no_plugin_name_prefix error

INSTALLS and no_plugin_name_prefix error

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 829 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    surfinbird
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved