PDA

View Full Version : unable to build Qwt examples in Visual studio 2005



tulsi
9th November 2010, 05:57
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!

Uwe
9th November 2010, 07:14
cd examples
qmake examples.pro
nmake

Uwe

tulsi
9th November 2010, 08:55
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!