Results 1 to 2 of 2

Thread: Qwt with two Qt versions

  1. #1
    Join Date
    Apr 2014
    Posts
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Qwt with two Qt versions

    Hi,

    I try to get qwt6.1.2 running with Qt5.4.2. On my computer is additionally Qt4.8.4 installed.

    Qwt compiled, I linked it against my own app - and this one does not start. I get these messages:

    'SpitlightGUI.exe': Loaded 'D:\project\qwt-6.1.2\lib\qwtd.dll', Symbols loaded.
    'SpitlightGUI.exe': Loaded 'C:\Qt\4.8.4\bin\QtSvgd4.dll', Symbols loaded.
    'SpitlightGUI.exe': Loaded 'C:\Qt\4.8.4\bin\QtGuid4.dll', Symbols loaded.


    Obviously qwt is linked against Qt4.8.4. And this is where I'm stuck.

    I compiled qwt6.1.2 with the Qt5 cmdline, using the exact path to Qt5-qmake. The Makefile states it was generated by qmake 3.0, Qt 5.4.2. , but my system still prefers to use Qt4. There're two different pathes in src.pro: greaterThan(QT_MAJOR_VERSION, 4) {} else {}

    So I guess the QT_MAJOR_VERSION on my system is still 4. If I remove my Qt4 installation (by simply renaming the path), recall qmake, nmake complains
    NMAKE : fatal error U1073: don't know how to make 'c:\Qt\4.8.4\mkspecs\default\qmake.conf'

    I have no idea where QT_MAJOR_VERSION comes from and how I can set it to 5 and make nmake to use the Qt5 installation.

    Can anybody please help me here?

    Thanks,
    Carsten

  2. #2
    Join Date
    Apr 2014
    Posts
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qwt with two Qt versions

    Solved by using 'nmake distclean'. There must have been some old Makefile pointing to Qt4.

Similar Threads

  1. Multiple Versions of Qt
    By suslik in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2012, 01:37
  2. Uninstall Old Versions of Qt?
    By kwire in forum Installation and Deployment
    Replies: 2
    Last Post: 12th February 2012, 16:30
  3. Multiple Qt Versions on OS X?
    By rickbsgu in forum Installation and Deployment
    Replies: 2
    Last Post: 6th September 2010, 21:17
  4. what are the debug versions used for?!!
    By FS Lover in forum General Programming
    Replies: 37
    Last Post: 29th November 2009, 20:44

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.