Thanks, I did miss the final step!
Ok so I know I can access the qwt files now (the autocomplete works!), but I still can't place widgets in the UI editor. Is there a way to get this working?
Thanks, I did miss the final step!
Ok so I know I can access the qwt files now (the autocomplete works!), but I still can't place widgets in the UI editor. Is there a way to get this working?
"make install" also installs the designer plugin - all you need to do is to tell the Creator how to find it. Look at the end of the INSTALL file about how to do it.
A common source of problems on Windows is, when you are using a binary package of the Creator, that has been build with a different compiler than the one you have used for building Qwt ( MinGW, MSVC ). Also you can't load a debug Qwt plugin into a Qt Creator, that has been buit in release mode ( and v.v ).
Uwe
Ok, so I've tried copying the plugin files to the plugin directory but to no avail. Nevermind.
Should I try something like this in the Qt command line?
Or should it only appear in the *.pro file where I want to use it?Qt Code:
qmake -set QT_PLUGIN_PATH "C:\qwt-6.0.0\plugins\designer" qmake -set LD_LIBRARY_PATH "C:\qwt-6.0.0\lib"To copy to clipboard, switch view to plain text mode
Thanks
Last edited by darkblackcorner; 11th May 2011 at 20:22.
QT_PLUGIN_PATH is an environment variable ( like PATH ) and LD_LIBRARY_PATH is for Linux systems - on Windows it is PATH.
Uwe
Ok, to summarise I've done the following steps:
Qt Code:
Unzip Qwt to "C:\Qt\qwt-6.0.0" Edit qwtconfig.pri: uncomment QwtExamples, comment QwtDll, set win32 install prefix to C:/qwt-$$QWT_VERSION Open Qt command line and use the commands: qmake qwt.pro mingw32-make mingw32-make install qmake -set QMAKEFEATURES "C:\Qt\qwt-6.0.0"To copy to clipboard, switch view to plain text mode
So the next step is to open WinXP system properties>environment variables and add:
"QT_PLUGIN_PATH = C:\Qt\qwt-6.0.0\plugins\designer"
right?
Would it be easier if I move the qwt files to the relevant places within the qt directory?
What exactly do I need to do?
Isn't it qmake -set QMAKEFEATURES "C:\qwt-6.0.0\features" ? (your install folder).
Then you copy qwt.dll to %QTDIR%\bin and qwt_designer_plugin.dll to %QTDIR%\plugins\designer to have Qwt in Designer.
Last edited by Troudhyl; 14th May 2011 at 16:25.
I'm not sure. The INSTALL file said to set it to find qwt.prf which for me is in C:\Qt\qwt-6.0.0\
That got it working for the "include" headers anyway, but no widgets available in creator UI editor.
Do you have it working? What did you do?
It is the same thing in fact, because qwtconfig.pri is at the 2 places and contains absolute paths... But if you want to use qwtmathml, it is only in installfolder/features.
Works for Designer but not QtCreator (I tried to do the same thing in QtCreator folder... maybe it is because of a different Qt version (4.7.1 vs 4.7.3 if you installed the QtSDK 1.1), or Qt Creator compilation ?Then you copy qwt.dll to %QTDIR%\bin and qwt_designer_plugin.dll to %QTDIR%\plugins\designer to have Qwt in Designer.
Edit : here it is... http://doc.qt.nokia.com/qtcreator-sn...ing-build-keys
Last edited by Troudhyl; 14th May 2011 at 16:53.
Yes, I'm using the SDK. I don't have MSVC and to be honest I'd rather just stick with Qt.
So should I start from scratch ie: install Qt, then build and install creator, then build and install qwt?
With regards to my progress installing qwt, do I just need to copy the .dll files to their respective locations, or is there more to it?
Qt Code:
Unzip Qwt to "C:\Qt\qwt-6.0.0" Edit qwtconfig.pri: uncomment QwtExamples, comment QwtDll, set win32 install prefix to C:/qwt-$$QWT_VERSION Open Qt command line and use the commands: qmake qwt.pro mingw32-make mingw32-make install qmake -set QMAKEFEATURES "C:/qwt-$$QWT_VERSION/features" To add plugin to Designer: copy C:/qwt-$$QWT_VERSION/lib/qwt.dll to %QTDIR%/bin copy C:/qwt-$$QWT_VERSION/plugins/designer/qwt_designer_plugin.dll to %QTDIR%/plugins/designer To add plugin to Qt Creator's Designer: download Qt Creator sources and rebuild if it was not built with the same compiler as Qt Copy the same things as above but in QtCreator directory instead of %QTDIR%To copy to clipboard, switch view to plain text mode
This should be in the INSTALL file to avoid a lot of questions... One way to configure which work and can be done by the most users, and advanced users will know if they prefer to do other.
21did21 (15th May 2011), darkblackcorner (15th May 2011)
Thanks, I'll give it a try next chance I get
Last edited by darkblackcorner; 14th May 2011 at 19:33.
hello, i have do this thing and now i have done one project:
http://imageshack.us/photo/my-images/688/qwttest.jpg/
this project don't work because it don't find the qwt_plot.h and others files...
==> so, i put all the qwt sources in my project and now i have this error during compilation:
http://imageshack.us/photo/my-images/42/newproblem.jpg/
can you explain me why ?
this line ? i have already do this. But i still try, and i have already this error:
http://imageshack.us/photo/my-images/3/errorfco.jpg/
qmake -query QMAKEFEATURES say what ? Of course you replace C:/qwt-$$QWT_VERSION/ with your install location.
Qt Code:
Unzip Qwt to "C:\Qt\qwt-6.0.0" Edit qwtconfig.pri: uncomment QwtExamples, comment QwtDll, set win32 install prefix to [THE-INSTALL-DIRECTORY-YOU-WANT] Open Qt command line and use the commands: qmake qwt.pro mingw32-make mingw32-make install qmake -set QMAKEFEATURES "[THE-INSTALL-DIRECTORY-YOU-WANT]/features" To add plugin to Designer: copy [THE-INSTALL-DIRECTORY-YOU-WANT]/lib/qwt.dll to %QTDIR%/bin copy [THE-INSTALL-DIRECTORY-YOU-WANT]/plugins/designer/qwt_designer_plugin.dll to %QTDIR%/plugins/designer To add plugin to Qt Creator's Designer: download Qt Creator sources and rebuild if it was not built with the same compiler as Qt Copy the same things as above but in QtCreator directory instead of %QTDIR%To copy to clipboard, switch view to plain text mode
Last edited by Troudhyl; 15th May 2011 at 12:27.
21did21 (15th May 2011), darkblackcorner (15th May 2011)
Try without "/features"
It worked for me previously.Qt Code:
qmake -set QMAKEFEATURES "C:/qwt-6.0.0"To copy to clipboard, switch view to plain text mode
Bookmarks