So I am trying to get GPlates on an old laptop that I have refitted with Arch Linux because I want to learn more about the OS. I was able to get quite far before running into an issue that I can’t figure out. Google and AI have been unfortunately unhelpful, but then again I didn’t have much hope in either with the lack amount of documentation I have found for this distro lol. Any help is appreciated.
/home/niks/Downloads/gplates_2.5.0_src/src/qt-widgets/KinematicGraphsDialog.h:52:7: error: using typedef-name ‘QwtPointSeriesData’ after ‘class’
52 | class QwtPointSeriesData;
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/qwt/qwt_series_store.h:14,
from /usr/include/qwt/qwt_plot_seriesitem.h:15,
from /usr/include/qwt/qwt_plot_curve.h:14,
from /home/niks/Downloads/gplates_2.5.0_src/src/qt-widgets/KinematicGraphPicker.cc:56:
/usr/include/qwt/qwt_series_data.h:226:39: note: ‘QwtPointSeriesData’ has a previous declaration here
226 | typedef QwtArraySeriesData< QPointF > QwtPointSeriesData;
| ^~~~~~~~~~~~~~~~~~
/home/niks/Downloads/gplates_2.5.0_src/src/qt-widgets/KinematicGraphPicker.h:34:7: error: using typedef-name ‘QwtPointSeriesData’ after ‘class’
34 | class QwtPointSeriesData;
| ^~~~~~~~~~~~~~~~~~
/usr/include/qwt/qwt_series_data.h:226:39: note: ‘QwtPointSeriesData’ has a previous declaration here
226 | typedef QwtArraySeriesData< QPointF > QwtPointSeriesData;
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [src/CMakeFiles/gplates-lib.dir/build.make:11080: src/CMakeFiles/gplates-lib.dir/qt-widgets/KinematicGraphPicker.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:600: src/CMakeFiles/gplates-lib.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
It depends on the libraries and graphics card you have:
if you have nvidia, I’m not sure how to fix it, cause apparently nvidia drivers have been changed so still troubleshooting for myself when I do a re-install as to why it’s not working with the hopes John or another dev figures it out if I don’t on my own pc.
the packages I’ve found out that allow it to work and install normally on arch are: base-devel boost boost-libs cgal cmake cmake-extras gcc gdal git glew glu mesa netcdf proj python qt5 qwt wget zlib
if you’re missing any of these packages please install them first and if you do remove gplates and start again with git clone, then cmake . and then make
if you’re using nvidia, the chance is realistic it will crash when using the kinematics tool, but work fine with everything else in the program. If you think it might help, you can always try to install it on wine or a VM to work around it. On the other hand, if you have nvidia and it works after installing all the packages, could you please tell me what packages you’ve installed cause I’m still trying to locate my problem
Hoping this can help in some way and if not, we’ll have to wait for the devs
@Nicklsee small modification: I have found the issue and you have nvdia specifically, you need qwt-qt5 instead of qwt after having installed the correct nvidia dkms drivers from the AUR package. To start it if you have nvidia, you’ll need X11 instead of wayland, so that means you need to start it with QT_QPA_PLATFORM=xcb ./GPlates/bin/gplates or a different path if you have installed it somewhere else
That really does suck . I tried to update all my dependencies and updated my drivers (My laptop is quite old and only relies on integrated Intel HD Graphics 630 lol). Maybe I’ll just use the windows version instead while waiting for the arch linux to get fixed.
I think I wasn’t clear about this. It normally should work with anything that isn’t nvidia. As long as you get the proper drivers, it should function fine
EDIT: and like I’ve said afterwards, I’ve found my way around it and it works fully again. Just needed to get the correct packages
Make sure you’re compiling the latest GPlates source code. The GPlates 2.5 source code produces that error with QWT version 6.3 (ie, the version used on Arch Linux). This was fixed in GPlates after its 2.5 release.
And also use the packages MrUks noted (specifically qwt-qt5instead of qwt).