Results 1 to 6 of 6

Thread: Compiling QWT Examples on Windows with MingW32 ?

  1. #1
    Join Date
    Aug 2009
    Location
    Brisbane, Australia
    Posts
    75
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Compiling QWT Examples on Windows with MingW32 ?

    Hi,

    I have followed the INSTALL file that comes with QWT 6.0.1.

    I have installed QWT after many trials and errors. It also works with QT Creator (I think, from my vague memory, my main problem was I was trying to make in Cygwin instead of DOS prompt and I also needed to use mingw32-make instead of make. As make defaults to a Borland compiler).

    I get my apps to build and run and can use QWT in them.

    I would now like to compile the examples so I can see the possibilities. As I am now stuck trying to workout more advanced use of QWT.

    qmake seems to work well for the examples.pro. No errors

    Then when I run mingw32-make it has the good old cant find -lqwtd error. Which reading from other posts I think it means I don't have debug mode installed?

    Any help would be appreciated!

    Thanks in advance
    Brendan

  2. #2
    Join Date
    Feb 2012
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compiling QWT Examples on Windows with MingW32 ?

    wich operating system are you using

  3. #3
    Join Date
    Aug 2009
    Location
    Brisbane, Australia
    Posts
    75
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling QWT Examples on Windows with MingW32 ?

    Windows XP

  4. #4
    Join Date
    Feb 2012
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compiling QWT Examples on Windows with MingW32 ?

    did your mingw32-make install give any error messages?
    i think you should make one line in your pro file.
    config +=qwt
    if this isnt enough make
    one line :
    LIBS +=c:/ path to qwtd.dll
    are you using qt creator? or designer?
    reson why i am asking for operation system is that i am struggeling with
    mingw32-make install but im using win 7 64bit.

  5. #5
    Join Date
    Aug 2009
    Location
    Brisbane, Australia
    Posts
    75
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling QWT Examples on Windows with MingW32 ?

    I don't think the install had any errors. Not really keen on trying it again in case I break something.

    I use designer to setup the forms etc. All the QWT widgets are there. I'm not currently using Creator.

    Maybe you need to setup the environment?
    Add QT_PLUGIN_PATH set to c:\Qwt-6.0.1\plugins
    And add c:\Qwt-6.0.1\lib to PATH

    My Windows XP is only 32bit if it makes any difference.

    I will have another try at getting the examples going. I would of thought the examples would work without changes. But yeah maybe they don't know where the qwt.dll is.

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

    Default Re: Compiling QWT Examples on Windows with MingW32 ?

    Quote Originally Posted by grantbj74 View Post
    Then when I run mingw32-make it has the good old cant find -lqwtd error. Which reading from other posts I think it means I don't have debug mode installed?
    Something you don't need for building the examples, when you don't want to debug them.

    Your environment you should run into the win32 path ( even if you have win 64 ) - if not find out which qmake specs you are using. Then have a look at qwtbuild.pri:

    First disable "CONFIG += silent" at the beginning of qwtbuild.pri. Then you will see what is going on when building Qwt and the examples - and probably what is going wrong.

    For win32 you find the following lines:

    CONFIG += debug_and_release
    CONFIG += build_all

    These lines are responsible for what versions of Qwt will be built. F.e. you can replace them by "CONFIG += release". See the qmake reference manual for more details.

    Note that the examples are linked against the libraries from the local build - not the installed versions. So you can setup a second directory where you do a make ( no make install ) without breaking your installed version. When you enable "QWT_CONFIG += QwtExamples" in qwtconfig.pri the examples are built together with the libs.

    Uwe

  7. The following user says thank you to Uwe for this useful post:

    grantbj74 (7th March 2012)

Similar Threads

  1. error while compiling qtbase with mingw32-make
    By ottoshmidt in forum Installation and Deployment
    Replies: 2
    Last Post: 9th September 2011, 16:24
  2. Replies: 1
    Last Post: 17th November 2010, 07:50
  3. Network examples are nto compiling
    By pakkko in forum Qt Programming
    Replies: 0
    Last Post: 3rd August 2010, 15:16
  4. Replies: 3
    Last Post: 2nd March 2010, 17:52
  5. Compiling problems with mingw32
    By Wali in forum Installation and Deployment
    Replies: 5
    Last Post: 7th September 2007, 10:09

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.