Results 1 to 5 of 5

Thread: Qt 5.5 non-commercial + Qwt 6.1.2. + Qt VS Add-in 1.2.4

  1. #1
    Join Date
    Sep 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Qt 5.5 non-commercial + Qwt 6.1.2. + Qt VS Add-in 1.2.4

    I have managed to run the qwt example projects in VS 2013 ultimate (oscilloscope, realitime, etc.). Besides, I can drag and drop qwt widgets in the QtDesigner (opened from inside VS). I can make and run programs containing all the standard widgets. However, if I add Qwt widgets in the QtDesigner, I get build errors of this kind:

    error LNK2019: unresolved external symbol “public: __cdecl QwtPlot::QwtPlot(class QWidget *)” (??0QwtPlot@@QEAA@PEAVQWidget@@@Z) referenced in function “public: void __cdecl Ui_QWTutorialClass::setupUi(class QMainWindow *)” (?setupUi@Ui_QWTutorialClass@@QEAAXPEAVQMainWindow @@@Z).

    How can I make the programs run?

    EDIT: Win 7 x64
    Last edited by Pacu; 24th September 2015 at 18:11.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,315
    Thanks
    314
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt 5.5 non-commercial + Qwt 6.1.2. + Qt VS Add-in 1.2.4

    You have to add the Qwt library to your link options in VS 2013. Look at one of the Qwt examples and do the same thing in your project.

  3. #3
    Join Date
    Sep 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt 5.5 non-commercial + Qwt 6.1.2. + Qt VS Add-in 1.2.4

    The Linker -> General -> Additional Library Dependencies are identical, similarly Linker -> Input -> Additional Dependencies ( with <different options> ). What could I be missing?

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,315
    Thanks
    314
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt 5.5 non-commercial + Qwt 6.1.2. + Qt VS Add-in 1.2.4

    • Are you compiling everything in either 64-bit or 32-bit mode?
    • Are you linking all release or all debug programs and libraries? (In other words, you cannot mix release or debug anywhere).
    • Is all of your code compiled using the same compiler? (You can't mix and match MSVC and mingw).
    • Was Qwt built against the same version of Qt you are using, and with the same version of MSVC?
    • Are you using Qwt as a static library or a DLL? If a DLL, did you add QWT_DLL (or whatever the define is) as a preprocessor definition?

  5. #5
    Join Date
    Sep 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt 5.5 non-commercial + Qwt 6.1.2. + Qt VS Add-in 1.2.4

    Solved! I was confused by the meaning of <different options> in the project properties. PM me for detailed installation steps if you encounter a similar problem.
    Last edited by Pacu; 22nd October 2015 at 19:10.

Similar Threads

  1. Commercial and LGPL
    By bnilsson in forum Installation and Deployment
    Replies: 3
    Last Post: 2nd August 2009, 20:56
  2. Commercial License
    By GimpMaster in forum Newbie
    Replies: 3
    Last Post: 5th August 2008, 18:24
  3. Qt commercial with eclipse and cl.exe
    By wojtek in forum Qt-based Software
    Replies: 1
    Last Post: 3rd July 2008, 14:55
  4. OpenSource to Commercial Qt?
    By Raccoon29 in forum Qt Programming
    Replies: 9
    Last Post: 31st March 2008, 09:27
  5. Qt 4.1.0 commercial on Windows
    By mbjerkne in forum Installation and Deployment
    Replies: 11
    Last Post: 2nd February 2006, 03:38

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
  •  
Qt is a trademark of The Qt Company.