Monday, December 21, 2009

qHash problem

The qHash problem was also found by other people

according to
this forum entry


you can just remove the QWT_TEMPLATEDLL section (I did this by changing the line
#if defined(QWT_TEMPLATEDLL)
near the

template class QWT_EXPORT QList;

line
into

#if defined(QWT_TEMPLATEDLLxx)

after this the compile runs fine and I have a fresh qwt5.dll file.


By opening the example.pro file in the Qt Creator and running qmake from the build menu followed by a run I also managed to compile the examples. The examples don't run because qwt5.dll cannot be found. Copying the dll into the examples/bin folder lets you run the examples from Qt Creator. You still cannot run the examples directly from windows because then the qt dll's cannot be found. Running the examples from the command prompt that comes with the nokia Qt installation package works though.

Better option is of course to just add the folders with the qt dll's to the windows environment. I choose to copy the qwt dll into the same folder as the other qt dll's (safes an entry into the path environment setting)

No comments:

Post a Comment