Menu

Minor Changes Required for Hamlib 4.2 and Qwt 6.2.0

2021-08-04
2021-08-05
  • Mark J. Fine

    Mark J. Fine - 2021-08-04

    Recently tried a build and due to some recent updates Hamlib and Qwt, a few errors were generated in Qt 5.15.2. A diff file is attached, but here is a short summary of the changes made :

    1. GUI-QT/Dialog.h : retypecast rig_model_t from int to uint32_t.

    2. GUI-QT/DRMPlot.h : added reference include now required for qwt_text.h

    3. GUI-QT/DRMPlot.cpp : brute forced SETDATA macro to use a new nullptr typecasted as a double* (dblptr) in several places to clear ambiguity issues. There was probably a more elegant way to do this (like, within the macro itself) but didn't have a whole lot of time to experiment.

    4. util/Hamlib.cpp : explicitly typecast model and iHamlibModelID as int() within SetHanlibModelID() and s.Put() to clear additional ambiguity issues.

    Mark

     
    • Julian Cable

      Julian Cable - 2021-08-05

      Thanks Mark – bizarrely I found similar things this week. The first time I’ve tried compiling Dream in a long time. I didn’t spot the qwt_text issue but I also found a libgps one.

      Unfortunately these are very library version specific – I made changes to compile on my mac using homebrew and had to back out of ½ of them on ubuntu.

      I’ll try and make them library version specific. I might manage it this weekend.

      Julian

      From: "Mark J. Fine" fineware@users.sourceforge.net
      Reply to: "[drm:discussion]" compiling@discussion.drm.p.re.sourceforge.net
      Date: Wednesday, 4 August 2021 at 13:28
      To: Julian Cable julian.cable@bbc.co.uk
      Subject: [drm:discussion] Minor Changes Required for Hamlib 4.2 and Qwt 6.2.0

      Recently tried a build and due to some recent updates Hamlib and Qwt, a few errors were generated in Qt 5.15.2. A diff file is attached, but here is a short summary of the changes made :

      1. GUI-QT/Dialog.h : retypecast rig_model_t from int to uint32_t.
      2. GUI-QT/DRMPlot.h : added reference include now required for qwt_text.h
      3. GUI-QT/DRMPlot.cpp : brute forced SETDATA macro to use a new nullptr typecasted as a double* (dblptr) in several places to clear ambiguity issues. There was probably a more elegant way to do this (like, within the macro itself) but didn't have a whole lot of time to experiment.
      4. util/Hamlib.cpp : explicitly typecast model and iHamlibModelID as int() within SetHanlibModelID() and s.Put() to clear additional ambiguity issues.

      Mark


      Minor Changes Required for Hamlib 4.2 and Qwt 6.2.0https://sourceforge.net/p/drm/discussion/compiling/thread/e2393d26d0/?limit=25#6204


      Sent from sourceforge.net because julian.cable@bbc.co.uk is subscribed to https://sourceforge.net/p/drm/discussion/compiling/

      To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/drm/admin/discussion/forums. Or, if this is a mailing list, you can unsubscribe from the mailing list.


      http://www.bbc.co.uk
      This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
      If you have received it in error, please delete it from your system.
      Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
      Please note that the BBC monitors e-mails sent or received.
      Further communication will signify your consent to this.


       
  • Mark J. Fine

    Mark J. Fine - 2021-08-05

    The Qwt update to 6.2.0 was very recent in Homebrew, perhaps in the past few days.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.