# Source build failing with Qwt 6.3.0

**URL:** https://discourse.gplates.org/t/source-build-failing-with-qwt-6-3-0/898
**Category:** Bug Reports
**Created:** [10 June 2024 07:18 UTC](https://discourse.gplates.org/t/source-build-failing-with-qwt-6-3-0/898 "2024-06-10T07:18:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![switchbladestuff](https://discourse.gplates.org/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@switchbladestuff](https://discourse.gplates.org/u/switchbladestuff)
#### Post date: [10 June 2024 07:18 UTC](https://discourse.gplates.org/t/source-build-failing-with-qwt-6-3-0/898/1 "2024-06-10T07:18:11Z")

</div>

I have been trying to compile GPlates from source on openSUSE Tumbleweed, which has resulted in the following compilation errors:

```auto
gplates_2.5.0_src/src/qt-widgets/KinematicGraphsDialog.h:52:7: error: definition of type 'QwtPointSeriesData' conflicts with typedef of the same name
   52 | class QwtPointSeriesData;
      | ^
/usr/include/qt6/qwt6/qwt_series_data.h:226:39: note: 'QwtPointSeriesData' declared here
  226 | typedef QwtArraySeriesData< QPointF > QwtPointSeriesData;
      | ^
In file included from gplates_2.5.0_src/src/qt-widgets/KinematicGraphPicker.cc:62:
gplates_2.5.0_src/src/qt-widgets/KinematicGraphPicker.h:34:7: error: definition of type 'QwtPointSeriesData' conflicts with typedef of the same name
   34 | class QwtPointSeriesData;
      | ^
/usr/include/qt6/qwt6/qwt_series_data.h:226:39: note: 'QwtPointSeriesData' declared here
  226 | typedef QwtArraySeriesData< QPointF > QwtPointSeriesData;
      | ^

```

After some further investigation, it seems that the recent release of Qwt (6.3.0) is no longer declaring `QwtPointSeriesData` as a stand-alone class, and is instead declaring it as a typedef alias for `QwtArraySeriesData`, which is conflicting with GPlates forward-declaration of `QwtPointSeriesData`.

I was able to resolve it by directly including `qwt_series_data.h` instead of using a forward-declaration in `KinematicGraphPicker.h` and `KinematicGraphsDialog.h`.

---

<div class="post-metadata">

### Author: ![john.cannon](https://discourse.gplates.org/letter_avatar_proxy/v4/letter/j/3e96dc/32.png) [@john.cannon](https://discourse.gplates.org/u/john.cannon)
#### Post date: [11 June 2024 05:56 UTC](https://discourse.gplates.org/t/source-build-failing-with-qwt-6-3-0/898/2 "2024-06-11T05:56:46Z")

</div>

Thanks, I recently encountered that issue also.

I’ve added the compile fix to the main [GPlates branch](https://github.com/GPlates/GPlates) (for other users).
