Results 1 to 4 of 4

Thread: Interesting installation problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    39
    Thanks
    15
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Interesting installation problem

    Okay so after rereading a few installation guides of the move your dll's her, there and everywhere I decided that I actually needed to follow Uwe's INSTALL guide so that the qwt libs etc are kept seperate from the Qt install. Should add that I am on a window7 32 bit machine running windows XP.

    With that in mind I decided to delete any qwt.dll, qwtd.dll, qwt*designer.dll's that I had scattered through the Qt install (in only 2 directories actually, the /bin and /designer directories). I should add that this way did let me see the qwt widgets in the creator.

    So I
    1) recompiled qwt with mingw to make it compatible with my Qt version and Qt Creator version and installed it, via the INSTALL instruction in my C:\ directory.
    2) Set the QMAKEFEATURES (this all showed up so all good so far)
    3) created a new windows environment variable called QT_PLUGIN_PATH and set it to the plugin directory of my QWT install
    4) started up Qt Creator (I am using Qt 4.7.4 I think it is, and Qt Creator 2, either way they are not a problem, nor is QWT really) and loaded my project, which has the CONFIG +=qwt in the PRO file
    5) went to the form editor within creator and lo and behold my qwt widgets had gone. No problem. Wasn't to concerned (still not actually)
    6) built my project anyway and was pleased to see that the QWT plots were in the application anyway. So I conclude that my QMAKEFEATURES setting has worked. So onto the designer/creator issue and this is where it gets interesting (at least I think it does)

    If I place the qwt.dll and qwtd.dll (built both release and debug, built the release separately to ensure everything was correct) in the Qt bin directory (as I had in my bad install which worked) and then restart Qt creator the widgets show up again in the creator (form creator) with all the Qt widgets. And if I look at the loaded plugins then I can see that the qwt_designwer plugin is in fact being found in my qwt install directory as per the QT_PLUGIN_PATH variable. So I could leave it at that, but this is not the correct way to install.

    However, if I remove the dll's from the bin directory the plugin doesn't load and shows up as a failed plugin e.g. it cant find the qwt.dll's. So I am thinking that I have done something stupid somewhere. It appears that the even though Qt looks for the qwt_designerplugin.dll in the correct directory (my qwt install directory via the QT_PLUGIN_PATH variable) it is trying to find the rest of the qwt dll's needed for the plugin in the actual Qt bin directory?

    Is this simply a change I need to make in the qwt.prf and/or qwtconfig.pri files? or is it something else?

    Cheers
    Oz
    Last edited by OzQTNoob; 1st February 2012 at 12:21. Reason: added OS and windows version etc.

  2. #2
    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: Interesting installation problem

    Quote Originally Posted by OzQTNoob View Post
    However, if I remove the dll's from the bin directory the plugin doesn't load and shows up as a failed plugin e.g. it cant find the qwt.dll's. So I am thinking that I have done something stupid somewhere.
    DLLs are found using the PATH variable. You have to add the path for Qwt libraries there.

    Uwe

  3. #3
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    39
    Thanks
    15
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Interesting installation problem

    Hi Uwe,

    I did actually add the following to my path variable C:\qwt-601\lib (or however the qwt directory looks) but when I look in the build properties in my project it doesn't list the qwt directory at all. I may need to brush up on my PATH directory bits-and-pieces as there are a number of paths listed but not all of them show up. I dont really care about the ones that are not needed, but I will recheck tomorrow when I get back in front of my work computer and see if I have entered something incorrectly.

    Cheers
    Oz

Similar Threads

  1. Replies: 1
    Last Post: 19th August 2011, 20:26
  2. Why could be interesting to use MSVC and QT ?
    By tonnot in forum Installation and Deployment
    Replies: 13
    Last Post: 9th October 2010, 10:53
  3. signal -slot mechanism!! an interesting problem!!!
    By qt_user in forum Qt Programming
    Replies: 6
    Last Post: 5th August 2010, 11:20
  4. Replies: 4
    Last Post: 3rd August 2010, 12:30
  5. use interesting QWT Library with QT3.X
    By raphaelf in forum Qwt
    Replies: 2
    Last Post: 23rd January 2006, 11:24

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.