Results 1 to 4 of 4

Thread: Problems building qwt

  1. #1
    Join Date
    Jun 2011
    Posts
    38
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default Problems building qwt

    Hi everyone,

    I just downloaded the newest qwt version (6.0.0) and tried to build it with msvc.
    I started the visual studio 2008 command prompt,
    cd'ed to the qwt directory and entered
    "qmake qwt.pro"
    (this worked fine)
    and then
    "nmake"
    It compiled for a while and then this error occured:
    Failed to open "c:\Qt\4.7.2\lib\QtDesignerd4.lib" (I translated it from german)
    I looked in the folder and indeed there is no such file.
    Do I need a newer Qt-Version or what is the problem here?
    I'm using 4.7.2, the newest is 4.7.3, is really 4.7.3 required?
    Edit: on their website i found:
    "Qwt 6.x might be usable in all environments where you find Qt. It is compatible with Qt >= 4.4."

    Thanks for help in advance!
    Last edited by P@u1; 4th July 2011 at 10:10.

  2. #2
    Join Date
    Jun 2011
    Location
    Rhode Island
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: Problems building qwt

    It seems like you are compiling the debug and release versions of the libraries. If you built you Qt in release mode only than you must build the qwt libraries in release mode only. If you ever see a "d" before the lib number (what you have just mentioned as missing). Edit your qwtbuild.pri to disable the debug_and_release and the build_all config like this:

    Qt Code:
    1. win32 {
    2. # On Windows you can't mix release and debug libraries.
    3. # The designer is built in release mode. If you like to use it
    4. # you need a release version. For your own application development you
    5. # might need a debug version.
    6. # Enable debug_and_release + build_all if you want to build both.
    7.  
    8. #CONFIG += debug_and_release
    9. #CONFIG += build_all
    10. }
    11.  
    12.  
    13. CONFIG += release
    14.  
    15. VER_MAJ = $${QWT_VER_MAJ}
    16. VER_MIN = $${QWT_VER_MIN}
    17. VER_PAT = $${QWT_VER_PAT}
    18. VERSION = $${QWT_VERSION}
    To copy to clipboard, switch view to plain text mode 
    (Note that you should probably remove the else claus-Just the word else and the brackets enclosing the block, if you do not do this I believe it will default back to the debug_and_release options)

    That should do it for you. If, later on down the road, you decide to build debug libraries you must reconfigure and re compile Qt as a debug_and_release. The version of Qt should not matter as long as it is 4.7.X.
    Last edited by hypnotic401; 5th July 2011 at 20:48. Reason: Corrected the explaination of the removal of the else claus
    SEGMENTATION FAULT: At who the hell knows where.

  3. The following user says thank you to hypnotic401 for this useful post:

    P@u1 (6th July 2011)

  4. #3
    Join Date
    Jun 2011
    Posts
    38
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default Re: Problems building qwt

    I need both debug and release libraries.

    I have a precompiled qt version with both debug and release.

    As I wrote in the edit above it now got it working with 4.7.3.
    In my 4.7.2 some files where missing for some reason...

  5. #4
    Join Date
    Jun 2011
    Location
    Rhode Island
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: Problems building qwt

    Wierd!! I build my Qt libraries from source so thats probably why I have never encountered a missing files situation. Glad you got it working!
    SEGMENTATION FAULT: At who the hell knows where.

Similar Threads

  1. Replies: 2
    Last Post: 23rd July 2010, 14:53
  2. Some problems
    By Dante in forum Qt Programming
    Replies: 13
    Last Post: 20th July 2009, 14:38
  3. problems
    By IRON_MAN in forum Newbie
    Replies: 11
    Last Post: 9th July 2009, 16:24
  4. problems going from 4.3.x to 4.4.0
    By Ovis in forum Installation and Deployment
    Replies: 4
    Last Post: 26th June 2008, 19:22
  5. QT4 Plugins - problems, problems
    By NormanDunbar in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 15:39

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.