Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Link against a widget library
Forum Updated to NodeBB v4.3 + New Features

Link against a widget library

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 917 Views 1 Watching
  • 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
    soroush
    wrote on last edited by
    #1

    Hello

    I'm experiencing a nightmare while trying to link against my widget library in Windows. I have a widget library (designer plugin) which works in Linux properly. But in windows, after compilation, I can't find a way to link against it. Projects using those widgets refuse to compile with linker. (Errors of kind undefinded reference to everything in that library.)

    I've changed my .pro file and add absolute path of library files (both .a and .dll files):

    @
    LIBS += C:/some/directory/libmyplugin.dll \
    C:/some/directory/myplugin.a
    @
    And also I would like to know the path to copy designer plugins.

    Qt: SDK 1.1.3 with MinGW 4.4 on Windows 7

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      In short, you should not use plugin in such a way, though it will work if you have exported symbols properly.


      BTY, you had better distinguish widget library(whether you widget located) and designer plugin(used only by your designer). Don't mix them together.

      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