Results 1 to 2 of 2

Thread: QWT Plugin Installation in QT Creator 4.7.4 on Windows 7

  1. #1
    Join Date
    Dec 2011
    Posts
    27
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QWT Plugin Installation in QT Creator 4.7.4 on Windows 7

    Hello all,

    I am working with QT Creator 4.7.4, and using the embedded designer. I have a need to utilize the QWT plugin in the embedded designer as the look-and-feel person on the project is not a C++ developer, and is instead most comfortable with the designer interface and the CSS editor in there.

    My OS is Windows 7 Premium 64-bit, the QT Creator build is the downloaded binary build from Nokia.

    I'm writing this post b/c it took me about 7 hours to figure out how to do this, and none of the existing posts covered all of the required steps, and generally assumed a LOT about the audience's deep inner knowledge of the workings of Qt and MSVC++ or included information which is since out-of-date =)

    Warning: if you are using the downloaded binary of 4.7.4 from Nokia, you can NOT use the 4.8.0 libraries to build the QWT plugin. This will lead to much frustration. You must, instead, use the 4.7.4 libraries to build it.

    First, ensure that you have the 4.7.4 MSVC2008 build targets installed, use the QT SDK package manager to install this.

    Now, install the Microsoft Windows SDK 7.1

    Using the Windows SDK Command prompt (from All Programs -> Microsoft Windows SDK 7.1), run the following commands after changing to the directory where you unpacked QWT.

    > setenv /x86 /Release

    (This is extremely important for those of us on 64-bit windows, as the qt dll's are 32-bit by default)

    > c:\QtSDK\Desktop\Qt\4.7.4\msvc2008\bin\qmake.exe qwt.pro -r CONFIG+=debug_and_release CONFIG+=build_all
    > nmake

    (note: the above step must be repeated several times due to mt.exe NOT being included with the microsoft windows SDK 7.1, repeat 2-3 times and you will succeed)

    > nmake install
    > qmake -set QMAKEFEATURES "C:/Qwt-6.0.2-svn/features"

    These are the relevant environment variables before starting QT Creator:

    QT_PLUGIN_PATH=c:\Qwt-6.0.2-svn\plugins\designer\;c:\Qwt-6.0.2-svn\plugins

    Make sure that PATH has C:\Qwt-6.0.2-svn\lib in it.

    Note: my paths above assume that you're using the current svn snapshot of QWT and you haven't modified the install path.

    Hope this helps someone struggling with the same!

  2. #2
    Join Date
    Apr 2012
    Posts
    1

    Default Re: QWT Plugin Installation in QT Creator 4.7.4 on Windows 7

    I've managed to build the plugin with MSVC in releas mode but I'm stuck with a "could not find the specified module" error.
    Can you describe where shall I set environment variables? In qt.conf or where?

Similar Threads

  1. QML plugin installation
    By remy_david in forum Qt Quick
    Replies: 1
    Last Post: 18th September 2011, 01:04
  2. Replies: 0
    Last Post: 15th March 2011, 18:27
  3. Qt Creator Installation - Windows XP
    By SixDegrees in forum Qt Tools
    Replies: 9
    Last Post: 23rd November 2010, 20:44
  4. Replies: 2
    Last Post: 8th September 2010, 02:09
  5. Replies: 4
    Last Post: 19th March 2010, 18:16

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.