Results 1 to 3 of 3

Thread: unable to build Qwt examples in Visual studio 2005

  1. #1
    Join Date
    Mar 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default unable to build Qwt examples in Visual studio 2005

    Hi,

    I am a new Qwt user.
    I want to run the Qwt examples on Windows xp(visual studio 2005).

    With the help of instructions given in the forum i could successfully install qt and Qwt on my machine.i am able to run Qt examples successfully.

    I have problem with Qwt examples.I wil explain the steps i have followed to run the Qwt examples first.

    Building the Qwt
    1. downloaded the qwt-6.0.0-rc3.zip from net and extracted.
    2. edited the qwtconfig.pri file.
    3.Launched visual studio 2005 .
    4. opened qwt.pro using ''open solution from .pro file" in viausl studio.
    5. built the project.This successfully created the lib files.

    Run examples:
    1.opened the .pro file in visual studio.
    2. updated linker->additional dependies
    3. built the solution.

    I couldnt build the examples as i was facing the below linket errors.

    linker errors:
    Error 2 error LNK2019: unresolved external symbol "public: void __thiscall QwtDoubleRange::setRange(double,double,double,int) " (?setRange@QwtDoubleRange@@QAEXNNNH@Z) referenced in function "public: __thiscall MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QAE@PAVQWidget@@@Z) mainwindow.obj
    Error 3 error LNK2019: unresolved external symbol "public: __thiscall QwtCounter::QwtCounter(class QWidget *)" (??0QwtCounter@@QAE@PAVQWidget@@@Z) referenced in function "public: __thiscall MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QAE@PAVQWidget@@@Z) mainwindow.obj
    Error 84 error LNK2019: unresolved external symbol "public: virtual int __thiscall QwtPlot::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@QwtPlot@@UAEHW4Call@QMetaObject@@HPA PAX@Z) referenced in function "public: virtual int __thiscall Plot::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@Plot@@UAEHW4Call@QMetaObject@@HPAPAX @Z) moc_plot.obj
    Error 85 fatal error LNK1120: 83 unresolved externals ..\..\examples\bin\bode.exe


    I have no clue how to fix these errors and build the Qwt examples.
    Eagerly waiting for some one to help me out.

    Thanks a ton, in advance!

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: unable to build Qwt examples in Visual studio 2005

    cd examples
    qmake examples.pro
    nmake

    Uwe

  3. #3
    Join Date
    Mar 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: unable to build Qwt examples in Visual studio 2005

    Hi Uwe

    Thanks for the reply.

    i have followed the steps.nmake command results in the following errors

    compass_grid.obj : error LNK2019: unresolved external symbol "public: void __thi
    scall QwtSimpleCompassRose::setWidth(double)" (?setWidth@QwtSimpleCompassRose@@Q
    AEXN@Z) referenced in function "private: class QwtCompass * __thiscall CompassGr
    id::createCompass(int)" (?createCompass@CompassGrid@@AAEPAVQwtCompass@@H@Z )
    compass_grid.obj : error LNK2019: unresolved external symbol "public: __thiscall
    QwtSimpleCompassRose::QwtSimpleCompassRose(int,int )" (??0QwtSimpleCompassRose@@
    QAE@HH@Z) referenced in function "private: class QwtCompass * __thiscall Compass
    Grid::createCompass(int)" (?createCompass@CompassGrid@@AAEPAVQwtCompass@@H@Z )
    compass_grid.obj : error LNK2019: unresolved external symbol "public: __thiscall
    QwtCompass::QwtCompass(class QWidget *)" (??0QwtCompass@@QAE@PAVQWidget@@@Z) re
    ferenced in function "private: class QwtCompass * __thiscall CompassGrid::create
    Compass(int)" (?createCompass@CompassGrid@@AAEPAVQwtCompass@@H@Z )
    moc_attitude_indicator.obj : error LNK2001: unresolved external symbol "public:
    static struct QMetaObject const QwtDial::staticMetaObject" (?staticMetaObject@Qw
    tDial@@2UQMetaObject@@B)
    ..\..\examples\bin\dials.exe : fatal error LNK1120: 70 unresolved externals
    NMAKE : fatal error U1077: 'echo' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
    make.exe"' : return code '0x2'
    Stop.


    Could you be a bit more elaborative as i am new to these operations!
    Thank you!

Similar Threads

  1. Replies: 1
    Last Post: 19th October 2009, 18:44
  2. QWT examples in Visual Studio 2005
    By Roelof in forum Qwt
    Replies: 8
    Last Post: 14th August 2009, 12:07
  3. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  4. Can i use visual studio 2005 to build Qt applications?
    By coder1985 in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2007, 17:23
  5. Qt 4.1.0 on Visual Studio 2005
    By nErnie in forum Installation and Deployment
    Replies: 8
    Last Post: 6th July 2006, 00:56

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.