Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Building first Designer plugin
Forum Updated to NodeBB v4.3 + New Features

Building first Designer plugin

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 1.0k 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.
  • D Offline
    D Offline
    deanc
    wrote on last edited by
    #1

    I've created a custom widget that I want to add to Designer. The widget uses 3 static libraries that are part of the main project. So far I've been working exclusively with Visual Studio 2008 on this (our first) Qt project. The custom widget compiles and runs fine in my Visual Studio test project.

    From the instructions I could find on creating the .pro file, I came up with this:

    @TEMPLATE = lib
    HEADERS += BoundedDoubleEdit.h
    BoundedDoubleEditPlugin.h

    SOURCES += BoundedDoubleEdit.cpp
    BoundedDoubleEditPlugin.cpp

    INCLUDEPATH += \source\ladarsbirsrc\trunk\src
    \source\ladarsbirsrc\trunk\src\BoundedDoubleEdit
    \source\ladarsbirsrc\3rdParty\boost_1_46_1
    \source\ladarsbirsrc\svstsrc\stringlib
    \source\ladarsbirsrc\svstsrc\utilities

    DEFINES += SBIR_COMPILE

    LIBS += -L\source\ladarsbirsrc\trunk\Release -lUtilities -lTiming -lStringUtil

    CONFIG += designer plugin release

    VERSION = 1.0
    @

    The libraries Utilities, Timing, and StringUtil are static libs built in Visual Studio.

    I then run qmake, then nmake in a Visual Studio command window. The linker fails, giving unresolved external symbols for various Windows system functions such as GetUserNameA (the missing symbols varies depending on which computer I compile on).

    Don't know where to go from here, other than to the experts in the Qt community. TIA for any insight you can give.

    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