Results 1 to 20 of 25

Thread: Qwt Installation Help

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    10
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Installation Help

    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?

  2. #2
    Join Date
    May 2011
    Posts
    21
    Thanks
    1
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Installation Help

    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.

    Then you copy qwt.dll to %QTDIR%\bin and qwt_designer_plugin.dll to %QTDIR%\plugins\designer to have Qwt in Designer.
    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 ?
    Edit : here it is... http://doc.qt.nokia.com/qtcreator-sn...ing-build-keys
    Last edited by Troudhyl; 14th May 2011 at 16:53.

  3. #3
    Join Date
    May 2011
    Posts
    10
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Installation Help

    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?

  4. #4
    Join Date
    May 2011
    Posts
    21
    Thanks
    1
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Installation Help

    Qt Code:
    1. Unzip Qwt to "C:\Qt\qwt-6.0.0"
    2. Edit qwtconfig.pri: uncomment QwtExamples, comment QwtDll, set win32 install prefix to C:/qwt-$$QWT_VERSION
    3. Open Qt command line and use the commands:
    4. qmake qwt.pro
    5. mingw32-make
    6. mingw32-make install
    7. qmake -set QMAKEFEATURES "C:/qwt-$$QWT_VERSION/features"
    8.  
    9. To add plugin to Designer:
    10. copy C:/qwt-$$QWT_VERSION/lib/qwt.dll to %QTDIR%/bin
    11. copy C:/qwt-$$QWT_VERSION/plugins/designer/qwt_designer_plugin.dll to %QTDIR%/plugins/designer
    12.  
    13. To add plugin to Qt Creator's Designer:
    14. download Qt Creator sources and rebuild if it was not built with the same compiler as Qt
    15. 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.

  5. The following 2 users say thank you to Troudhyl for this useful post:

    21did21 (15th May 2011), darkblackcorner (15th May 2011)

  6. #5
    Join Date
    May 2011
    Posts
    10
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Installation Help

    Thanks, I'll give it a try next chance I get
    Last edited by darkblackcorner; 14th May 2011 at 19:33.

  7. #6
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: Qwt Installation Help

    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 ?

  8. #7
    Join Date
    May 2011
    Posts
    21
    Thanks
    1
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Installation Help

    Can you remove this useless copy of sources and just retype the GOOD command line to set QMAKEFEATURES (and then reboot QtCreator I think) ? Please.

    Your project needs the include files, and the libs to link, that is the purpose of this command.

  9. #8
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: Qwt Installation Help

    Quote Originally Posted by Troudhyl View Post
    qmake -set QMAKEFEATURES "C:/qwt-$$QWT_VERSION/features"
    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/

  10. #9
    Join Date
    May 2011
    Posts
    21
    Thanks
    1
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Installation Help

    qmake -query QMAKEFEATURES say what ? Of course you replace C:/qwt-$$QWT_VERSION/ with your install location.

    Qt Code:
    1. Unzip Qwt to "C:\Qt\qwt-6.0.0"
    2. Edit qwtconfig.pri: uncomment QwtExamples, comment QwtDll, set win32 install prefix to [THE-INSTALL-DIRECTORY-YOU-WANT]
    3. Open Qt command line and use the commands:
    4. qmake qwt.pro
    5. mingw32-make
    6. mingw32-make install
    7. qmake -set QMAKEFEATURES "[THE-INSTALL-DIRECTORY-YOU-WANT]/features"
    8.  
    9. To add plugin to Designer:
    10. copy [THE-INSTALL-DIRECTORY-YOU-WANT]/lib/qwt.dll to %QTDIR%/bin
    11. copy [THE-INSTALL-DIRECTORY-YOU-WANT]/plugins/designer/qwt_designer_plugin.dll to %QTDIR%/plugins/designer
    12.  
    13. To add plugin to Qt Creator's Designer:
    14. download Qt Creator sources and rebuild if it was not built with the same compiler as Qt
    15. 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.

  11. The following 2 users say thank you to Troudhyl for this useful post:

    21did21 (15th May 2011), darkblackcorner (15th May 2011)

  12. #10
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: Qwt Installation Help

    Quote Originally Posted by Troudhyl View Post
    qmake -query QMAKEFEATURES say what ?
    it show:

    unknows

  13. #11
    Join Date
    May 2011
    Posts
    10
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Installation Help

    YES! I now have qwt widgets available in designer, but not in creator for some reason... I'm guessing I can still edit UIs in designer, but I'd really like to get them in creator...

    EDIT:Ok, I seem to be doing fine with designer, so I guess I'll just design my UIs there for now until I can get it added to creator. I think I just need to work out where to place the .dll files.

    For future reference I've included all my steps to get it installed:
    Qt Code:
    1. Unzip Qwt to "C:\Qt\qwt-6.0.0"
    2. Edit qwtconfig.pri: uncomment QwtExamples, set win32 install prefix to C:/Qt/qwt-$$QWT_VERSION
    3. Open Qt command line and use the commands:
    4. qmake qwt.pro
    5. mingw32-make
    6. mingw32-make install
    7. qmake -set QMAKEFEATURES "C:/Qt/qwt-6.0.0"
    8.  
    9. Include plugin in Designer:
    10. copy [QWT DIRECTORY]\lib\qwt.dll to "C:\Qt\2010.05\qt\bin"
    11. copy [QWT DIRECTORY]\plugins\designer\qwt_designer_plugin.dll to "C:\Qt\2010.05\qt\plugins\plugins\designer"
    12.  
    13. For each project add "CONFIG += qwt" in the project .pro file
    To copy to clipboard, switch view to plain text mode 
    Though the paths will be different depending on the locations of Qt and qwt.

    Many thanks for all your help Uwe and Troudhyl!
    Last edited by darkblackcorner; 15th May 2011 at 14:54. Reason: updated contents

  14. The following user says thank you to darkblackcorner for this useful post:

    21did21 (15th May 2011)

  15. #12
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: Qwt Installation Help

    if you find how to use QWT in the QtCreator can you explain this in this thread ?
    thank you

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

    Default Re: Qwt Installation Help

    Unzip Qwt to "C:\Qt\qwt-6.0.0"
    O.k.
    Edit qwtconfig.pri: uncomment QwtExamples, set win32 install prefix to C:/Qt/qwt-$$QWT_VERSION
    Uncommenting QwtExamples is only needed if you want to build the examples. For installing Qwt you don't need to do this.

    Changing the install prefix is o.k., but of course not mandatory.

    Open Qt command line and use the commands:
    qmake qwt.pro
    mingw32-make
    mingw32-make install
    O.k.
    qmake -set QMAKEFEATURES "C:/Qt/qwt-6.0.0"
    Wrong - it should be C:/Qt/qwt-6.0.0/features. Or where do you you have qwt.prf installed ?

    copy [QWT DIRECTORY]\lib\qwt.dll to "C:\Qt\2010.05\qt\bin"
    Very bad - use the PATH environment variable instead.

    This is a basic mechanism - nothing Qt or Qwt special. If you don't know about it it's high time to learn.

    copy [QWT DIRECTORY]\plugins\designer\qwt_designer_plugin.dll to "C:\Qt\2010.05\qt\plugins\plugins\designer"
    Very bad - read http://doc.qt.nokia.com/4.7/deployment-plugins.html instead.

    For each project add "CONFIG += qwt" in the project .pro file
    O.k.

    Guess the difference between designer and creator is, that you have built the designer yourself with mingw while you have downloaded a creator, that has been built by Nokia with MSVC. If true you need to recompile the creator with mingw too.

    Uwe

  17. #14
    Join Date
    May 2011
    Posts
    21
    Thanks
    1
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Installation Help

    Quote Originally Posted by Uwe View Post
    copy [QWT DIRECTORY]\lib\qwt.dll to "C:\Qt\2010.05\qt\bin"
    Very bad - use the PATH environment variable instead.

    This is a basic mechanism - nothing Qt or Qwt special. If you don't know about it it's high time to learn.

    copy [QWT DIRECTORY]\plugins\designer\qwt_designer_plugin.dll to "C:\Qt\2010.05\qt\plugins\plugins\designer"
    Very bad - read http://doc.qt.nokia.com/4.7/deployment-plugins.html instead.
    Don't you think that it is useless and "very bad" for general performance, to increase the PATH just for 1 dll ? I understand when there is a lot of important things in the directory but here...
    For your 2nd point, are you talking about qt.conf and QT_PLUGIN_PATH ? Again, for a Windows user, it is easier to copy/paste the dll, I don't see the disavantages of that, these 2 dll doesn't deserve to do all these efforts like studying a long English documentation and creating a lot of environment variables.

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

    Default Re: Qwt Installation Help

    Quote Originally Posted by Troudhyl View Post
    Don't you think that it is useless and "very bad" for general performance, to increase the PATH just for 1 dll ?
    No.
    Again, for a Windows user, it is easier to copy/paste the dll, ...
    No it isn't and in the long run you will have to pay a lot if you don't get used to organize your system in a proper way.

    Uwe

  19. #16
    Join Date
    May 2011
    Posts
    10
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Installation Help

    Yes i did get the QMAKEFEATURE wrong there, but i did set it to the feature directory, so its an accidental ommision - sorry!

  20. #17
    Join Date
    May 2011
    Posts
    10
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Installation Help

    Try without "/features"
    Qt Code:
    1. qmake -set QMAKEFEATURES "C:/qwt-6.0.0"
    To copy to clipboard, switch view to plain text mode 
    It worked for me previously.

Similar Threads

  1. Need Installation Help?
    By Chase in forum Newbie
    Replies: 0
    Last Post: 7th April 2011, 10:26
  2. Installation on AIX 5.3
    By micrinho in forum Installation and Deployment
    Replies: 0
    Last Post: 11th March 2010, 16:10
  3. Qt 4.6.1 Installation
    By JulioCastro in forum Newbie
    Replies: 2
    Last Post: 5th February 2010, 07:36
  4. Qt for s60 installation
    By addu in forum Installation and Deployment
    Replies: 2
    Last Post: 26th August 2009, 11:37
  5. Qt installation
    By jay in forum Installation and Deployment
    Replies: 7
    Last Post: 27th May 2008, 15:24

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.