Results 1 to 3 of 3

Thread: Error building Qt Designer plugin [SOLVED]

  1. #1
    Join Date
    Nov 2010
    Posts
    47
    Thanks
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Error building Qt Designer plugin [SOLVED]

    Created custom plugin in Qt Creator (on Windows 7) by New File or Project -> Other Project -> Qt Custom Designer Widget. Trying to build it, get error:

    LINK : fatal error LNK1181: cannot open input file 'widgetbox.lib'
    Generated .pro file by Qt Creator is following:

    Qt Code:
    1. CONFIG += plugin debug_and_release
    2. TARGET = $$qtLibraryTarget(WidgetBoxPlugin)
    3. TEMPLATE = lib
    4.  
    5. HEADERS = widgetboxplugin.h
    6. SOURCES = widgetboxplugin.cpp
    7. RESOURCES = icons.qrc
    8. LIBS += -L. -lwidgetbox
    9.  
    10. greaterThan(QT_MAJOR_VERSION, 4) {
    11. QT += designer
    12. } else {
    13. CONFIG += designer
    14. }
    15.  
    16. target.path = $$[QT_INSTALL_PLUGINS]/designer
    17. INSTALLS += target
    To copy to clipboard, switch view to plain text mode 
    Linker output:
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /OUT:release\WidgetBoxPlugin.dll @C:\Users\Aleksey\AppData\Local\Temp\nm431E.tmp
    LINK : fatal error LNK1181: cannot open input file 'widgetbox.lib'
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\link.EXE"' : return code '0x49d'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
    Stop.
    12:43:57: The process "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe" exited with code 2.
    Error while building/deploying project WidgetBox (kit: Desktop Qt 5.5.1 MSVC2013 32bit)
    When executing step "Make"
    Compiler is VS C++ 2013. Qt 5.5 installed from http://download.qt.io/official_relea...x86-online.exe for VS 2013 32 and 64 bit versions. What the problem could be? BTW, will it installs plugin automatically after successful build with such .pro?

    P.S. Wrong linker option, just need to remove:
    -lwidgetbox
    Last edited by AlekseyK; 11th March 2016 at 12:04.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Error building Qt Designer plugin [SOLVED]

    Well, is there a widgetbox.lib in the current directory? Is it readable? Is it a library?

    Cheers,
    _

  3. #3
    Join Date
    Nov 2010
    Posts
    47
    Thanks
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Error building Qt Designer plugin [SOLVED]

    Read P.S., solved, thanks.

Similar Threads

  1. Replies: 19
    Last Post: 12th June 2014, 07:30
  2. Replies: 1
    Last Post: 14th February 2014, 08:36
  3. Replies: 2
    Last Post: 6th April 2013, 17:57
  4. Designer plugin segfaults designer :(
    By tmarki in forum Qt Tools
    Replies: 4
    Last Post: 26th September 2007, 11:22
  5. Replies: 1
    Last Post: 22nd January 2007, 12:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.