Sunday, July 6th 2008, 2:32pm UTC+1

You are not logged in.

  • Login
  • Register

1

Wednesday, May 7th 2008, 12:34pm

Building qwt 5.1.0 + QT 4.4 + VS 2008 fails

Hi all,

I tried the new QWT 5.1.0 with Visual Studio 2008 and the new QT 4.4.
While compiling it fails with the following error: (I tried also the CVS version, fails too.)

- qmake qwt.pro
- nmake

At my first look I saw that a few definitions of qlist.h and others are missing
For example:

(I uploaded the whole logfile as txt file to a one-click file hoster)
(Available here: http://rapidshare.com/files/113179338/mylog.txt.html)

Quoted


d:\qwt-5.1.0\src\qwt_valuelist.h(48) : warning C4661: 'QSet<T> QList<T>::toSet(void) const':
d:\qt4.4\include\qtcore\../../src/corelib/tools/qlist.h(530) : warning C4661: 'QList<T> QList<T>::fromSet(const QSet<T> &)':
d:\qt4.4\include\qtcore\../../src/corelib/tools/qlist.h(530) : warning C4661: 'QSet<V> QList<T>::toSet(void) const':


Near end of the log you will see that it has problems while creating qwt_designer_plugin:


Quoted


link /LIBPATH:"d:\QT4.4\lib" /NOLOGO /INCREMENTAL:NO /DLL /VERSION:0.0 /OUT:plugins\designer\qwt_designer_plugin5.dll @C:\DOKUME~1\THAMUB~1\LOKALE~1\Temp\nm75.tmp

Bibliothek "plugins\designer\qwt_designer_plugin5.lib" und Objekt "plugins\designer\qwt_designer_plugin5.exp" werden erstellt.

qwt_designer_plugin.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall QwtPlot::QwtPlot(class QWidget *)" (__imp_??0QwtPlot@@QAE@PAVQWidget@@@Z)" in Funktion ""public: virtual class QWidget * __thiscall QwtDesignerPlugin::PlotInterface::createWidget(class QWidget *)" (?createWidget@PlotInterface@QwtDesignerPlugin@@UAEPAVQWidget@@PAV3@@Z)".

qwt_designer_plugin.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual struct QMetaObject const * __thiscall QwtPlot::metaObject(void)const " (?metaObject@QwtPlot@@UBEPBUQMetaObject@@XZ)".

qwt_designer_plugin.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void * __thiscall QwtPlot::qt_metacast(char const *)" (?qt_metacast@QwtPlot@@UAEPAXPBD@Z)".


....


Any Ideas?
  • Go to the top of the page

2

Thursday, May 15th 2008, 2:26pm

push

no help?
  • Go to the top of the page

stinos

Intermediate

3

Friday, May 16th 2008, 10:14am

the warnings are 'normal' with qt.
the first error probably comes from not linking with thw qwt import library
the last two errors are due to a moc object file not being linked
madinsjamania
  • Go to the top of the page

4

Tuesday, May 20th 2008, 3:12pm

Actually, the last error is probably because you derived a class from QwtPlot but didn't put "QWT_DLL" as a preprocessor define in the project settings. I beat my head against the wall over that same error for several days before I found the answer in another thread here.

But you also need to make sure that your QwtPlot class is moc'ed. If you are using the Qt Visual Studio plugin, that should happen automatically. If not, you'll have to add it to the project or makefile.
  • Go to the top of the page

Rate this thread